Beispiel #1
0
 public function valideFormNewSystemName(\Nette\Forms\Controls\TextInput $input)
 {
     $resource = $this->model->where('system_name', $input->getValue());
     if (!$resource->fetch()) {
         return true;
     } else {
         return false;
     }
 }