Exemplo n.º 1
0
Arquivo: Item.php Projeto: 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 4
0
Arquivo: Tool.php Projeto: 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');
 }
Exemplo n.º 5
0
Arquivo: Info.php Projeto: 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());
 }
Exemplo n.º 6
0
Arquivo: Rss.php Projeto: 4otaku/art
 protected function get_params(Query $query)
 {
     $this->set_param('query', $query->to_url_string());
     $this->set_param('domain', $_SERVER['SERVER_NAME']);
 }