本文整理汇总了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);
}
}
示例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);
示例3: indexAction
/**
* Render data for view on index action
*/
function indexAction()
{
$events = new Events();
$this->view->events = $events->getEventData($this->_getParam('id'));
}