\app\framework\Component\CookieCookie

Class Cookie

Summary

Methods
Properties
Constants
__construct()
getValue()
setValue()
getName()
setName()
getExpire()
setExpire()
No public properties found
No constants found
serialize()
unserialize()
No protected properties found
N/A
getFromExistingCookie()
update()
validate()
$name
$value
$expire
$path
$encrypt
N/A

Properties

$name

$name : 

Type

$value

$value : 

Type

$expire

$expire : 

Type

$path

$path : 

Type

$encrypt

$encrypt : 

Type

Methods

__construct()

__construct(  $cookieName, null  $cookieValue = null, null  $expire = null, string  $path = "/", boolean  $encrypt = false) 

Cookie constructor.

Parameters

$cookieName
null $cookieValue
null $expire
string $path
boolean $encrypt

getValue()

getValue() : null

Returns

null

setValue()

setValue(null  $value) 

Parameters

null $value

getName()

getName() : mixed

Returns

mixed

setName()

setName(mixed  $name) 

Parameters

mixed $name

getExpire()

getExpire() : null

Returns

null

setExpire()

setExpire(null  $expire) 

Parameters

null $expire

serialize()

serialize(  $value) : string

Serializes the given value.

Parameters

$value

Returns

string

unserialize()

unserialize(string  $string) : array|mixed

Unserializes the given string and returns the array.

Parameters

string $string

String to serialize.

Returns

array|mixed

getFromExistingCookie()

getFromExistingCookie(  $cookieName) 

Parameters

$cookieName

update()

update() 

validate()

validate()