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


PHP Notify::getNotificationsListAdmin方法代码示例

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


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

示例1: isset

//$append .= " AND flags & " . Notify::FLAG_NOTIF_DATA_SAVED;
$orderAlbums = isset($_SESSION['admin_filters_quizz']['order']) ? $_SESSION['admin_filters_quizz']['order'] : null;
if (isset($orderAlbums->orderBy)) {
    $append .= ' ORDER BY `' . $orderAlbums->orderBy . '` ' . $orderAlbums->orderType . ' ';
} else {
    $append .= ' ORDER BY `id` DESC ';
}
$recordsPerPage = isset($filters['records']) ? intval($filters['records']) : 10;
if ($recordsPerPage < 10 || $recordsPerPage > 500) {
    $recordsPerPage = 10;
}
$album = new Notify();
$count = $album->getCount($append);
$templates = new Templates();
$paginator = new Paginator($count);
$paginator->setRecordsPerPage($recordsPerPage);
$append .= " LIMIT " . $paginator->getLimit();
$filters['order'] = $orderAlbums;
$smarty->assign('paginatorHtml', $paginator->getHtml());
$smarty->assign('paginator', $paginator);
$smarty->assign('notifications', Notify::getNotificationsListAdmin($append));
$smarty->assign('filters', $filters);
if (!isset($arr)) {
    $arr[] = '';
}
$smarty->assign('arr_template', $arr);
$smarty->assign('templates', $templates->getAll(' order by name '));
$smarty->assign('quizTypes', Notify::getTypes());
$smarty->assign($_SESSION['admin_filters_quizz']['filters'], $_SESSION['admin_filters_quizz']['filters']);
$smarty->assign('filter_chart_period', $_SESSION['admin_filters_quizz']['filters']['filter_chart_period']);
$smarty->assign('filter_chart_y_axis', $_SESSION['admin_filters_quizz']['filters']['filter_chart_y_axis']);
开发者ID:robertpop,项目名称:NS,代码行数:31,代码来源:list.php


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