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

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


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

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

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

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

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

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

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

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

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

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

КонстантаПроверяется
ADMIN_SECTIONCPullOptions::CheckNeedRun
BX_CHECK_AGENT_STARTEvent::addPush
BX_FORK_AGENTS_AND_EVENTS_FUNCTIONEvent::onAfterEpilog
BX_PULL_COMMAND_PATHCPullChannel::GetConfig
BX_PULL_EPILOG_AFTEREvent::send
BX_PULL_SKIP_INITCPullOptions::OnEpilog
BX_PULL_SKIP_LSCPullChannel::GetConfig
BX_PULL_SKIP_WEBSOCKETCPullChannel::GetConfig
BX_UTFCommon::findInvalidUnicodeSymbols
MOBILEAPP_DEFAULT_APP_IDPushTable::onBeforeAdd
PULL_SHARED_REGISTER_URLConfig::getRegisterUrl
PULL_USER_IDGuestAuth::getSuccessfulResult

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

Метод
CAppleMessage::__construct()
CAppleMessage::_getPayload()
CAppleMessage::getAlertData()
CAppleMessage::getAutoAdjustLongPayload()
CAppleMessage::getBatch()
CAppleMessage::getPayload()
CAppleMessage::setAutoAdjustLongPayload()
CApplePush::__construct()
CApplePush::getBatch()
CApplePush::getMessageInstance()
CApplePush::getProductionBatch()
CApplePush::getSandboxBatch()
CApplePush::shouldBeSent()
CApplePushVoip::__construct()
CApplePushVoip::getMessageInstance()
CApplePushVoip::shouldBeSent()
CAppleVoipMessage::getAlertData()
CGoogleMessage::__construct()
CGoogleMessage::getBatch()
CGoogleMessage::getPayload()
CGooglePush::__construct()
CGooglePush::getBatch()
CGooglePush::getMessageInstance()
CGooglePush::shouldBeSent()
CGooglePushInteractive::__construct()
CPullChannel::Add()
CPullChannel::CheckExpireAgent()
CPullChannel::CheckOnlineChannel()
CPullChannel::Delete()
CPullChannel::DeleteByUser()
CPullChannel::Get()
CPullChannel::GetChannel()
CPullChannel::GetChannelShared()
CPullChannel::GetConfig()
CPullChannel::GetNewChannelId()
CPullChannel::GetOnlineChannels()
CPullChannel::GetPublicSignature()
CPullChannel::GetShared()
CPullChannel::GetSignature()
CPullChannel::SaveToCache()
CPullChannel::Send()
CPullChannel::SendCommand()
CPullChannel::SignChannel()
CPullChannel::SignPublicChannel()
CPullChannel::UpdateLastId()
CPullOptions::CheckNeedRun()
CPullOptions::ClearAgent()
CPullOptions::ClearCheckCache()
CPullOptions::GetCommandPerHit()
CPullOptions::GetConfigTimestamp()
CPullOptions::GetDefaultOption()
CPullOptions::GetDependentModule()
CPullOptions::GetExcludeSites()
CPullOptions::GetGuestStatus()
CPullOptions::GetListenSecureUrl()
CPullOptions::GetListenUrl()
CPullOptions::GetMaxChannelsPerRequest()
CPullOptions::GetMaxMessagesPerRequest()
CPullOptions::GetMaxPayload()
CPullOptions::GetNginxStatus()
CPullOptions::GetPublishUrl()
CPullOptions::GetPublishWebEnabled()
CPullOptions::GetPublishWebSecureUrl()
CPullOptions::GetPublishWebUrl()
CPullOptions::GetPushMessagePerHit()
CPullOptions::GetPushStatus()
CPullOptions::GetQueueServerHeaders()
CPullOptions::GetQueueServerMode()
CPullOptions::GetQueueServerStatus()
CPullOptions::GetQueueServerVersion()
CPullOptions::GetSignatureAlgorithm()
CPullOptions::GetSignatureKey()
CPullOptions::GetWebSocket()
CPullOptions::GetWebSocketSecureUrl()
CPullOptions::GetWebSocketStatus()
CPullOptions::GetWebSocketUrl()
CPullOptions::IsProtobufEnabled()
CPullOptions::IsProtobufSupported()
CPullOptions::IsServerShared()
CPullOptions::ModuleEnable()
CPullOptions::OnEpilog()
CPullOptions::SendConfigDie()
CPullOptions::SetCommandPerHit()
CPullOptions::SetConfigTimestamp()
CPullOptions::SetExcludeSites()
CPullOptions::SetGuestStatus()
CPullOptions::SetListenSecureUrl()
CPullOptions::SetListenUrl()
CPullOptions::SetNginxStatus()
CPullOptions::SetPublishUrl()
CPullOptions::SetPublishWebSecureUrl()
CPullOptions::SetPublishWebUrl()
CPullOptions::SetPushMessagePerHit()
CPullOptions::SetPushStatus()
CPullOptions::SetQueueServerHeaders()
CPullOptions::SetQueueServerMode()
CPullOptions::SetQueueServerStatus()
CPullOptions::SetQueueServerVersion()
CPullOptions::SetSignatureKey()
CPullOptions::SetWebSocket()
CPullOptions::SetWebSocketSecureUrl()
CPullOptions::SetWebSocketUrl()
CPullPush::Add()
CPullPush::Delete()
CPullPush::GetList()
CPullPush::Update()
CPullPush::cleanTokens()
CPullPush::getUniqueHash()
CPullStack::AddBroadcast()
CPullStack::AddByChannel()
CPullStack::AddByUser()
CPullStack::AddByUsers()
CPullStack::AddShared()
CPullStack::CheckExpireAgent()
CPullStack::Get()
CPullTableSchema::OnGetTableSchema()
CPullTableSchema::__construct()
CPullWatch::Add()
CPullWatch::AddToStack()
CPullWatch::CheckExpireAgent()
CPullWatch::DeferredSql()
CPullWatch::Delete()
CPullWatch::Extend()
CPullWatch::GetUserList()
CPushDescription::GetDescription()
CPushManager::AddQueue()
CPushManager::DeleteFromQueueBySubTag()
CPushManager::DeleteFromQueueByTag()
CPushManager::GetDeviceInfo()
CPushManager::SendAgent()
CPushManager::SendMessage()
CPushManager::__construct()
CPushManager::getAppIDAliases()
CPushManager::getServices()
CPushManager::getUniqueHashes()
CPushManager::prepareSend()
CPushManager::sendBadges()
CPushManager::sendBatch()
CPushManager::shouldSendMessage()
CPushMessage::addRecipient()
CPushMessage::getBadge()
CPushMessage::getCategory()
CPushMessage::getCustomIdentifier()
CPushMessage::getCustomProperty()
CPushMessage::getExpiry()
CPushMessage::getRecipient()
CPushMessage::getRecipients()
CPushMessage::getSound()
CPushMessage::getText()
CPushMessage::getTitle()
CPushMessage::setBadge()
CPushMessage::setCategory()
CPushMessage::setCustomIdentifier()
CPushMessage::setCustomProperty()
CPushMessage::setExpiry()
CPushMessage::setSound()
CPushMessage::setText()
CPushMessage::setTitle()
CPushService::getBatchWithModifier()
CPushService::getGroupedByAppID()
CPushService::getGroupedByServiceMode()
Channel::getPublicId()
Channel::getPublicIds()
Channel::getPublicIdsAction()
Channel::updatePublicChannelIdAgent()
ChannelId::clear()
ChannelId::descriptor()
ChannelId::extensions()
ChannelId::fromArray()
ChannelId::fromStream()
ChannelId::getId()
ChannelId::getIsPrivate()
ChannelId::getSignature()
ChannelId::hasId()
ChannelId::hasIsPrivate()
ChannelId::hasSignature()
ChannelId::merge()
ChannelId::readFrom()
ChannelId::serializedSize()
ChannelId::setId()
ChannelId::setIsPrivate()
ChannelId::setSignature()
ChannelId::toStream()
ChannelId::unknownFieldSet()
ChannelId::writeTo()
ChannelStats::clear()
ChannelStats::descriptor()
ChannelStats::extensions()
ChannelStats::fromArray()
ChannelStats::fromStream()
ChannelStats::getId()
ChannelStats::getIsOnline()
ChannelStats::getIsPrivate()
ChannelStats::hasId()
ChannelStats::hasIsOnline()
ChannelStats::hasIsPrivate()
ChannelStats::merge()
ChannelStats::readFrom()
ChannelStats::serializedSize()
ChannelStats::setId()
ChannelStats::setIsOnline()
ChannelStats::setIsPrivate()
ChannelStats::toStream()
ChannelStats::unknownFieldSet()
ChannelStats::writeTo()
ChannelStatsRequest::addChannels()
ChannelStatsRequest::clear()
ChannelStatsRequest::descriptor()
ChannelStatsRequest::extensions()
ChannelStatsRequest::fromArray()
ChannelStatsRequest::fromStream()
ChannelStatsRequest::getChannelsList()
ChannelStatsRequest::hasChannelsList()
ChannelStatsRequest::merge()
ChannelStatsRequest::readFrom()
ChannelStatsRequest::serializedSize()
ChannelStatsRequest::setChannelsList()
ChannelStatsRequest::toStream()
ChannelStatsRequest::unknownFieldSet()
ChannelStatsRequest::writeTo()
ChannelStatsResponse::addChannels()
ChannelStatsResponse::clear()
ChannelStatsResponse::descriptor()
ChannelStatsResponse::extensions()
ChannelStatsResponse::fromArray()
ChannelStatsResponse::fromStream()
ChannelStatsResponse::getChannelsList()
ChannelStatsResponse::hasChannelsList()
ChannelStatsResponse::merge()
ChannelStatsResponse::readFrom()
ChannelStatsResponse::serializedSize()
ChannelStatsResponse::setChannelsList()
ChannelStatsResponse::toStream()
ChannelStatsResponse::unknownFieldSet()
ChannelStatsResponse::writeTo()
ChannelTable::getCurrentDate()
ChannelTable::getMap()
ChannelTable::getTableName()
ChannelTable::validateChannelId()
ChannelTable::validateChannelType()
Client::getLicenseKey()
Client::getPublicLicenseCode()
Client::getServerList()
Client::performRegister()
Client::register()
Client::selectServer()
Client::signRequest()
Common::findInvalidUnicodeSymbols()
Common::jsonEncode()
Config::extendWatchAction()
Config::get()
Config::getAction()
Config::getLongPollingUrl()
Config::getPublishUrl()
Config::getRegisterUrl()
Config::getServerAddress()
Config::getServerVersion()
Config::getSignatureKey()
Config::getWebPublishUrl()
Config::getWebSocketUrl()
Config::isProtobufUsed()
Config::isRegistered()
Config::setRegistered()
Config::setServerAddress()
Config::setSignatureKey()
Error::__construct()
Event::add()
Event::addEvent()
Event::addMessage()
Event::addPush()
Event::executeEvent()
Event::executeEvents()
Event::executePushEvent()
Event::executePushEvents()
Event::getBytes()
Event::getChannelIds()
Event::getEntitiesByType()
Event::getLastError()
Event::getParamsCode()
Event::getUserIds()
Event::isChannelEntity()
Event::onAfterEpilog()
Event::prepareParameters()
Event::preparePushParameters()
Event::processDeferredMessages()
Event::send()
GuestAuth::checkQueryMethod()
GuestAuth::getSuccessfulResult()
GuestAuth::onRestCheckAuth()
IncomingMessage::addReceivers()
IncomingMessage::clear()
IncomingMessage::descriptor()
IncomingMessage::extensions()
IncomingMessage::fromArray()
IncomingMessage::fromStream()
IncomingMessage::getBody()
IncomingMessage::getExpiry()
IncomingMessage::getReceiversList()
IncomingMessage::getSender()
IncomingMessage::getType()
IncomingMessage::hasBody()
IncomingMessage::hasExpiry()
IncomingMessage::hasReceiversList()
IncomingMessage::hasSender()
IncomingMessage::hasType()
IncomingMessage::merge()
IncomingMessage::readFrom()
IncomingMessage::serializedSize()
IncomingMessage::setBody()
IncomingMessage::setExpiry()
IncomingMessage::setReceiversList()
IncomingMessage::setSender()
IncomingMessage::setType()
IncomingMessage::toStream()
IncomingMessage::unknownFieldSet()
IncomingMessage::writeTo()
IncomingMessagesRequest::addMessages()
IncomingMessagesRequest::clear()
IncomingMessagesRequest::descriptor()
IncomingMessagesRequest::extensions()
IncomingMessagesRequest::fromArray()
IncomingMessagesRequest::fromStream()
IncomingMessagesRequest::getMessagesList()
IncomingMessagesRequest::hasMessagesList()
IncomingMessagesRequest::merge()
IncomingMessagesRequest::readFrom()
IncomingMessagesRequest::serializedSize()
IncomingMessagesRequest::setMessagesList()
IncomingMessagesRequest::toStream()
IncomingMessagesRequest::unknownFieldSet()
IncomingMessagesRequest::writeTo()
JsonResponse::clear()
JsonResponse::descriptor()
JsonResponse::extensions()
JsonResponse::fromArray()
JsonResponse::fromStream()
JsonResponse::getJson()
JsonResponse::hasJson()
JsonResponse::merge()
JsonResponse::readFrom()
JsonResponse::serializedSize()
JsonResponse::setJson()
JsonResponse::toStream()
JsonResponse::unknownFieldSet()
JsonResponse::writeTo()
Loader::autoLoad()
Loader::isAlreadyRegistered()
Loader::register()
Log::isEnabled()
Log::write()
MobileCounter::get()
MobileCounter::getConfig()
MobileCounter::getTypes()
MobileCounter::onSonetLogCounterClear()
MobileCounter::send()
MobileCounter::setConfig()
MobileCounter::setConfigType()
OutgoingMessage::clear()
OutgoingMessage::descriptor()
OutgoingMessage::extensions()
OutgoingMessage::fromArray()
OutgoingMessage::fromStream()
OutgoingMessage::getBody()
OutgoingMessage::getCreated()
OutgoingMessage::getExpiry()
OutgoingMessage::getId()
OutgoingMessage::getSender()
OutgoingMessage::hasBody()
OutgoingMessage::hasCreated()
OutgoingMessage::hasExpiry()
OutgoingMessage::hasId()
OutgoingMessage::hasSender()
OutgoingMessage::merge()
OutgoingMessage::readFrom()
OutgoingMessage::serializedSize()
OutgoingMessage::setBody()
OutgoingMessage::setCreated()
OutgoingMessage::setExpiry()
OutgoingMessage::setId()
OutgoingMessage::setSender()
OutgoingMessage::toStream()
OutgoingMessage::unknownFieldSet()
OutgoingMessage::writeTo()
OutgoingMessagesResponse::addMessages()
OutgoingMessagesResponse::clear()
OutgoingMessagesResponse::descriptor()
OutgoingMessagesResponse::extensions()
OutgoingMessagesResponse::fromArray()
OutgoingMessagesResponse::fromStream()
OutgoingMessagesResponse::getMessagesList()
OutgoingMessagesResponse::hasMessagesList()
OutgoingMessagesResponse::merge()
OutgoingMessagesResponse::readFrom()
OutgoingMessagesResponse::serializedSize()
OutgoingMessagesResponse::setMessagesList()
OutgoingMessagesResponse::toStream()
OutgoingMessagesResponse::unknownFieldSet()
OutgoingMessagesResponse::writeTo()
ProtobufTransport::convertMessage()
ProtobufTransport::convertMessages()
ProtobufTransport::createRequestBatches()
ProtobufTransport::createRequests()
ProtobufTransport::getMessageSize()
ProtobufTransport::getOnlineChannels()
ProtobufTransport::sendMessages()
ProtobufTransport::splitReceivers()
Push::add()
Push::getConfig()
Push::getConfigTypeStatus()
Push::getStatus()
Push::getTypes()
Push::send()
Push::setConfig()
Push::setConfigTypeStatus()
Push::setStatus()
PushSmartfilter::getStatus()
PushSmartfilter::setStatus()
PushTable::checkFields()
PushTable::getMap()
PushTable::getTableName()
PushTable::onAfterAdd()
PushTable::onBeforeAdd()
PushTable::onBeforeUpdate()
PushTable::validateAppId()
PushTable::validateDeviceId()
PushTable::validateDeviceName()
PushTable::validateDeviceToken()
PushTable::validateDeviceType()
PushTable::validateUniqueHash()
Receiver::clear()
Receiver::descriptor()
Receiver::extensions()
Receiver::fromArray()
Receiver::fromStream()
Receiver::getId()
Receiver::getIsPrivate()
Receiver::getSignature()
Receiver::hasId()
Receiver::hasIsPrivate()
Receiver::hasSignature()
Receiver::merge()
Receiver::readFrom()
Receiver::serializedSize()
Receiver::setId()
Receiver::setIsPrivate()
Receiver::setSignature()
Receiver::toStream()
Receiver::unknownFieldSet()
Receiver::writeTo()
Request::clear()
Request::descriptor()
Request::extensions()
Request::fromArray()
Request::fromStream()
Request::getChannelStats()
Request::getIncomingMessages()
Request::getServerStats()
Request::hasChannelStats()
Request::hasIncomingMessages()
Request::hasServerStats()
Request::merge()
Request::readFrom()
Request::serializedSize()
Request::setChannelStats()
Request::setIncomingMessages()
Request::setServerStats()
Request::toStream()
Request::unknownFieldSet()
Request::writeTo()
RequestBatch::addRequests()
RequestBatch::clear()
RequestBatch::descriptor()
RequestBatch::extensions()
RequestBatch::fromArray()
RequestBatch::fromStream()
RequestBatch::getRequestsList()
RequestBatch::hasRequestsList()
RequestBatch::merge()
RequestBatch::readFrom()
RequestBatch::serializedSize()
RequestBatch::setRequestsList()
RequestBatch::toStream()
RequestBatch::unknownFieldSet()
RequestBatch::writeTo()
Response::clear()
Response::descriptor()
Response::extensions()
Response::fromArray()
Response::fromStream()
Response::getChannelStats()
Response::getOutgoingMessages()
Response::getServerStats()
Response::hasChannelStats()
Response::hasOutgoingMessages()
Response::hasServerStats()
Response::merge()
Response::readFrom()
Response::serializedSize()
Response::setChannelStats()
Response::setOutgoingMessages()
Response::setServerStats()
Response::toStream()
Response::unknownFieldSet()
Response::writeTo()
ResponseBatch::addResponses()
ResponseBatch::clear()
ResponseBatch::descriptor()
ResponseBatch::extensions()
ResponseBatch::fromArray()
ResponseBatch::fromStream()
ResponseBatch::getResponsesList()
ResponseBatch::hasResponsesList()
ResponseBatch::merge()
ResponseBatch::readFrom()
ResponseBatch::serializedSize()
ResponseBatch::setResponsesList()
ResponseBatch::toStream()
ResponseBatch::unknownFieldSet()
ResponseBatch::writeTo()
Rest::applicationConfigGet()
Rest::applicationEventAdd()
Rest::applicationPushAdd()
Rest::channelPublicGet()
Rest::channelPublicList()
Rest::configGet()
Rest::counterConfigGet()
Rest::counterConfigSet()
Rest::counterGet()
Rest::counterTypesGet()
Rest::isAdmin()
Rest::notImplemented()
Rest::onRestServiceBuildDescription()
Rest::pushConfigGet()
Rest::pushConfigSet()
Rest::pushSmartfilterStatusGet()
Rest::pushSmartfilterStatusSet()
Rest::pushStatusGet()
Rest::pushStatusSet()
Rest::pushTypesGet()
Rest::watchExtend()
Sender::clear()
Sender::descriptor()
Sender::extensions()
Sender::fromArray()
Sender::fromStream()
Sender::getId()
Sender::getType()
Sender::hasId()
Sender::hasType()
Sender::merge()
Sender::readFrom()
Sender::serializedSize()
Sender::setId()
Sender::setType()
Sender::toStream()
Sender::unknownFieldSet()
Sender::writeTo()
SenderType::BACKEND()
SenderType::CLIENT()
SenderType::UNKNOWN()
SenderType::valueOf()
ServerStatsRequest::clear()
ServerStatsRequest::descriptor()
ServerStatsRequest::extensions()
ServerStatsRequest::fromArray()
ServerStatsRequest::fromStream()
ServerStatsRequest::merge()
ServerStatsRequest::readFrom()
ServerStatsRequest::serializedSize()
ServerStatsRequest::toStream()
ServerStatsRequest::unknownFieldSet()
ServerStatsRequest::writeTo()
WatchTable::getMap()
WatchTable::getTableName()
WatchTable::getUserIdsByTag()
pull::DoInstall()
pull::DoUninstall()
pull::InstallDB()
pull::InstallEvents()
pull::InstallFiles()
pull::UnInstallDB()
pull::UnInstallEvents()
pull::UnInstallFiles()
pull::migrateToBox()
pull::pull()