Cookie
class Cookie
A set of static methods for manipulating cookies.
Traits
Config options
report_errors | bool |
Methods
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .
Gets the uninherited value for the given config option
Fetch the current instance of the cookie backend.
Set a cookie variable.
Get the cookie value by name. Returns null if not set.
Get all the cookies.
No description
Details
in Configurable at line 20
static Config_ForClass
config()
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .
....).
in Configurable at line 32
mixed
stat(string $name)
deprecated
deprecated 5.0 Use ->config()->get() instead
Get inherited config value
in Configurable at line 44
mixed
uninherited(string $name)
Gets the uninherited value for the given config option
in Configurable at line 57
$this
set_stat(string $name, mixed $value)
deprecated
deprecated 5.0 Use ->config()->set() instead
Update the config value for a given property
at line 27
static Cookie_Backend
get_inst()
Fetch the current instance of the cookie backend.
at line 47
static
set(string $name, mixed $value, int $expiry = 90, string $path = null, string $domain = null, bool $secure = false, bool $httpOnly = true)
Set a cookie variable.
Expiry time is set in days, and defaults to 90.
at line 67
static null|string
get(string $name, bool $includeUnsent = true)
Get the cookie value by name. Returns null if not set.
at line 79
static array
get_all(bool $includeUnsent = true)
Get all the cookies.