• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/lib/push.php
  • Класс: BitrixPullPush
  • Вызов: Push::getStatus
static function getStatus($userId = null)
{
	if (!CPullOptions::GetPushStatus())
	{
		return null;
	}

	if (is_null($userId) && is_object($GLOBALS['USER']))
	{
		$userId = $GLOBALS['USER']->getId();
	}
	$userId = intval($userId);
	if (!$userId)
	{
		return false;
	}

	return (bool)CUserOptions::GetOption('pull', 'push_status', true, $userId);
}