Поддержка серверов

PULL: методы, функции, константы класса Битрикс


Блог разработчика

9 августа 2016 ResizeImageGet и простой водяной знак налету

Сегодня поговорим о том как проще всего воткнуть водяной знак на картинки в Битрикс. Например, на все изображения каталога.

21 июля 2016 Добавление вкладки в CRM коробки Битрикс24

В этом посте я покажу, как легко и просто добавить вкладку в сущность CRM. И не просто добавить, а вывести там свой контент.

21 июля 2016 Как просто обращаться из коробки Битрикс24 на сайт на базе Битрикс

К примеру вам хочется внутренним скриптом дернуть с сайта-магазина информацию, которая там, в свою очередь, закрыта некоторыми правами. Например, админскими. Можно конечно мутить свой REST, или иной формат общения, но проще всего воспользоваться штатным инструментом:

События модуля pull

СобытиеВызывается
OnGetDependentModuleCPullOptions::GetDependentModule
OnPushServicesBuildListCPushManager::__construct
OnBeforeSendPushCPushManager::AddQueue

Константы модуля pull

КонстантаПроверяется
ADMIN_SECTIONCPullOptions::CheckNeedRun
PULL_USER_IDCPullWatch::DeferredSql
BX_PULL_SKIP_INITCPullOptions::OnEpilog
BX_CHECK_AGENT_STARTEvent::addPush
BX_PULL_SKIP_LSCPullChannel::GetConfig
BX_PULL_SKIP_WEBSOCKETCPullChannel::GetConfig
BX_PULL_COMMAND_PATHCPullChannel::GetConfig
BX_PULL_EPILOG_AFTEREvent::executePushEvent
BX_FORK_AGENTS_AND_EVENTS_FUNCTIONEvent::onAfterEpilog
MOBILEAPP_DEFAULT_APP_IDPushTable::onBeforeAdd

Список функций и методов модуля pull

