Exemple #1
0
 protected function createComponentAkce()
 {
     $preklady = $this->context->parameters['rubriky'];
     $sport = array_search($this->id_rubriky_pro_akce, $preklady);
     $akce = $this->spravceAkci->findByDatum('+1 month', '-3 days', TRUE, $sport);
     $spravceVysledku = new SpravceVysledkuXml();
     foreach ($akce as $ak) {
         $ak['exisuji_vysledky'] = $spravceVysledku->existujiVysledky($ak->id);
     }
     $control = new SeznamAkciControl($akce, $this->spravceAkci->typy_priloh, $this->getService('sportyRepository')->getSportyNazvy());
     $control->setTerminovaListina($this->redakce->seznamOstatnichPriloh($this->id_terminove_listiny));
     return $control;
 }
 protected function createComponentNahledClanku()
 {
     return new NahledClankuControl($this->clanek, $this->redakce->seznamObrazku($this->id_clanku), $this->redakce->seznamOstatnichPriloh($this->id_clanku));
 }