本文整理汇总了PHP中Backend::remove_notification方法的典型用法代码示例。如果您正苦于以下问题:PHP Backend::remove_notification方法的具体用法?PHP Backend::remove_notification怎么用?PHP Backend::remove_notification使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Backend
的用法示例。
在下文中一共展示了Backend::remove_notification方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
# 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;
case 'bulk_start_watching':
Backend::add_notification(Post::val('user_id'), Post::val('ids'));
break;
case 'bulk_stop_watching':
Backend::remove_notification(Post::val('user_id'), Post::val('ids'));
break;
}
//Process the tasks.
$columns = array();
$values = array();
//determine the tasks properties that have been modified.
if (!Post::val('bulk_status') == 0) {
array_push($columns, 'item_status');
array_push($values, Post::val('bulk_status'));
}
if (!Post::val('bulk_percent_complete') == 0) {
array_push($columns, 'percent_complete');
array_push($values, Post::val('bulk_percent_complete'));
}
if (!Post::val('bulk_task_type') == 0) {
示例2: action_remove_notification
function action_remove_notification()
{
Backend::remove_notification(Req::val('user_id'), Req::val('ids'));
return array(SUBMIT_OK, L('notifyremoved'));
}
示例3: L
$userId = Flyspray::UserNameToId(Req::val('user_name'));
}
if (!Backend::add_notification($userId, Req::val('ids'))) {
Flyspray::show_error(L('couldnotaddusernotif'));
break;
}
$_SESSION['SUCCESS'] = L('notifyadded');
break;
// ##################
// removing a notification entry
// ##################
// ##################
// removing a notification entry
// ##################
case 'remove_notification':
Backend::remove_notification(Req::val('user_id'), Req::val('ids'));
$_SESSION['SUCCESS'] = L('notifyremoved');
break;
// ##################
// editing a comment
// ##################
// ##################
// editing a comment
// ##################
case 'editcomment':
if (!($user->perms('edit_comments') || $user->perms('edit_own_comments'))) {
break;
}
$where = '';
$params = array(Post::val('comment_text'), time(), Post::val('comment_id'), $task['task_id']);
if ($user->perms('edit_own_comments') && !$user->perms('edit_comments')) {