Метод
CAppleMessage::__construct($sDeviceToken = null, $maxPayloadSize = 2048)
CAppleMessage::setAutoAdjustLongPayload($bAutoAdjust)
CAppleMessage::getAutoAdjustLongPayload()
CAppleMessage::_getPayload()
CAppleMessage::getPayload()
CAppleMessage::getBatch()
CApplePush::__construct()
CApplePush::getBatch($messageData = Array())
CApplePush::getMessageInstance($token)
CApplePush::getSandboxBatch($appMessages)
CApplePush::getProductionBatch($appMessages)
CApplePushVoip::__construct()
CApplePushVoip::getMessageInstance($token)
CPushService::getBatchWithModifier($appMessages = Array(), $modifier = "")
CPushService::getGroupedByServiceMode($arMessages)
CPushService::getGroupedByAppID($arMessages)
CPushService::getMessageInstance($token)
CPushService::getBatch($messages)
CPushDescription::GetDescription()
CPushMessage::addRecipient($sDeviceToken)
CPushMessage::getRecipient($nRecipient = 0)
CPushMessage::getRecipients()
CPushMessage::setText($sText)
CPushMessage::getText()
CPushMessage::setTitle($sTitle)
CPushMessage::getTitle()
CPushMessage::setBadge($nBadge)
CPushMessage::getBadge()
CPushMessage::setSound($sSound = 'default')
CPushMessage::getSound()
CPushMessage::setCustomProperty($sName, $mValue)
CPushMessage::getCustomProperty($sName)
CPushMessage::setExpiry($nExpiryValue)
CPushMessage::getExpiry()
CPushMessage::setCustomIdentifier($mCustomIdentifier)
CPushMessage::getCustomIdentifier()
CPushMessage::getBatch()
CPushMessage::getCategory()
CPushMessage::setCategory($category)
CGoogleMessage::__construct($sDeviceToken = null)
CGoogleMessage::getBatch()
CGooglePush::__construct()
CGooglePush::getBatch($messageData = Array())
CGooglePush::getMessageInstance($token)
CGooglePushInteractive::__construct()
CPullOptions::CheckNeedRun($bGetSectionStatus = true)
CPullOptions::ModuleEnable()
CPullOptions::GetDependentModule()
CPullOptions::GetExcludeSites()
CPullOptions::SetExcludeSites($sites)
CPullOptions::GetNginxStatus()
CPullOptions::GetQueueServerStatus()
CPullOptions::GetQueueServerHeaders()
CPullOptions::SetNginxStatus($flag = "N")
CPullOptions::SetQueueServerStatus($flag = "N")
CPullOptions::SetQueueServerHeaders($flag = "Y")
CPullOptions::GetPushStatus()
CPullOptions::SetPushStatus($flag = "N")
CPullOptions::GetPushMessagePerHit()
CPullOptions::SetPushMessagePerHit($count)
CPullOptions::GetGuestStatus()
CPullOptions::SetGuestStatus($flag = "N")
CPullOptions::GetPublishUrl($channelId = "")
CPullOptions::SetSignatureKey($signature)
CPullOptions::GetSignatureKey()
CPullOptions::GetSignatureAlgorithm()
CPullOptions::SetPublishUrl($path = "")
CPullOptions::GetListenUrl($channelId = "")
CPullOptions::SetListenUrl($path = "")
CPullOptions::GetListenSecureUrl($channelId = "")
CPullOptions::SetListenSecureUrl($path = "")
CPullOptions::GetQueueServerVersion()
CPullOptions::SetQueueServerVersion($version)
CPullOptions::GetCommandPerHit()
CPullOptions::SetCommandPerHit($count)
CPullOptions::GetWebSocketStatus()
CPullOptions::GetWebSocket()
CPullOptions::SetWebSocket($flag = "N")
CPullOptions::GetWebSocketUrl($channelId = "")
CPullOptions::SetWebSocketUrl($path = "")
CPullOptions::GetWebSocketSecureUrl($channelId = "")
CPullOptions::SetWebSocketSecureUrl($path = "")
CPullOptions::SendConfigDie()
CPullOptions::GetDefaultOption($optionName)
CPullOptions::ClearCheckCache()
CPullOptions::ClearAgent()
CPullOptions::OnEpilog()
CPullWatch::Add($userId, $tag, $immediate = false)
CPullWatch::DeferredSql($userId = false)
CPullWatch::Delete($userId, $tag = null)
CPullWatch::Extend($userId, $tags)
CPullWatch::AddToStack($tag, $parameters, $channelType = \CPullChannel::TYPE_PRIVATE)
CPullWatch::GetUserList($tag)
CPullStack::Get($channelId, $lastId = 0)
CPullStack::AddByChannel($channelId, $params = Array())
CPullStack::AddByUser($userId, $arMessage, $channelType = 'private')
CPullStack::AddByUsers($users, $arMessage, $channelType = 'private')
CPullStack::AddShared($arMessage, $channelType = 'shared')
CPullStack::AddBroadcast($arMessage)
CPullPush::GetList($arOrder = array(), $arFilter = array(), $arSelect = array(), $arNavStartParams = Array())
CPullPush::Add($arFields = Array())
CPullPush::getUniqueHash($user_id, $app_id)
CPullPush::Update($ID, $arFields = Array())
CPullPush::Delete($ID = false)
CPullPush::cleanTokens()
CPushManager::__construct()
CPushManager::DeleteFromQueueByTag($userId, $tag, $appId = 'Bitrix24')
CPushManager::AddQueue($arParams)
CPushManager::prepareSend($userId, $fields, $type = self::SEND_IMMEDIATELY)
CPushManager::GetDeviceInfo($userId, $appId = 'Bitrix24')
CPushManager::SendMessage($arMessages = Array(), $arDevices = Array())
CPushManager::sendBatch($batch)
CPushManager::DeleteFromQueueBySubTag($userId, $tag, $appId = 'Bitrix24')
CPushManager::SendAgent()
CPushManager::_MakeJson($arData, $bWS, $bSkipTilda)
CPushManager::getServices()
CPushManager::sendBadges($userId = null, $appId = 'Bitrix24')
CPullChannel::GetNewChannelId()
CPullChannel::GetChannelShared($channelType = self::TYPE_SHARED, $cache = true, $reOpen = false)
CPullChannel::GetShared($cache = true, $reOpen = false, $channelType = self::TYPE_SHARED)
CPullChannel::GetChannel($userId, $channelType = self::TYPE_PRIVATE, $cache = true, $reOpen = false)
CPullChannel::Get($userId, $cache = true, $reOpen = false, $channelType = self::TYPE_PRIVATE)
CPullChannel::SignChannel($channelId)
CPullChannel::Add($userId, $channelId = null, $channelType = self::TYPE_PRIVATE)
CPullChannel::Delete($channelId)
CPullChannel::DeleteByUser($userId, $channelId = null, $channelType = self::TYPE_PRIVATE)
CPullChannel::Send($channelId, $message, $options = array())
CPullChannel::SendCommand($channelId, $message, $options = array())
CPullChannel::SaveToCache($cacheId, $data)
CPullChannel::UpdateLastId($channelId, $lastId)
CPullChannel::CheckExpireAgent()
CPullChannel::CheckOnlineChannel()
CPullChannel::GetConfig($userId, $cache = true, $reopen = false, $mobile = false)
CPullTableSchema::__construct()
CPullTableSchema::OnGetTableSchema()
CPullWatch::CheckExpireAgent()
CPullStack::CheckExpireAgent()
Common::jsonEncode($params)
Error::__construct($method, $code, $msg, $params = Array())
Config::get($params = array())
Rest::onRestServiceBuildDescription()
Rest::configGet($params, $n, \CRestServer $server)
Rest::watchExtend($params, $n, \CRestServer $server)
Rest::counterTypesGet($params, $n, \CRestServer $server)
Rest::counterGet($params, $n, \CRestServer $server)
Rest::counterConfigGet($params, $n, \CRestServer $server)
Rest::counterConfigSet($params, $n, \CRestServer $server)
Rest::pushTypesGet($params, $n, \CRestServer $server)
Rest::pushConfigGet($params, $n, \CRestServer $server)
Rest::pushConfigSet($params, $n, \CRestServer $server)
Rest::pushStatusGet($params, $n, \CRestServer $server)
Rest::pushStatusSet($params, $n, \CRestServer $server)
Rest::pushSmartfilterStatusGet($params, $n, \CRestServer $server)
Rest::pushSmartfilterStatusSet($params, $n, \CRestServer $server)
Rest::notImplemented($params, $n, \CRestServer $server)
PushSmartfilter::getStatus($userId = null)
PushSmartfilter::setStatus($status, $userId = null)
Event::add($recipient, $parameters, $channelType = \CPullChannel::TYPE_PRIVATE)
Event::addEvent($recipient, $parameters, $channelType = \CPullChannel::TYPE_PRIVATE)
Event::addPush($users, $parameters)
Event::executeEvent($parameters)
Event::executePushEvent($parameters)
Event::send()
Event::onAfterEpilog()
Event::getChannelIds($users, $type = \CPullChannel::TYPE_PRIVATE)
Event::getUserIds($channels)
Event::prepareParameters($parameters)
Event::preparePushParameters($parameters)
Event::getParamsCode($params)
Event::getEntitiesByType($recipient)
Event::isChannelEntity($entity)
Event::getLastError()
MobileCounter::getTypes()
MobileCounter::get($userId = null)
MobileCounter::getConfig($userId = null)
MobileCounter::setConfigType($type, $status, $userId = null)
MobileCounter::setConfig($config, $userId = null)
MobileCounter::send($userId = null, $appId = self::MOBILE_APP)
MobileCounter::onSonetLogCounterClear($counterType = '', $timestamp = 0)
Push::add($users, $parameters)
Push::send()
Push::getTypes()
Push::getConfig($userId = null)
Push::setConfig($config, $userId = null)
Push::setConfigTypeStatus($moduleId, $typeId, $status, $userId = null)
Push::getConfigTypeStatus($moduleId, $typeId, $userId = null)
Push::getStatus($userId = null)
Push::setStatus($status, $userId = null)
PushTable::getTableName()
PushTable::getMap()
PushTable::validateDeviceType()
PushTable::validateAppId()
PushTable::validateUniqueHash()
PushTable::checkFields(Result $result, $primary, array $data)
PushTable::onBeforeAdd(Event $event)
PushTable::onAfterAdd(Event $event)
PushTable::onBeforeUpdate(Event $event)
PushTable::validateDeviceId()
PushTable::validateDeviceName()
PushTable::validateDeviceToken()
ChannelTable::getTableName()
ChannelTable::getMap()
ChannelTable::validateChannelType()
ChannelTable::validateChannelId()
ChannelTable::getCurrentDate()
pull::pull()
pull::DoInstall()
pull::InstallDB()
pull::InstallFiles()
pull::InstallEvents()
pull::DoUninstall()
pull::UnInstallDB($arParams = Array())
pull::UnInstallFiles($arParams = array())
pull::UnInstallEvents()