Exemplo n.º 1
0
 public function renderContent()
 {
     if ($this->commands) {
         $cmd = new Commands();
         $cmd->executeCmds($this->commands);
     }
     return null;
 }
Exemplo n.º 2
0
 public function proccessForm()
 {
     // submit
     if ($this->hasSubmitted()) {
         foreach ($this->fields as $field) {
             $field instanceof Field;
             $field->proccessField($this);
         }
     } else {
         if ($this->onLoad) {
             $cmd = new Commands($this);
             $cmd->executeCmds($this->onLoad);
         }
     }
 }