To manipulate cookie
Definition at line 10 of file cookie.class.php.
◆ afterInit()
◆ beforeInit()
Call just before the configuration initialisation
Definition at line 35 of file object.class.php.
◆ changeCfg()
Alter the configuration with an array
- Parameters
-
Definition at line 41 of file cookie.class.php.
◆ check()
Check if the cookie is already set
- Returns
- bool
Definition at line 64 of file cookie.class.php.
◆ del()
◆ doNotSave()
doNotSave |
( |
|
$doNotSave = null | ) |
|
get or set the doNotSave attribute
- Parameters
-
nul | bool | $doNotSave | null to get or booleand to set |
- Returns
- void|bool
Definition at line 52 of file cookie.class.php.
◆ get()
get |
( |
|
$fromBrowser = false | ) |
|
Get the current cookie value
- Parameters
-
bool | $fromBrowser | True if force to get the value from the browser |
- Returns
- mixed|null The value or null if not set
Definition at line 74 of file cookie.class.php.
◆ getAttr()
Get an attribute
- Parameters
-
string | $name | Attribute name |
- Returns
- mixed|null The attribute or null if not set
Definition at line 48 of file object.class.php.
◆ getCfg()
Get the configuration object
- Returns
- config
Definition at line 67 of file object.class.php.
◆ getRawName()
Get the raw cookie name (with the prefix)
- Returns
- string
Definition at line 131 of file cookie.class.php.
◆ save()
Save the cookie. Should be call by the response only
- Returns
- bool True if already saved or successful saved, False if not saved
Definition at line 108 of file cookie.class.php.
◆ set()
Set the cookie value
- Parameters
-
mixed | $value | The cookie value |
Definition at line 88 of file cookie.class.php.
◆ setAttr()
setAttr |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
|
inherited |
Set an attribute
- Parameters
-
string | $name | Attribute name |
mixed | $value | Attribute value |
Definition at line 58 of file object.class.php.
◆ $cfg
◆ $doNotSave
◆ $saved
The documentation for this class was generated from the following file: