PHP 클래스 Symfony\Component\BrowserKit\Cookie

저자: Fabien Potencier ([email protected])
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$domain
$expires
$httponly
$name
$path
$rawValue
$secure
$value

공개 메소드들

메소드 설명
__construct ( string $name, string $value, string $expires = null, string $path = null, string $domain = '', boolean $secure = false, boolean $httponly = true, boolean $encodedValue = false ) Sets a cookie.
__toString ( ) : string Returns the HTTP representation of the Cookie.
fromString ( string $cookie, string $url = null ) : Cookie Creates a Cookie instance from a Set-Cookie header value.
getDomain ( ) : string Gets the domain of the cookie.
getExpiresTime ( ) : string Gets the expires time of the cookie.
getName ( ) : string Gets the name of the cookie.
getPath ( ) : string Gets the path of the cookie.
getRawValue ( ) : string Gets the raw value of the cookie.
getValue ( ) : string Gets the value of the cookie.
isExpired ( ) : boolean Returns true if the cookie has expired.
isHttpOnly ( ) : boolean Returns the httponly flag of the cookie.
isSecure ( ) : boolean Returns the secure flag of the cookie.

비공개 메소드들

메소드 설명
parseDate ( $dateValue )

메소드 상세

__construct() 공개 메소드

Sets a cookie.
public __construct ( string $name, string $value, string $expires = null, string $path = null, string $domain = '', boolean $secure = false, boolean $httponly = true, boolean $encodedValue = false )
$name string The cookie name
$value string The value of the cookie
$expires string The time the cookie expires
$path string The path on the server in which the cookie will be available on
$domain string The domain that the cookie is available
$secure boolean Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client
$httponly boolean The cookie httponly flag
$encodedValue boolean Whether the value is encoded or not

__toString() 공개 메소드

Returns the HTTP representation of the Cookie.
public __toString ( ) : string
리턴 string The HTTP representation of the Cookie

fromString() 공개 정적인 메소드

Creates a Cookie instance from a Set-Cookie header value.
public static fromString ( string $cookie, string $url = null ) : Cookie
$cookie string A Set-Cookie header value
$url string The base URL
리턴 Cookie A Cookie instance

getDomain() 공개 메소드

Gets the domain of the cookie.
public getDomain ( ) : string
리턴 string The cookie domain

getExpiresTime() 공개 메소드

Gets the expires time of the cookie.
public getExpiresTime ( ) : string
리턴 string The cookie expires time

getName() 공개 메소드

Gets the name of the cookie.
public getName ( ) : string
리턴 string The cookie name

getPath() 공개 메소드

Gets the path of the cookie.
public getPath ( ) : string
리턴 string The cookie path

getRawValue() 공개 메소드

Gets the raw value of the cookie.
public getRawValue ( ) : string
리턴 string The cookie value

getValue() 공개 메소드

Gets the value of the cookie.
public getValue ( ) : string
리턴 string The cookie value

isExpired() 공개 메소드

Returns true if the cookie has expired.
public isExpired ( ) : boolean
리턴 boolean true if the cookie has expired, false otherwise

isHttpOnly() 공개 메소드

Returns the httponly flag of the cookie.
public isHttpOnly ( ) : boolean
리턴 boolean The cookie httponly flag

isSecure() 공개 메소드

Returns the secure flag of the cookie.
public isSecure ( ) : boolean
리턴 boolean The cookie secure flag

프로퍼티 상세

$domain 보호되어 있는 프로퍼티

protected $domain

$expires 보호되어 있는 프로퍼티

protected $expires

$httponly 보호되어 있는 프로퍼티

protected $httponly

$name 보호되어 있는 프로퍼티

protected $name

$path 보호되어 있는 프로퍼티

protected $path

$rawValue 보호되어 있는 프로퍼티

protected $rawValue

$secure 보호되어 있는 프로퍼티

protected $secure

$value 보호되어 있는 프로퍼티

protected $value