示例#1
0
 public function renderRubriky()
 {
     $this->template->clanky = $this->pravaKClankum($this->redakce->findClankyByRubrika($this->id));
     $rubriky = $this->redakce->findRubrikyByRodic($this->id);
     $this->pravaKRubrikam();
     foreach ($rubriky as $key => $rubrika) {
         $rubrika['podrubriky'] = $this->redakce->findRubrikyByRodic($rubrika->id);
         $this->pravaKRubrikam();
         if (isset($this->prava_k_rubrikam[$rubrika->id]) && $this->prava_k_rubrikam[$rubrika->id] >= $this->vyse_prav['rubrika_edit']) {
             $rubrika['rubrika_edit'] = TRUE;
         } else {
             $rubrika['rubrika_edit'] = FALSE;
         }
     }
     $this->template->rubriky = $rubriky;
 }