public function evaluate()
 {
     $eval = true;
     if (isset($this->pagetype)) {
         $eval = $eval && Kurogo::getPagetype() == $this->pagetype;
     }
     if (isset($this->platform)) {
         $eval = $eval && Kurogo::getPlatform() == $this->platform;
     }
     if (isset($this->browser)) {
         $eval = $eval && Kurogo::getBrowser() == $this->browser;
     }
     return $eval;
 }
 protected function init($args)
 {
     parent::init($args);
     $url = "https://picasaweb.google.com/data/feed/api/";
     if (isset($args['USER'], $args['ALBUM'])) {
         $url .= sprintf("user/%s/albumid/%s", $args['USER'], $args['ALBUM']);
     } else {
         throw new KurogoConfigurationException("USER and ALBUM values must be set for Picasa albums");
     }
     $this->setBaseURL($url);
     $this->addFilter('kind', 'photo');
     switch (Kurogo::getPagetype()) {
         case 'tablet':
             $this->addFilter('thumbsize', '150c');
             break;
         default:
             $this->addFilter('thumbsize', '72c');
             break;
     }
     $this->addFilter('alt', 'json');
 }