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];
Показать файл
Открыть проект
Примеры использования класса
Открытые методы
Метод |
Описание |
|
__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()
публичный метод
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 itemAt ( $index ) : THttpCookie |
Результат |
THttpCookie |
the cookie found |
removeAt()
публичный метод
This overrides the parent implementation by performing additional
cleanup work when removing a TCookie object.