PHP Class Icicle\Http\Message\Cookie\SetCookie

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

Public Methods

Method 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

Protected Methods

Method Description
encodeDate ( integer $date ) : string
encodePath ( string $path ) : string

Method Details

__construct() public method

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 method

protected encodeDate ( integer $date ) : string
$date integer
return string

encodePath() protected method

protected encodePath ( string $path ) : string
$path string
return string

fromHeader() public static method

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

getDomain() public method

public getDomain ( ) : string
return string

getExpires() public method

public getExpires ( ) : integer
return integer

getPath() public method

public getPath ( ) : string
return string

isHttpOnly() public method

public isHttpOnly ( ) : boolean
return boolean

isSecure() public method

public isSecure ( ) : boolean
return boolean

toHeader() public method

public toHeader ( ) : string
return string