本文整理匯總了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();