You are here

function FlagNonGlobalCookieStorage::__construct in Flag 7.3

Same name and namespace in other branches
  1. 6.2 flag.inc \FlagNonGlobalCookieStorage::__construct()
  2. 7.2 flag.inc \FlagNonGlobalCookieStorage::__construct()

Overrides FlagCookieStorage::__construct

File

includes/flag.cookie_storage.inc, line 120
Contains the FlagCookieStorage class.

Class

FlagNonGlobalCookieStorage
Storage handler for non-global flags.

Code

function __construct($flag) {
  parent::__construct($flag);
  $this->flaggings = isset($_COOKIE['flags']) ? explode(' ', $_COOKIE['flags']) : array();
}