Пример #1
0
 public function canDisplayForm()
 {
     switch (strtolower($this->formType)) {
         case 'edit':
             $dataRec = $this->fetchData();
             if ($dataRec['system'] == 1) {
                 return false;
             } else {
                 return parent::canDisplayForm();
             }
             break;
     }
     return parent::canDisplayForm();
 }