public function view() { parent::_prepareView(); $this->redirect('/dane/gminy/' . $this->object->getData('gmina_id') . '/posiedzenia/' . $this->object->getId()); die; $this->dataobjectsBrowserView(array('source' => 'rady_gmin_debaty.posiedzenie_id:' . $this->object->getId(), 'dataset' => 'rady_gmin_debaty', 'title' => 'Debaty na tym posiedzeniu', 'noResultsTitle' => 'Brak debat na tym posiedzeniu', 'hlFields' => array(), 'routes' => array('date' => false))); }
public function careIt() { parent::_prepareView(); $post_url = $this->CoeSitting->careIt(array('url' => $this->object->getData('url'), 'title' => $this->object->getTitle())); $this->Session->setFlash('<p>Utworzyłem nowy post na platformie Care\'o\'meter.</p><p><a target="_blank" href="' . $post_url . '">Edytuj i opublikuj go!</a></p>', 'default', array('class' => 'careIt')); $this->redirect($this->referer()); }
public function _prepareView() { $aggs_fields = array(); foreach (array('akty_uchylajace', 'akty_uchylone', 'akty_wykonawcze', 'akty_uznane_za_uchylone', 'akty_zmieniajace', 'akty_zmienione', 'informacja_o_tekscie_jednolitym', 'odeslania', 'orzeczenie_do_aktu', 'orzeczenie_tk', 'podstawa_prawna', 'tekst_jednolity_do_aktu', 'uchylenia_wynikajace_z') as $field) { $aggs_fields[$field] = array('filter' => array('term' => array('data.prawo.' . $field => $this->request->params['id']))); } $this->addInitAggs(array('prawo' => array('filter' => array('bool' => array('must' => array(array('term' => array('dataset' => 'prawo'))))), 'scope' => 'global', 'aggs' => $aggs_fields))); return parent::_prepareView(); }
public function view() { parent::_prepareView(); $this->redirect('/dane/gminy/' . $this->object->getData('gminy.id') . '/debaty/' . $this->object->getId()); die; $this->object->loadLayer('wystapienia'); $wystapienia = array(); foreach ($this->object->layers['wystapienia'] as $wystapienie) { $wystapienia[$wystapienie['rady_posiedzenia_wystapienia']['id']] = array('mowca_str' => $wystapienie['rady_posiedzenia_wystapienia']['mowca_str'], 'video_start' => $wystapienie['rady_posiedzenia_wystapienia']['video_start']); } $this->set('wystapienia', $wystapienia); }
public function view() { if (isset($this->request->params['alias'])) { $this->params->id = $this->params->alias; $this->search_field = 'zbiory.slug'; } else { parent::_prepareView(); return $this->redirect('/dane/' . $this->object->getData('slug')); } parent::_prepareView(); $params = array('dataset' => $this->object->getData('slug'), 'limit' => 50); if ($this->object->getId() == '185') { $params['source'] = 'zbiory.katalog:1'; } $this->dataobjectsBrowserView($params); $this->set('title_for_layout', $this->object->getData('nazwa')); }
public function view() { parent::_prepareView(); $this->dataobjectsBrowserView(array('dataset' => 'poslowie', 'order' => 'poslowie.wartosc_biuro_' . $this->object->getData('slug') . ' desc', 'hlFields' => array('wartosc_biuro_' . $this->object->getData('slug'), 'sejm_kluby.nazwa'))); }
public function view() { parent::_prepareView(); $this->redirect('/dane/gminy/903/punkty/' . $this->object->getId()); die; }
public function view() { parent::_prepareView(); $this->dataobjectsBrowserView(array('source' => 'sn_sedziowie.orzeczenia:' . $this->object->getId(), 'dataset' => 'sn_orzeczenia')); // $this->set('title_for_layout', __d('dane', 'LC_DANE_GMINY_W_WOJEWODZTWIE') . ' ' . $this->object->getData('nazwa')); }
public function view() { parent::_prepareView(); $this->dataobjectsBrowserView(array('source' => 'crawlerSites.pages:' . $this->object->getId(), 'dataset' => 'crawler_pages', 'title' => 'Strony w tym portalu', 'excludeFilters' => array('site_id'))); }
public function view() { $this->addInitLayers(array('uczestnicy')); parent::_prepareView(); }
public function view() { parent::_prepareView(); }
public function _prepareView() { if ($this->request->action != 'view') { $this->addInitAggs(array('zamowienia' => array('filter' => array('bool' => array('must' => array(array('term' => array('dataset' => 'zamowienia_publiczne')), array('term' => array('data.zamowienia_publiczne.gmina_id' => $this->request->params['id']))))), 'scope' => 'global'), 'prawo' => array('filter' => array('bool' => array('must' => array(array('term' => array('dataset' => 'prawo_wojewodztwa')), array('term' => array('data.prawo_wojewodztwa.gmina_id' => $this->request->params['id']))))), 'scope' => 'global'))); } if ($this->params->id == 903) { $this->addInitLayers(array('dzielnice')); } if ($this->domainMode == 'PK') { $this->_layout['header']['element'] = 'pk'; } if (defined('PORTAL_DOMAIN') && defined('PK_DOMAIN') && ($pieces = parse_url(Router::url($this->here, true))) && $pieces['host'] == PK_DOMAIN) { if ($this->params->id != 903) { $this->redirect($this->protocol . PORTAL_DOMAIN . $this->port . $_SERVER['REQUEST_URI']); die; } } return parent::_prepareView(); }
public function _prepareView() { $this->addInitAggs(array('pisma' => array('filter' => array('bool' => array('must' => array(array('term' => array('dataset' => 'pisma')), array('term' => array('data.pisma.object_id' => '0')), array('term' => array('data.pisma.is_public' => 'true')), array('term' => array('data.pisma.from_user_id' => $this->request->params['id']))))), 'aggs' => array('top' => array('top_hits' => array('fielddata_fields' => array('dataset', 'id'), 'size' => 3, 'sort' => array('date' => 'desc')))), 'scope' => 'global'), 'kolekcje' => array('filter' => array('bool' => array('must' => array(array('term' => array('dataset' => 'kolekcje')), array('term' => array('data.kolekcje.user_id' => $this->request->params['id'])), array('term' => array('data.kolekcje.is_public' => 'true')), array('term' => array('data.kolekcje.object_id' => '0'))))), 'aggs' => array('top' => array('top_hits' => array('fielddata_fields' => array('dataset', 'id'), 'size' => 3, 'sort' => array('date' => 'desc')))), 'scope' => 'global'))); parent::_prepareView(); }
public function view() { parent::_prepareView(); $this->innerSearch('twitter', array('q' => '#' . $this->object->getData('tag')), array('searchTitle' => sprintf(__d('dane', 'LC_DANE_TWITTY_OZNACZONE_TAGIEM'), '#' . $this->object->getData('tag')))); }