本文整理汇总了PHP中notifications::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP notifications::delete方法的具体用法?PHP notifications::delete怎么用?PHP notifications::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类notifications
的用法示例。
在下文中一共展示了notifications::delete方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: notifications
#########################################
# Author : D3W4 & SAHAT #
# Created : May 8, 2012 8:46:25 PM #
#########################################
use_class('notifications');
$notifications = new notifications();
if (isset($_GET['sender']) && $_GET['sender'] != '') {
$sender = tep_db_prepare_input($_GET['sender']);
$filter = "AND posted_by = '{$sender}'";
}
if (isset($_POST['me_action'])) {
if ($_POST['me_action'] == 'DELETENOTIFICATIONS') {
$ids = $_POST['ids'];
list($notifications_id, $not_class) = split('-', $ids);
$notifications->delete($notifications_id);
$result = array();
$result['notifications_id'] = $notifications_id;
$result['not_class'] = $not_class;
ajaxReturn($result);
exit;
} elseif ($_POST['me_action'] == 'CLOSEFEEDBACK') {
$ids = $_POST['ids'];
list($notifications_id, $not_class) = split('-', $ids);
$notifications->closeOpenFeedback($notifications_id);
$result = array();
$result['ids'] = $ids;
$result['notifications_id'] = $notifications_id;
ajaxReturn($result);
exit;
} elseif ($_POST['me_action'] == 'REFRESHFILTERS') {