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


PHP TApplication::executeMethod方法代码示例

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


在下文中一共展示了TApplication::executeMethod方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->texto = new TLabel('');
     parent::add($this->texto);
     if (!isset($_REQUEST['method'])) {
         TApplication::executeMethod("PaginaAjuda", "onHelp");
     }
 }
开发者ID:jfrank1500,项目名称:curso_php,代码行数:9,代码来源:PaginaAjuda.class.php

示例2: onLogout

 /**
  * método onLogout
  * Executado quando o usuário clicar no botão logout
  */
 function onLogout()
 {
     TSession::setValue('logged', FALSE);
     TApplication::executeMethod('LoginForm', '');
 }
开发者ID:jhonleandres,项目名称:crmbf,代码行数:9,代码来源:LoginForm.class.php

示例3: onExecute

 /**
  * Execute the action
  * @param  $action callback to be executed
  * @ignore-autocomplete on
  */
 public function onExecute($action)
 {
     $callb = $action->getAction();
     if (is_object($callb[0])) {
         $object = $callb[0];
         call_user_func($callb, $action->getParameters());
         //aquip, este IF estava acima do call_user_func
         if (method_exists($object, 'show')) {
             if ($object->get_child()) {
                 $object->show();
             }
         }
     } else {
         $class = $callb[0];
         $method = $callb[1];
         TApplication::executeMethod($class, $method, $action->getParameters());
     }
 }
开发者ID:jhonleandres,项目名称:crmbf,代码行数:23,代码来源:TButton.class.php

示例4: onExecute

 /**
  * Execute the action
  * @param  $action A TDataGridAction object
  * @ignore-autocomplete on
  */
 public function onExecute(TDataGridAction $action)
 {
     $selection = $this->view->get_selection();
     if ($selection) {
         list($model, $iter) = $selection->get_selected();
         if ($iter) {
             $activeObject = $this->model->get_value($iter, $this->count);
             $field = $action->getField();
             $label = $action->getLabel();
             if (is_null($field)) {
                 throw new Exception(TAdiantiCoreTranslator::translate('Field for action ^1 not defined', $label) . '.<br>' . TAdiantiCoreTranslator::translate('Use the ^1 method', 'setField' . '()') . '.');
             }
             $array['key'] = $activeObject->{$field};
             $callb = $action->getAction();
             if (is_array($callb)) {
                 if (is_object($callb[0])) {
                     $object = $callb[0];
                     $window_visible = $object->is_visible();
                     // execute action
                     call_user_func($callb, $array);
                     if (method_exists($object, 'show')) {
                     }
                     // if the window wasn't visible before
                     // the operation, shows it.
                     // Forms: window wasn't visible, then show.
                     // SeekBtns: window was visible, do nothing.
                     //           the operation itself closes the window.
                     if (!$window_visible) {
                         if ($object->get_child()) {
                             $object->show();
                         }
                     }
                 } else {
                     $class = $callb[0];
                     $method = $callb[1];
                     TApplication::executeMethod($class, $method, $array);
                 }
             } else {
                 // execute action
                 call_user_func($callb, $array);
             }
         }
     }
 }
开发者ID:enieber,项目名称:adianti,代码行数:49,代码来源:TDataGrid.class.php


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