Class THttpCookieCollection

Description

THttpCookieCollection class.

THttpCookieCollection implements a collection class to store cookies. Besides using all functionalities from TList, you can also retrieve a cookie by its name using either findCookieByName or simply:

  1.    $cookie=$collection[$cookieName];

  • author: Qiang Xue <qiang.xue@gmail.com>
  • version: $Id: THttpRequest.php 3099 2012-01-29 11:48:14Z ctrlaltca@gmail.com $
  • since: 3.0

Located in /Web/THttpRequest.php (line 900)

TComponent
   |
   --TList
      |
      --THttpCookieCollection
Method Summary
THttpCookieCollection __construct ([mixed $owner = null])
THttpCookie findCookieByName (string $name)
void insertAt (integer $index, mixed $item)
THttpCookie itemAt (integer|string $index)
mixed removeAt (integer $index)
Methods
Constructor __construct (line 911)

Constructor.

  • access: public
THttpCookieCollection __construct ([mixed $owner = null])
  • mixed $owner: owner of this collection.

Redefinition of:
TList::__construct()
Constructor.
findCookieByName (line 968)

Finds the cookie with the specified name.

  • return: the cookie, null if not found
  • access: public
THttpCookie findCookieByName (string $name)
  • string $name: the name of the cookie to be looked for
insertAt (line 924)

Inserts an item at the specified position.

This overrides the parent implementation by performing additional operations for each newly added THttpCookie object.

  • throws: TInvalidDataTypeException if the item to be inserted is not a THttpCookie object.
  • access: public
void insertAt (integer $index, mixed $item)
  • integer $index: the specified position.
  • mixed $item: new item

Redefinition of:
TList::insertAt()
Inserts an item at the specified position.
itemAt (line 955)
  • return: the cookie found
  • access: public
THttpCookie itemAt (integer|string $index)
  • integer|string $index: index of the cookie in the collection or the cookie's name

Redefinition of:
TList::itemAt()
Returns the item at the specified offset.
removeAt (line 943)

Removes an item at the specified position.

This overrides the parent implementation by performing additional cleanup work when removing a TCookie object.

  • return: the removed item.
  • access: public
mixed removeAt (integer $index)
  • integer $index: the index of the item to be removed.

Redefinition of:
TList::removeAt()
Removes an item at the specified position.

Inherited Methods

Inherited From TList

TList::__construct()
TList::add()
TList::clear()
TList::contains()
TList::copyFrom()
TList::count()
TList::getCount()
TList::getIterator()
TList::getReadOnly()
TList::indexOf()
TList::insertAfter()
TList::insertAt()
TList::insertBefore()
TList::itemAt()
TList::mergeWith()
TList::offsetExists()
TList::offsetGet()
TList::offsetSet()
TList::offsetUnset()
TList::remove()
TList::removeAt()
TList::setReadOnly()
TList::toArray()

Inherited From TComponent

TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__call()
TComponent::__get()
TComponent::__set()
TComponent::__sleep()
TComponent::__wakeup()

Documentation generated on Mon, 25 Jun 2012 14:38:22 +0200 by phpDocumentor 1.4.3