Example #1
0
File: Item.php Project: 4otaku/art
 protected function get_params(Query $query)
 {
     $this->set_param('query', $query->to_url_string());
     $this->set_param('id', $query->url(0));
     $this->set_param('next', false);
     $this->set_param('prev', false);
 }
Example #2
0
 protected function get_params(Query $query)
 {
     $this->set_param('query', $query->to_url_string());
     $this->set_param('start', max(1, $query->get('start')));
     $this->set_param('auto', Config::getInstance()->get('slideshow', 'auto'));
     $delay = Config::getInstance()->get('slideshow', 'delay');
     if ($delay < 10) {
         $delay = '0' . $delay;
     }
     $this->set_param('delay', $delay);
 }
Example #3
0
 protected function get_params(Query $query)
 {
     $this->set_param('query', $query->to_url_string());
     $parsed = $query->parsed();
     if (!empty($parsed['tag']['is'])) {
         $this->set_param('tags', implode(' ', $parsed['tag']['is']) . ' ');
     } else {
         $this->set_param('tags', '');
     }
     $this->set_param('groups', []);
     $this->set_param('have_groups', 0);
     $this->set_param('packs', []);
     $this->set_param('have_packs', 0);
     $this->set_param('manga', []);
     $this->set_param('have_manga', 0);
 }
Example #4
0
File: Tool.php Project: 4otaku/art
 protected function get_params(Query $query)
 {
     $this->set_param('query', $query->to_url_string());
     $this->set_param('mode', $query->get('mode'));
     $this->set_param('slideshow_enabled', !$query->get('mode') || $query->get('mode') == 'art');
 }
Example #5
0
File: Info.php Project: 4otaku/art
 protected function get_params(Query $query)
 {
     $this->set_param('query', $query->to_url_string());
     $this->set_param('pool_mode', $query->get_pool_mode());
     $this->set_param('pool_value', $query->get_pool_value());
 }
Example #6
0
File: Rss.php Project: 4otaku/art
 protected function get_params(Query $query)
 {
     $this->set_param('query', $query->to_url_string());
     $this->set_param('domain', $_SERVER['SERVER_NAME']);
 }