本文整理汇总了PHP中notification::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP notification::delete方法的具体用法?PHP notification::delete怎么用?PHP notification::delete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类notification
的用法示例。
在下文中一共展示了notification::delete方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: urldecode
require 'path.php';
init_cobalt('Delete notification');
if (isset($_GET['notification_id'])) {
$notification_id = urldecode($_GET['notification_id']);
require_once 'form_data_notification.php';
}
if (xsrf_guard()) {
init_var($_POST['btn_cancel']);
init_var($_POST['btn_delete']);
require 'components/query_string_standard.php';
if ($_POST['btn_cancel']) {
log_action('Pressed cancel button');
redirect("listview_notification.php?{$query_string}");
} elseif ($_POST['btn_delete']) {
log_action('Pressed delete button');
require_once 'subclasses/notification.php';
$dbh_notification = new notification();
$object_name = 'dbh_notification';
require 'components/create_form_data.php';
$dbh_notification->delete($arr_form_data);
redirect("listview_notification.php?{$query_string}");
}
}
require 'subclasses/notification_html.php';
$html = new notification_html();
$html->draw_header('Delete Notification', $message, $message_type);
$html->draw_listview_referrer_info($filter_field_used, $filter_used, $page_from, $filter_sort_asc, $filter_sort_desc);
$html->draw_hidden('notification_id');
$html->detail_view = TRUE;
$html->draw_controls('delete');
$html->draw_footer();