PHP Class Prado\Web\THttpCookie

A THttpCookie instance stores a single cookie, including the cookie name, value, domain, path, expire, and secure.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends Prado\TComponent
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $name, $value ) Constructor.
getDomain ( ) : string
getExpire ( ) : integer
getHttpOnly ( ) : boolean
getName ( ) : string
getPath ( ) : string
getSecure ( ) : boolean
getValue ( ) : string
setDomain ( $value )
setExpire ( $value )
setHttpOnly ( boolean $value )
setName ( $value )
setPath ( $value )
setSecure ( $value )
setValue ( $value )

Method Details

__construct() public méthode

Constructor.
public __construct ( $name, $value )

getDomain() public méthode

public getDomain ( ) : string
Résultat string the domain to associate the cookie with

getExpire() public méthode

public getExpire ( ) : integer
Résultat integer the time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch.

getHttpOnly() public méthode

public getHttpOnly ( ) : boolean
Résultat boolean if true the cookie value will be unavailable to JavaScript

getName() public méthode

public getName ( ) : string
Résultat string the name of the cookie

getPath() public méthode

public getPath ( ) : string
Résultat string the path on the server in which the cookie will be available on, default is '/'

getSecure() public méthode

public getSecure ( ) : boolean
Résultat boolean whether the cookie should only be transmitted over a secure HTTPS connection

getValue() public méthode

public getValue ( ) : string
Résultat string the value of the cookie

setDomain() public méthode

public setDomain ( $value )

setExpire() public méthode

public setExpire ( $value )

setHttpOnly() public méthode

public setHttpOnly ( boolean $value )
$value boolean if true the cookie value will be unavailable to JavaScript

setName() public méthode

public setName ( $value )

setPath() public méthode

public setPath ( $value )

setSecure() public méthode

public setSecure ( $value )

setValue() public méthode

public setValue ( $value )