本文整理汇总了PHP中TAction::isStatic方法的典型用法代码示例。如果您正苦于以下问题:PHP TAction::isStatic方法的具体用法?PHP TAction::isStatic怎么用?PHP TAction::isStatic使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TAction
的用法示例。
在下文中一共展示了TAction::isStatic方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setChangeAction
/**
* 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__));
}
}
示例2: setExitAction
/**
* 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'));
}
示例3: setExitAction
/**
* 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);
}
示例4: setChangeAction
/**
* 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'));
}
}
}