Ejemplo n.º 1
0
 public function init($args)
 {
     $args['ID'] = $this->id;
     $this->title = Kurogo::arrayVal($args, 'TITLE', $this->id);
     $this->description = Kurogo::arrayVal($args, 'DESCRIPTION');
     $this->rule = UserContextRule::factory($args);
 }
Ejemplo n.º 2
0
 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']);
 }
Ejemplo n.º 3
0
 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));
     }
 }