本文整理匯總了PHP中CAdminNotify::getList方法的典型用法代碼示例。如果您正苦於以下問題:PHP CAdminNotify::getList方法的具體用法?PHP CAdminNotify::getList怎麽用?PHP CAdminNotify::getList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CAdminNotify
的用法示例。
在下文中一共展示了CAdminNotify::getList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: checkAdminNotification
/**
* Adds admin users notification about index rebuild.
*
* @param boolean $force Whenever skip iblock check.
*
* @return void
*/
public static function checkAdminNotification($force = false)
{
if ($force) {
$add = true;
} else {
$iblockList = \Bitrix\Iblock\IblockTable::getList(array('select' => array('ID'), 'filter' => array('=PROPERTY_INDEX' => 'I')));
$add = $iblockList->fetch() ? true : false;
}
if ($add) {
$notifyList = \CAdminNotify::getList(array(), array("TAG" => "iblock_property_reindex"));
if (!$notifyList->fetch()) {
\CAdminNotify::add(array("MESSAGE" => Loc::getMessage("IBLOCK_NOTIFY_PROPERTY_REINDEX", array("#LINK#" => "/bitrix/admin/iblock_reindex.php?lang=" . \Bitrix\Main\Application::getInstance()->getContext()->getLanguage())), "TAG" => "iblock_property_reindex", "MODULE_ID" => "iblock", "ENABLE_CLOSE" => "Y", "PUBLIC_SECTION" => "N"));
}
} else {
\CAdminNotify::deleteByTag("iblock_property_reindex");
}
}