Exemplo n.º 1
0
 public function editRubrikaFormSubmitted(UpravitRubrikuForm $form)
 {
     $this->overitRubriku($this->id);
     $this->opravneni = $this->opravneni($this->id);
     if (!$this->opravneni['rubrika_edit']) {
         $this->redirect('rubriky', $this->id);
     }
     $values = $form->getValues();
     $rubrika = new Rubrika($this->id);
     $rubrika->setUdaje($values);
     $zaznam = $this->redakce->ulozitRubriku($rubrika);
     $this->logg("upravena rubrika " . $this->id);
     $this->flashMessage('Změny byly uloženy.');
     $this->redirect('rubriky', $this->id);
 }