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); }
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); }
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); }
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'); }
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()); }
protected function get_params(Query $query) { $this->set_param('query', $query->to_url_string()); $this->set_param('domain', $_SERVER['SERVER_NAME']); }