You are here

function FlagNonGlobalCookieStorage::__construct in Flag 7.2

Same name and namespace in other branches
  1. 6.2 flag.inc \FlagNonGlobalCookieStorage::__construct()
  2. 7.3 includes/flag.cookie_storage.inc \FlagNonGlobalCookieStorage::__construct()

Overrides FlagCookieStorage::__construct

File

./flag.inc, line 1975
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();
}