本文整理汇总了PHP中Events::getSignupsForEvent方法的典型用法代码示例。如果您正苦于以下问题:PHP Events::getSignupsForEvent方法的具体用法?PHP Events::getSignupsForEvent怎么用?PHP Events::getSignupsForEvent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Events
的用法示例。
在下文中一共展示了Events::getSignupsForEvent方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: FormForceSignup
require_once 'includes/classes/FormForceSignup.php';
$formForceSignup = new FormForceSignup($event['id']);
if ($formForceSignup->validate()) {
$formForceSignup->process();
}
}
require_once 'includes/widgets/header.php';
if (!Session::hasPriv('VIEW_SIGNUP_COMMENTS')) {
require_once 'includes/widgets/sidebar.php';
}
if (Session::isLoggedIn()) {
$notifications = array();
checkNotificationNotGuarenteedSeats($notifications);
$tpl->assign('notifications', $notifications);
}
$signups = Events::getSignupsForEvent($id, $event['signups']);
$tpl->assign('event', $event);
$tpl->assign('signups', $signups);
$tpl->assign('signupLinks', signupLinks($event['id'], $event['signups'], null));
$tpl->assign('signupStatistics', getSignupStatistics($signups));
$tpl->display('eventOverview.tpl');
if (Session::hasPriv('FORCE_SIGNUP')) {
$tpl->assignForm($formForceSignup);
}
if (Session::hasPriv('EVENT_FINANCE_OVERVIEW')) {
$tpl->assign('eventFinanceOverview', Events::getSignupFinances($event['id']));
}
$tpl->assign('privViewAttendance', Session::hasPriv('VIEW_ATTENDANCE_COUNTS'));
$tpl->assign('privViewSignupComments', Session::hasPriv('VIEW_SIGNUP_COMMENTS'));
$tpl->display('signupsList.tpl');
if (Session::hasPriv('VIEW_SIGNUP_COMMENTS')) {
示例2: getSignupStatistics
<?php
require_once 'includes/widgets/header.php';
require_once 'includes/widgets/sidebar.php';
require_once 'includes/classes/Events.php';
require_once 'includes/classes/Galleries.php';
$nextEvent = Events::nextEvent();
$tpl->assign('nextEvent', $nextEvent);
$tpl->assign('signups', getSignupStatistics(Events::getSignupsForEvent($nextEvent['id'])));
$tpl->display('home.tpl');
require_once 'includes/widgets/footer.php';
示例3: header
<?php
require_once 'jsonCommon.php';
require_once 'libAllure/Sanitizer.php';
header('Content-Type: application/json');
use libAllure\Sanitizer;
$id = Sanitizer::getInstance()->filterUint('id');
$signups = Events::getSignupsForEvent($id);
echo json_encode(getSignupStatistics($signups));