コード例 #1
0
 /**
  * Execute the exit action
  */
 public function onExecuteExitAction()
 {
     $callback = $this->exitAction->getAction();
     $param = (array) TForm::retrieveData($this->formName);
     call_user_func($callback, $param);
 }
コード例 #2
0
 /**
  * Execute the exit action
  */
 public function onExecuteExitAction()
 {
     if (!TForm::getFormByName($this->formName) instanceof TForm) {
         throw new Exception(TAdiantiCoreTranslator::translate('You must pass the ^1 (^2) as a parameter to ^3', __CLASS__, $this->wname, 'TForm::setFields()'));
     }
     if (isset($this->exitAction) and $this->exitAction instanceof TAction) {
         $callback = $this->exitAction->getAction();
         $param = (array) TForm::retrieveData($this->formName);
         call_user_func($callback, $param);
     }
 }