PHP Class Cartalyst\Sentinel\Cookies\NativeCookie

Inheritance: implements Cartalyst\Sentinel\Cookies\CookieInterface
Afficher le fichier Open project: cartalyst/sentinel Class Usage Examples

Protected Properties

Свойство Type Description
$options array The cookie options.

Méthodes publiques

Méthode Description
__construct ( string | array $options = [] ) : void Create a new cookie driver.
forget ( ) {@inheritDoc}
get ( ) {@inheritDoc}
put ( $value ) {@inheritDoc}

Méthodes protégées

Méthode Description
getCookie ( ) : mixed Returns a PHP cookie.
minutesToLifetime ( integer $minutes ) : integer Takes a minutes parameter (relative to now) and converts it to a lifetime (unix timestamp).
setCookie ( mixed $value, integer $lifetime, string $path = null, string $domain = null, boolean $secure = null, boolean $httpOnly = null ) : void Sets a PHP cookie.

Method Details

__construct() public méthode

Create a new cookie driver.
public __construct ( string | array $options = [] ) : void
$options string | array
Résultat void

forget() public méthode

{@inheritDoc}
public forget ( )

get() public méthode

{@inheritDoc}
public get ( )

getCookie() protected méthode

Returns a PHP cookie.
protected getCookie ( ) : mixed
Résultat mixed

minutesToLifetime() protected méthode

Takes a minutes parameter (relative to now) and converts it to a lifetime (unix timestamp).
protected minutesToLifetime ( integer $minutes ) : integer
$minutes integer
Résultat integer

put() public méthode

{@inheritDoc}
public put ( $value )

setCookie() protected méthode

Sets a PHP cookie.
protected setCookie ( mixed $value, integer $lifetime, string $path = null, string $domain = null, boolean $secure = null, boolean $httpOnly = null ) : void
$value mixed
$lifetime integer
$path string
$domain string
$secure boolean
$httpOnly boolean
Résultat void

Property Details

$options protected_oe property

The cookie options.
protected array $options
Résultat array