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


PHP notifications::closeOpenFeedback方法代码示例

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


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

示例1: list

    $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') {
        $sender = tep_db_prepare_input($_POST['sender']);
        $filter = isset($_POST['sender']) && $_POST['sender'] != '' ? "AND posted_by = '{$sender}'" : "";
    }
}
$date_oldest = date('Y-m-d', strtotime("-14 day"));
$date_today = date('j M Y');
$date_yesterday = date('j M Y', strtotime("-1 day"));
$n_lists = $notifications->retrieveListGeneralQuery("muhn.user_id={$session_userinfo['id']} AND (muhn.status=0 OR muhn.need_feedback=1 OR muhn.posted_date>='{$date_oldest}') {$filter}", 'muhn.posted_date DESC, muhn.posted_by');
$notifications_new = array();
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:my-notifications.php


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