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


PHP Events::getSignupsForEvent方法代码示例

本文整理汇总了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')) {
开发者ID:CWFranklin,项目名称:lan-party-site,代码行数:31,代码来源:viewEvent.php

示例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';
开发者ID:CWFranklin,项目名称:lan-party-site,代码行数:11,代码来源:home.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));
开发者ID:CWFranklin,项目名称:lan-party-site,代码行数:9,代码来源:signups.php


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