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

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


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

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

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

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

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

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

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

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

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

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

КонстантаПроверяется
ADMIN_SECTIONCPullOptions::CheckNeedRun
PULL_USER_IDCPullWatch::DeferredSql
BX_PULL_SKIP_INITCPullOptions::OnEpilog
BX_UTFCPullStack::AddByChannel
BX_PULL_SKIP_LSCPullChannel::GetConfig
BX_PULL_SKIP_WEBSOCKETCPullChannel::GetConfig
BX_MOBILECPullChannel::GetConfig
BX_PULL_COMMAND_PATHCPullChannel::GetConfig
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 = "", $mobile = false, $modern = false)
CPullOptions::SetListenUrl($path = "", $mobile = false, $modern = false)
CPullOptions::GetListenSecureUrl($channelId = "", $mobile = false, $modern = false)
CPullOptions::SetListenSecureUrl($path = "", $mobile = false, $modern = false)
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, $tag)
CPullWatch::AddToStack($tag, $arMessage)
CPullWatch::GetUserList($tag)
CPullStack::Get($channelId, $lastId = 0)
CPullStack::AddByChannel($channelId, $arParams = Array())
CPullStack::AddByUser($userId, $arMessage, $channelType = 'private')
CPullStack::AddByUsers($userIds, $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::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()
CPullChannel::GetNewChannelId()
CPullChannel::GetChannelShared($channelType = 'shared', $cache = true, $reOpen = false)
CPullChannel::GetShared($cache = true, $reOpen = false, $channelType = 'shared')
CPullChannel::GetChannel($userId, $channelType = 'private', $cache = true, $reOpen = false)
CPullChannel::Get($userId, $cache = true, $reOpen = false, $channelType = 'private')
CPullChannel::SignChannel($channelId)
CPullChannel::Add($userId, $channelId = null, $channelType = 'private')
CPullChannel::Delete($channelId)
CPullChannel::DeleteByUser($userId, $channelId = null, $channelType = '')
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::OnAfterUserAuthorize($arParams)
CPullChannel::OnAfterUserLogout($arParams)
CPullChannel::GetConfig($userId, $cache = true, $reopen = false, $mobile = false)
CPullTableSchema::__construct()
CPullTableSchema::OnGetTableSchema()
CPullWatch::CheckExpireAgent()
CPullStack::CheckExpireAgent()
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::DoUninstall()
pull::UnInstallDB($arParams = Array())
pull::UnInstallFiles($arParams = array())