protected function init($args) { parent::init($args); if (!($cookie = Kurogo::arrayVal($args, 'GROUP', SITE_NAME))) { throw new KurogoConfigurationException("GROUP not set"); } $this->cookie = self::COOKIE_PREFIX . $cookie; $this->value = Kurogo::arrayVal($args, 'COOKIE_VALUE', $args['ID']); }
protected function init($args) { parent::init($args); $this->pagetype = Kurogo::arrayVal($args, 'PAGETYPE', null); $this->platform = Kurogo::arrayVal($args, 'PLATFORM', null); $this->browser = Kurogo::arrayVal($args, 'BROWSER', null); if (strlen($this->pagetype) == 0 && strlen($this->platform) == 0 && strlen($this->browser) == 0) { throw new KurogoConfigurationException("PAGETYPE, PLATFORM or BROWSER must be specified in " . get_class($this)); } }