本文整理汇总了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']);