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];
파일 보기
프로젝트 열기: pradosoft/prado
1 사용 예제들
공개 메소드들
메소드 |
설명 |
|
__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. |
|
메소드 상세
findCookieByName()
공개 메소드
Finds the cookie with the specified name.
public findCookieByName ( $name ) : THttpCookie |
리턴 |
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 |
리턴 |
THttpCookie |
the cookie found |
This overrides the parent implementation by performing additional
cleanup work when removing a TCookie object.