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


PHP Events::getEventData方法代码示例

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


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

示例1: detailsAction

 /** Render data for view on index action
  * @access public
  * @return void
  * @throws Pas_Exception_Param
  */
 function detailsAction()
 {
     if ($this->getParam('id', false)) {
         $this->view->events = $this->_events->getEventData($this->getParam('id'));
     } else {
         throw new Pas_Exception_Param($this->_missingParameter, 500);
     }
 }
开发者ID:lesleyauk,项目名称:findsorguk,代码行数:13,代码来源:EventsController.php

示例2: header

     Manager::LoadExtension('Professions', $ClassConstructor);
     $Professions = Professions::GetProfessionsList();
     $ExistingProfessions = Text::UnsetAllBut('profession_name', $Professions, 2);
     if (!in_array($_REQUEST['lastcategory'], $ExistingProfessions)) {
         header('Location: /game/profession');
     }
     $Profession = Professions::GetProfession($_REQUEST['lastcategory']);
     $Smarty->assign('Profession', $Profession);
     $Smarty->assign('Navigation', Professions::GetNavigation($Profession['id']));
     $Smarty->assign('Page', Page::Info('profession', array('bodycss' => 'profession-page profession-' . $_REQUEST['lastcategory'] . '', 'pagetitle' => $Profession['profession_translation'] . ' - ' . $Smarty->GetConfigVars('Menu_Game') . ' - ')));
     $Smarty->display('pages/game_profession');
 } elseif ($_REQUEST['subcategory'] == 'events') {
     Manager::LoadExtension('Events', $ClassConstructor);
     $Smarty->translate('Events');
     $EventName = $_REQUEST['lastcategory'];
     $EventData = Events::getEventData($EventName);
     if (!$EventData) {
         header('Location: /game/events');
     } else {
         $Events = Events::getEvents();
         $PageEventData = [];
         foreach ($Events as $Event) {
             if (isset($Event['description'])) {
                 $EventName = str_replace('\'', '', $Event['description']);
                 if (trim($EventData['name']) == trim($EventName)) {
                     $PageEventData = $Event;
                 }
             }
         }
         $Smarty->assign('DData', $PageEventData);
         $Smarty->assign('Event', $EventData);
开发者ID:Expecto,项目名称:FreedomCore,代码行数:31,代码来源:pager.php

示例3: indexAction

 /**
  * Render data for view on index action
  */
 function indexAction()
 {
     $events = new Events();
     $this->view->events = $events->getEventData($this->_getParam('id'));
 }
开发者ID:rwebley,项目名称:Beowulf---PAS,代码行数:8,代码来源:InfoController.php


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