10 public static function add($users, $parameters)
12 unset($parameters[
'command']);
13 unset($parameters[
'params']);
14 return \Bitrix\Pull\Event::add($users, $parameters);
17 public static function send()
19 return \Bitrix\Pull\Event::send();
24 if (is_array(self::$types))
37 foreach ($notifySchema as
$moduleId => $module)
39 if ($module[
'NAME'] ==
'')
46 $name = $module[
'NAME'];
50 foreach ($module[
'NOTIFY'] as $notifyType => $notifyConfig)
52 if (!$notifyConfig[
'PUSH'] && $notifyConfig[
'DISABLED'][
'PUSH'])
56 $types[$notifyType] = Array(
57 'NAME' => $notifyConfig[
'NAME'],
58 'TYPE' => $notifyType,
59 'DISABLED' => (
bool)$notifyConfig[
'DISABLED'][
'PUSH'],
60 'DEFAULT' => (
bool)$notifyConfig[
'PUSH'],
98 if (isset(self::$config[
$userId]))
103 $pushDisabled = !\Bitrix\Pull\Push::getStatus(
$userId);
110 self::$explodedOptionIdsStaticCache[$optionId] ??= explode(
'|', $optionId);
123 foreach ($notifySchema as
$moduleId => $module)
125 foreach ($module[
'NOTIFY'] as $notifyType => $notifyConfig)
133 if (!$notifyConfig[
'PUSH'] && $notifyConfig[
'DISABLED'][
'PUSH'])
138 if (!isset(
$result[
$moduleId][$notifyType]) || $notifyConfig[
'DISABLED'][
'PUSH'])
152 if (!\
Bitrix\
Main\Loader::includeModule(
'im'))
172 $types = self::getTypes();
173 $userConfig = self::getConfig(
$userId);
179 foreach ($module[
'TYPES'] as $typeId =>
$type)
188 unset($userOptions[
'push|'.
$moduleId.
'|'.$typeId]);
192 $userOptions[
'push|'.$moduleId.
'|'.$typeId] = $userConfig[
$moduleId][$typeId];
220 if (!\CPullOptions::GetPushStatus())
235 return (
bool)\CUserOptions::GetOption(
'pull',
'push_status',
true,
$userId);
240 if (!\CPullOptions::GetPushStatus())
257 return (
bool)\CUserOptions::SetOption(
'pull',
'push_status',
$status,
false,
$userId);
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
static array $explodedOptionIdsStaticCache
static setConfig($config, $userId=null)
static setConfigTypeStatus($moduleId, $typeId, $status, $userId=null)
static getConfigTypeStatus($moduleId, $typeId, $userId=null)
static getStatus($userId=null)
static getConfig($userId=null)
static add($users, $parameters)
static setStatus($status, $userId=null)
static ClearCache($userId=false)
static Set($type, $value, $userId=false)
static Get($userId=false)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if($NS['step']==6) if( $NS[ 'step']==7) if(COption::GetOptionInt('main', 'disk_space', 0) > 0) $info
$GLOBALS['____1690880296']