本文整理汇总了PHP中CAdminNotify::Delete方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminNotify::Delete方法的具体用法?PHP CAdminNotify::Delete怎么用?PHP CAdminNotify::Delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminNotify
的用法示例。
在下文中一共展示了CAdminNotify::Delete方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: define
<?php
define("NO_KEEP_STATISTIC", true);
define("NO_AGENT_STATISTIC", true);
define("NOT_CHECK_PERMISSIONS", true);
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
if ($USER->IsAdmin() && isset($_POST["ID"]) && check_bitrix_sessid()) {
CAdminNotify::Delete(intval($_POST["ID"]));
}
echo "OK";
require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_admin_after.php";
示例2: GetMessage
<?php
$tabControl->End();
?>
</form>
<h2><?php
echo GetMessage("SALE_SYSTEM_PROCEDURES");
?>
</h2>
<?php
$showbasketDiscountConvert = (string) Main\Config\Option::get('sale', 'basket_discount_converted') != 'Y' && Main\ModuleManager::isModuleInstalled('catalog');
if ($showbasketDiscountConvert) {
if (CSaleBasketDiscountConvert::getAllCounter() == 0) {
$adminNotifyIterator = CAdminNotify::GetList(array(), array('MODULE_ID' => 'sale', 'TAG' => 'BASKET_DISCOUNT_CONVERTED'));
if ($adminNotifyIterator) {
if ($adminNotify = $adminNotifyIterator->Fetch()) {
CAdminNotify::Delete($adminNotify['ID']);
}
unset($adminNotify);
}
unset($adminNotifyIterator);
$showbasketDiscountConvert = false;
}
}
$systemTabs[] = array('DIV' => 'saleSysTabReindex', 'TAB' => GetMessage('SALE_SYSTEM_TAB_REINDEX'), 'ICON' => 'sale_settings', 'TITLE' => GetMessage('SALE_SYSTEM_TAB_REINDEX_TITLE'));
if ($showbasketDiscountConvert) {
$systemTabs[] = array('DIV' => 'saleSysTabConvert', 'TAB' => GetMessage('SALE_SYSTEM_TAB_CONVERT'), 'ICON' => 'sale_settings', 'TITLE' => GetMessage('SALE_SYSTEM_TAB_CONVERT_TITLE'));
}
$systemTabControl = new CAdminTabControl('saleSysTabControl', $systemTabs, true, true);
$systemTabControl->Begin();
$systemTabControl->BeginNextTab();
?>