當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CAdminNotify::Delete方法代碼示例

本文整理匯總了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";
開發者ID:DarneoStudio,項目名稱:bitrix,代碼行數:11,代碼來源:admin_notify.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();
    ?>
開發者ID:akniyev,項目名稱:itprom_dobrohost,代碼行數:31,代碼來源:options.php


注:本文中的CAdminNotify::Delete方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。