Cookie
class Cookie (View source)
A set of static methods for manipulating cookies.
Traits
Provides extensions to this object to integrate it with standard config API methods.
Properties
static private bool | $report_errors |
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
static Config_ForClass
config()
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).
mixed
stat(string $name)
deprecated
deprecated
Get inherited config value
mixed
uninherited(string $name)
Gets the uninherited value for the given config option
$this
set_stat(string $name, mixed $value)
deprecated
deprecated
Update the config value for a given property
static Cookie_Backend
get_inst()
Fetch the current instance of the cookie backend.
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.
static null|string
get(string $name, bool $includeUnsent = true)
Get the cookie value by name. Returns null if not set.
static array
get_all(bool $includeUnsent = true)
Get all the cookies.