PHP Class 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];
Mostrar archivo
Open project: pradosoft/prado
Class Usage Examples
Public Methods
Method |
Description |
|
__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. |
|
Method Details
__construct()
public method
findCookieByName()
public method
Finds the cookie with the specified name.
public findCookieByName ( $name ) : THttpCookie |
return |
THttpCookie |
the cookie, null if not found |
This overrides the parent implementation by performing additional
operations for each newly added THttpCookie object.
public itemAt ( $index ) : THttpCookie |
return |
THttpCookie |
the cookie found |
This overrides the parent implementation by performing additional
cleanup work when removing a TCookie object.