function FlagNonGlobalCookieStorage::__construct in Flag 6.2
Same name and namespace in other branches
- 7.3 includes/flag.cookie_storage.inc \FlagNonGlobalCookieStorage::__construct()
- 7.2 flag.inc \FlagNonGlobalCookieStorage::__construct()
Overrides FlagCookieStorage::__construct
File
- ./
flag.inc, line 1883 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Class
- FlagNonGlobalCookieStorage
- Storage handler for non-global flags.
Code
function __construct($flag) {
parent::__construct($flag);
$this->flaggings = isset($_COOKIE['flags']) ? explode(' ', $_COOKIE['flags']) : array();
}