PHP Class Icicle\Http\Message\Cookie\SetCookie

Inheritance: extends BasicCookie, implements Icicle\Http\Message\Cookie\MetaCookie
Afficher le fichier Open project: icicleio/http Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $name, string $value = '', integer $expires, string $path = null, string $domain = null, boolean $secure = false, boolean $httpOnly = false )
fromHeader ( string $string ) : Icicle\Http\Message\Cookie\Cookie
getDomain ( ) : string
getExpires ( ) : integer
getPath ( ) : string
isHttpOnly ( ) : boolean
isSecure ( ) : boolean
toHeader ( ) : string

Méthodes protégées

Méthode Description
encodeDate ( integer $date ) : string
encodePath ( string $path ) : string

Method Details

__construct() public méthode

public __construct ( string $name, string $value = '', integer $expires, string $path = null, string $domain = null, boolean $secure = false, boolean $httpOnly = false )
$name string
$value string
$expires integer
$path string
$domain string
$secure boolean
$httpOnly boolean

encodeDate() protected méthode

protected encodeDate ( integer $date ) : string
$date integer
Résultat string

encodePath() protected méthode

protected encodePath ( string $path ) : string
$path string
Résultat string

fromHeader() public static méthode

public static fromHeader ( string $string ) : Icicle\Http\Message\Cookie\Cookie
$string string Valid Set-Cookie header line.
Résultat Icicle\Http\Message\Cookie\Cookie

getDomain() public méthode

public getDomain ( ) : string
Résultat string

getExpires() public méthode

public getExpires ( ) : integer
Résultat integer

getPath() public méthode

public getPath ( ) : string
Résultat string

isHttpOnly() public méthode

public isHttpOnly ( ) : boolean
Résultat boolean

isSecure() public méthode

public isSecure ( ) : boolean
Résultat boolean

toHeader() public méthode

public toHeader ( ) : string
Résultat string