/** * Define the action to be executed when the user changes the combo * @param $action TAction object */ public function setChangeAction(TAction $action) { if ($action->isStatic()) { $this->changeAction = $action; } else { $string_action = $action->toString(); throw new Exception(TAdiantiCoreTranslator::translate('Action (^1) must be static to be used in ^2', $string_action, __METHOD__)); } }
/** * Define the action to be executed when the user leaves the form field * @param $action TAction object */ function setExitAction(TAction $action) { if ($action->isStatic()) { $this->exitAction = $action; } else { $string_action = $action->toString(); throw new Exception(TAdiantiCoreTranslator::translate('Action (^1) must be static to be used in ^2', $string_action, __METHOD__)); } $this->widget->connect_after('focus-out-event', array($this, 'onExecuteExitAction')); }
/** * Define the action to be executed when the user leaves the form field * @param $action TAction object */ function setExitAction(TAction $action) { if ($action->isStatic()) { $this->exitAction = $action; } else { $string_action = $action->toString(); throw new Exception(AdiantiCoreTranslator::translate('Action (^1) must be static to be used in ^2', $string_action, __METHOD__)); } $this->entry->setExitAction($action); }
/** * Define the action to be executed when the user changes the combo * @param $action TAction object */ function setChangeAction(TAction $action) { if ($action->isStatic()) { $this->changeAction = $action; } else { $string_action = $action->toString(); throw new Exception(TAdiantiCoreTranslator::translate('Action (^1) must be static to be used in ^2', $string_action, __METHOD__)); } if ($this->radios) { foreach ($this->radios as $key => $radio) { $radio->connect('clicked', array($this, 'onExecuteExitAction')); } } }