本文整理汇总了PHP中Notifications::NotificationsHaveBeenRead方法的典型用法代码示例。如果您正苦于以下问题:PHP Notifications::NotificationsHaveBeenRead方法的具体用法?PHP Notifications::NotificationsHaveBeenRead怎么用?PHP Notifications::NotificationsHaveBeenRead使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Notifications
的用法示例。
在下文中一共展示了Notifications::NotificationsHaveBeenRead方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
// Nothing to do.
break;
}
$validids = array();
foreach ($_POST['message_id'] as $id) {
if (is_numeric($id)) {
if (settype($id, 'int') && $id > 0) {
$validids[] = $id;
}
}
}
if (!count($validids)) {
// Nothing to do.
break;
}
Notifications::NotificationsHaveBeenRead($validids);
break;
case 'task.bulkupdate':
# TODO check if the user has the right to do each action on each task id he send with the form!
# TODO check if tasks have open subtasks before closing
# TODO SQL Transactions with rollback function if something went wrong in the middle of bulk action
$massopsenabled = 0;
# 20150305 disabled for 1.0 release until proper checks are done
if ($massopsenabled == 1) {
// TODO: Log events in a later version.
if (Post::val('updateselectedtasks') == "true") {
//process quick actions
switch (Post::val('bulk_quick_action')) {
case 'bulk_take_ownership':
Backend::assign_to_me(Post::val('user_id'), Post::val('ids'));
break;