Exemplo n.º 1
0
 /**
  * Processes and invokes the action if provided and submitted
  * @return null
  */
 private function processAction()
 {
     if (!$this->hasActions()) {
         return;
     }
     $action = $this->form->getValue(self::FIELD_ACTION);
     if (!array_key_exists($action, $this->actions)) {
         return;
     }
     $values = $this->form->getValue(self::FIELD_ID);
     $this->actions[$action]->invoke($values);
     $this->form->setValue(self::FIELD_ACTION, 0);
 }