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


PHP Zikula_Form_View::raiseEvent方法代码示例

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


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

示例1: decodePostBackEvent

 /**
  * Decode event handler for actions that generate a postback event.
  *
  * @param Zikula_Form_View $view Reference to Zikula_Form_View object.
  *
  * @return boolean
  */
 public function decodePostBackEvent(Zikula_Form_View $view)
 {
     $fullNameX = $this->id . '_' . $this->commandName . '_x';
     $fullNameY = $this->id . '_' . $this->commandName . '_y';
     if (isset($_POST[$fullNameX])) {
         $args = array('commandName' => $this->commandName, 'commandArgument' => $this->commandArgument, 'posX' => (int) $_POST[$fullNameX], 'posY' => (int) $_POST[$fullNameY]);
         if (!empty($this->onCommand)) {
             if ($view->raiseEvent($this->onCommand, $args) === false) {
                 return false;
             }
         }
     }
     return true;
 }
开发者ID:projectesIF,项目名称:Sirius,代码行数:21,代码来源:ImageButton.php

示例2: raisePostBackEvent

 /**
  * Called by Zikula_Form_View framework due to the use of getPostBackEventReference() above.
  *
  * @param Zikula_Form_View $view          Reference to Zikula_Form_View object.
  * @param string           $eventArgument The event argument.
  *
  * @return void
  */
 function raisePostBackEvent(Zikula_Form_View $view, $eventArgument)
 {
     $args = array('commandName' => null, 'commandArgument' => null);
     if (!empty($this->onSelectedIndexChanged)) {
         $view->raiseEvent($this->onSelectedIndexChanged, $args);
     }
 }
开发者ID:planetenkiller,项目名称:core,代码行数:15,代码来源:DropdownList.php

示例3: raisePostBackEvent

 /**
  * Called by Zikula_Form_View framework due to the use of Zikula_Form_View::getPostBackEventReference() above.
  *
  * @param Zikula_Form_View $view          Reference to Zikula_Form_View object.
  * @param string           $eventArgument The event argument.
  *
  * @return void
  */
 public function raisePostBackEvent(Zikula_Form_View $view, $eventArgument)
 {
     $args = array('commandName' => $eventArgument, 'commandArgument' => null);
     if (!empty($this->onCommand)) {
         $view->raiseEvent($this->onCommand, $args);
     }
 }
开发者ID:projectesIF,项目名称:Sirius,代码行数:15,代码来源:PostbackFunction.php

示例4: raisePostBackEvent

 /**
  * Called by Zikula_Form_View framework due to the use of getPostBackEventReference() above.
  *
  * @param Zikula_Form_View $view          Reference to Zikula_Form_View object.
  * @param string           $eventArgument The event argument.
  *
  * @return void
  */
 public function raisePostBackEvent(Zikula_Form_View $view, $eventArgument)
 {
     $carg = unserialize($eventArgument);
     $args = array('commandName' => $carg['cname'], 'commandArgument' => $carg['carg']);
     if (!empty($this->onCommand)) {
         $view->raiseEvent($this->onCommand, $args);
     }
 }
开发者ID:projectesIF,项目名称:Sirius,代码行数:16,代码来源:LinkButton.php

示例5: raisePostBackEvent

 /**
  * Called by Forms framework due to the use of getPostBackEventReference() above.
  *
  * @param Zikula_Form_View $view          Reference to Form render object.
  * @param string           $eventArgument The event argument.
  *
  * @return void
  */
 public function raisePostBackEvent(Zikula_Form_View $view, $eventArgument)
 {
     $contextMenu = $this->getParentContextMenu();
     $hiddenName = "contentMenuArgument" . $contextMenu->id;
     $commandArgument = $this->request->request->get($hiddenName, null);
     $args = array('commandName' => $eventArgument, 'commandArgument' => $commandArgument);
     $view->raiseEvent($contextMenu->onCommand == null ? 'handleCommand' : $contextMenu->onCommand, $args);
 }
开发者ID:Silwereth,项目名称:core,代码行数:16,代码来源:Item.php

示例6: decodePostBackEvent

 /**
  * Decode event handler for actions that generate a postback event.
  *
  * @param Zikula_Form_View $view Reference to Form render object.
  *
  * @return boolean
  */
 function decodePostBackEvent(Zikula_Form_View $view)
 {
     $fullName = $this->id . '_' . $this->commandName;
     if (isset($_POST[$fullName])) {
         $args = array('commandName' => $this->commandName, 'commandArgument' => $this->commandArgument);
         if (!empty($this->onCommand)) {
             if ($view->raiseEvent($this->onCommand, $args) === false) {
                 return false;
             }
         }
     }
     return true;
 }
开发者ID:planetenkiller,项目名称:core,代码行数:20,代码来源:Button.php


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