当前位置: 首页>>代码示例>>PHP>>正文


PHP TAction::toString方法代码示例

本文整理汇总了PHP中TAction::toString方法的典型用法代码示例。如果您正苦于以下问题:PHP TAction::toString方法的具体用法?PHP TAction::toString怎么用?PHP TAction::toString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TAction的用法示例。


在下文中一共展示了TAction::toString方法的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__));
     }
 }
开发者ID:jhonleandres,项目名称:pecommerce,代码行数:13,代码来源:TRadioGroup.class.php

示例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'));
 }
开发者ID:jhonleandres,项目名称:pecommerce,代码行数:14,代码来源:TPassword.class.php

示例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);
 }
开发者ID:klausetgeton,项目名称:esales-gtk,代码行数:14,代码来源:TDate.php

示例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'));
         }
     }
 }
开发者ID:jhonleandres,项目名称:pecommerce,代码行数:18,代码来源:TRadioGroup.class.php


注:本文中的TAction::toString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。