本文整理汇总了PHP中CAdminNotify::GetList方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminNotify::GetList方法的具体用法?PHP CAdminNotify::GetList怎么用?PHP CAdminNotify::GetList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminNotify
的用法示例。
在下文中一共展示了CAdminNotify::GetList方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: notifyAdmin
protected function notifyAdmin($code)
{
$tag = "YANDEX_MARKET_" . $code;
$problemsCount = intval(\Bitrix\Main\Config\Option::get("sale", $tag, 0, $this->siteId));
if ($problemsCount < 3) {
\Bitrix\Main\Config\Option::set("sale", $tag, $problemsCount + 1, $this->siteId);
return false;
}
$dbRes = CAdminNotify::GetList(array(), array("TAG" => $tag));
if ($res = $dbRes->Fetch()) {
return false;
}
CAdminNotify::Add(array("MESSAGE" => GetMessage("SALE_YMH_ADMIN_NOTIFY_" . $code, array("##LANGUAGE_ID##" => LANGUAGE_ID)), "TAG" => "YANDEX_MARKET_" . $code, "MODULE_ID" => "SALE", "ENABLE_CLOSE" => "Y"));
\Bitrix\Main\Config\Option::set("sale", $tag, 0, $this->siteId);
return true;
}
示例2: ShowError
Loc::loadMessages(__FILE__);
if (!$USER->CanDoOperation('catalog_price') || !Loader::includeModule('catalog') || !CBXFeatures::IsFeatureEnabled('CatCompleteSet')) {
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
ShowError(Loc::getMessage('CAT_SETS_AVAILABLE_ERRORS_FATAL'));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
die;
}
if ($_SERVER['REQUEST_METHOD'] == 'GET' && check_bitrix_sessid() && (isset($_REQUEST['operation']) && (string) $_REQUEST['operation'] == 'Y')) {
CUtil::JSPostUnescape();
$params = array('sessID' => $_GET['ajaxSessionID'], 'maxExecutionTime' => $_GET['maxExecutionTime'], 'maxOperationCounter' => $_GET['maxOperationCounter'], 'counter' => $_GET['counter'], 'operationCounter' => $_GET['operationCounter'], 'lastID' => $_GET['lastID']);
$setsAvailable = new CCatalogProductSetAvailable($params['sessID'], $params['maxExecutionTime'], $params['maxOperationCounter']);
$setsAvailable->initStep($params['counter'], $params['operationCounter'], $params['lastID']);
$setsAvailable->run();
$result = $setsAvailable->saveStep();
if ($result['finishOperation']) {
$adminNotifyIterator = CAdminNotify::GetList(array(), array('MODULE_ID' => 'catalog', 'TAG' => 'CATALOG_SETS_AVAILABLE'));
if ($adminNotify = $adminNotifyIterator->Fetch()) {
CAdminNotify::DeleteByTag('CATALOG_SETS_AVAILABLE');
}
}
echo CUtil::PhpToJSObject($result, false, true);
die;
} else {
$APPLICATION->SetTitle(Loc::getMessage('CAT_SETS_AVAILABLE_PAGE_TITLE'));
$setsCounter = CCatalogProductSetAvailable::getAllCounter();
$oneStepTime = CCatalogProductSetAvailable::getDefaultExecutionTime();
require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_admin_after.php';
$tabList = array(array('DIV' => 'setTab01', 'TAB' => Loc::getMessage('CAT_SETS_AVAILABLE_TAB'), 'ICON' => 'catalog', 'TITLE' => Loc::getMessage('CAT_SETS_AVAILABLE_TAB_TITLE')));
$tabControl = new CAdminTabControl('sets_available', $tabList, true, true);
$APPLICATION->AddHeadScript('/bitrix/js/catalog/step_operations.js');
?>
示例3: GetMessage
echo GetMessage("MAIN_RESTORE_DEFAULTS");
?>
">
<?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);
示例4: showAlarmMessage
static function showAlarmMessage()
{
$tag = "PAY_SYSTEM_ACTION_ALARM";
$dbRes = CAdminNotify::GetList(array(), array("TAG" => $tag));
if ($res = $dbRes->Fetch()) {
return false;
}
return CAdminNotify::Add(array("MESSAGE" => GetMessage("SKGPSA_ALARM_MESSAGE", array("#LANGUAGE_ID#" => LANGUAGE_ID)), "TAG" => $tag, "MODULE_ID" => "SALE", "ENABLE_CLOSE" => "Y", "TYPE" => CAdminNotify::TYPE_ERROR));
}
示例5: array
$rsDiscountGroups = CCatalogDiscount::GetDiscountGroupsList(array(), array("DISCOUNT_ID" => $ID));
while ($arDiscountGroup = $rsDiscountGroups->Fetch())
{
$arDiscountGroupList[] = intval($arDiscountGroup["GROUP_ID"]);
}
$rsDiscountCats = CCatalogDiscount::GetDiscountCatsList(array(), array("DISCOUNT_ID" => $ID));
while ($arDiscountCat = $rsDiscountCats->Fetch())
{
$arDiscountCatList[] = intval($arDiscountCat["CATALOG_GROUP_ID"]);
}
if (!isset($arDiscount['VERSION']) || intval($arDiscount['VERSION']) != CCatalogDiscount::CURRENT_FORMAT)
{
$bReadOnly = true;
$boolShowCoupons = false;
$rsAdminNotify = CAdminNotify::GetList(array(), array('MODULE_ID'=>'catalog', 'TAG' => 'CATALOG_DISC_CONVERT'));
if (!($arAdminNotify = $rsAdminNotify->Fetch()))
{
$strLangPath = $_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/catalog/lang/';
$strDefLang = false;
$arLangList = array();
$by="def";
$order="desc";
$rsLangs = CLanguage::GetList($by, $order);
while ($arOneLang = $rsLangs->Fetch())
{
if (empty($strDefLang))
$strDefLang = $arOneLang['LID'];
$arLangList[] = $arOneLang['LID'];
}
$arMess = __GetCatLangMessages($strLangPath, '/admin/cat_discount_edit.php', array('BT_MOD_CAT_DSC_CONV_INVITE'), '', $arLangList);
示例6: deleteInformer
public static function deleteInformer($informerTag)
{
if ((string) $informerTag == '') {
return;
}
$rsAdminNotify = \CAdminNotify::GetList(array(), array('MODULE_ID' => 'sale', 'TAG' => $informerTag));
if ($arAdminNotify = $rsAdminNotify->Fetch()) {
\CAdminNotify::DeleteByTag($informerTag);
}
}
示例7: notifyAdmin
protected function notifyAdmin($tag)
{
$dbRes = CAdminNotify::GetList(array(), array("TAG" => $tag));
if ($res = $dbRes->Fetch()) {
return false;
}
CAdminNotify::Add(array("MESSAGE" => GetMessage("SALE_DH_RP_MESS_" . $tag, array("##LANGUAGE_ID##" => LANGUAGE_ID)), "TAG" => $tag, "MODULE_ID" => "SALE", "ENABLE_CLOSE" => "Y"));
return true;
}