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