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
파일 보기 프로젝트 열기: 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.

메소드 상세

__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.