PHP Класс Prado\Web\THttpCookieCollection

THttpCookieCollection implements a collection class to store cookies. Besides using all functionalities from {@link TList}, you can also retrieve a cookie by its name using either {@link findCookieByName} or simply: $cookie=$collection[$cookieName];
С версии: 3.0
Автор: Qiang Xue ([email protected])
Наследование: extends Prado\Collections\TList
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( $owner = null ) Constructor.
findCookieByName ( $name ) : THttpCookie Finds the cookie with the specified name.
insertAt ( $index, $item ) Inserts an item at the specified position.
itemAt ( $index ) : THttpCookie
removeAt ( $index ) : mixed Removes an item at the specified position.

Описание методов

__construct() публичный метод

Constructor.
public __construct ( $owner = null )

findCookieByName() публичный метод

Finds the cookie with the specified name.
public findCookieByName ( $name ) : THttpCookie
Результат THttpCookie the cookie, null if not found

insertAt() публичный метод

This overrides the parent implementation by performing additional operations for each newly added THttpCookie object.
public insertAt ( $index, $item )

itemAt() публичный метод

public itemAt ( $index ) : THttpCookie
Результат THttpCookie the cookie found

removeAt() публичный метод

This overrides the parent implementation by performing additional cleanup work when removing a TCookie object.
public removeAt ( $index ) : mixed
Результат mixed the removed item.