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

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


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

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

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

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

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

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

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

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

Метод
Connector::setModuleId($moduleId)
Connector::getModuleId()
Connector::setFieldFormName($fieldFormName)
Connector::getFieldFormName()
Connector::setFieldPrefix($fieldPrefix)
Connector::getFieldPrefix()
Connector::setFieldPrefixExtended($fieldPrefixExtended)
Connector::getFieldPrefixExtended()
Connector::setFieldValues(array $fieldValues = null)
Connector::getFieldValues()
Connector::getFieldId($id)
Connector::getFieldName($name)
Connector::getFieldValue($name, $defaultValue = null)
Connector::getId()
Connector::getDataCount()
Connector::getResult()
Connector::requireConfigure()
Connector::getPersonalizeList()
Connector::getName()
Connector::getCode()
Connector::getData()
Connector::getForm()
Subscription::getLinkUnsub(array $fields)
Subscription::getLinkSub(array $fields)
Subscription::onMailEventSubscriptionList($data)
Subscription::onMailEventSubscriptionEnable($data)
Subscription::onMailEventSubscriptionDisable($data)
Subscription::getList($data)
Subscription::subscribe($data)
Subscription::unsubscribe($data)
Subscription::add($email, array $mailingIdList)
Subscription::getMailingList($params)
Subscription::sendEventConfirm($email, array $mailingIdList, $siteId)
Subscription::isUnsubscibed($mailingId, $email)
SenderConnectorRecipient::getName()
SenderConnectorRecipient::getCode()
SenderConnectorRecipient::getData()
SenderConnectorRecipient::getForm()
MailingTable::getTableName()
MailingTable::getMap()
MailingTable::validateDescription()
MailingTable::onAfterUpdate(Entity\Event $event)
MailingTable::onAfterDelete(Entity\Event $event)
MailingTable::getPresetMailingList(array $params = null)
MailingTable::checkFieldsChain(\Bitrix\Main\Entity\Result $result, $primary = null, array $fields)
MailingTable::updateChain($id, array $fields)
MailingTable::getChain($id)
MailingTable::updateChainTrigger($id)
MailingTable::setWasRunForOldData($id, $state)
MailingTable::getPersonalizeList($id)
MailingTable::getChainPersonalizeList($id)
MailingGroupTable::getTableName()
MailingGroupTable::getMap()
MailingSubscriptionTable::getTableName()
MailingSubscriptionTable::getMap()
MailingSubscriptionTable::getSubscriptionList(array $parameters = array())
MailingSubscriptionTable::getUnSubscriptionList(array $parameters = array())
MailingSubscriptionTable::addSubscription(array $parameters = array())
MailingSubscriptionTable::addUnSubscription(array $parameters = array())
SenderConnectorSubscriber::getName()
SenderConnectorSubscriber::getCode()
SenderConnectorSubscriber::getData()
SenderConnectorSubscriber::getForm()
SenderTriggerUserAuth::getName()
SenderTriggerUserAuth::getCode()
SenderTriggerUserAuth::getEventModuleId()
SenderTriggerUserAuth::getEventType()
SenderTriggerUserAuth::filter()
SenderTriggerUserAuth::getRecipient()
MailEventHandler::handleEvent(Event $event)
MailEventHandler::prevent($eventName, array $filter)
MailEventHandler::isPreventable($eventName, array $fields)
TemplateTable::onPresetTemplateList($templateType = null, $templateId = null)
TemplateTable::getTableName()
TemplateTable::getMap()
TemplateTable::onBeforeDelete(Entity\Event $event)
TemplateTable::isContentForBlockEditor($content)
TemplateTable::initEditor(array $params)
ConnectorResult::__construct($resource)
ConnectorResult::setFilterFields(array $fields)
ConnectorResult::getFilterFields()
ConnectorResult::setAdditionalFields(array $additionalFields)
ConnectorResult::fetch()
ConnectorResult::fetchModifierFields(array $result)
ConnectorResult::getSelectedRowsCount()
GroupTable::getTableName()
GroupTable::getMap()
GroupTable::validateDescription()
GroupTable::onAfterDelete(Entity\Event $event)
GroupConnectorTable::getTableName()
GroupConnectorTable::getMap()
TriggerSettings::__construct(array $settings = null)
TriggerSettings::getArrayFromTrigger(Trigger $trigger)
TriggerSettings::getArray()
TriggerSettings::getTriggerId()
TriggerSettings::getEndpoint($key = null)
TriggerSettings::setEndpoint($code, $moduleId)
TriggerSettings::getFields()
TriggerSettings::setFields($fields)
TriggerSettings::setTypeStart($state)
TriggerSettings::isTypeStart()
TriggerSettings::setEventOccur($state)
TriggerSettings::isEventOccur()
TriggerSettings::isPreventEmail()
TriggerSettings::setPreventEmail($state)
TriggerSettings::isClosedTrigger()
TriggerSettings::setClosedTrigger($state)
TriggerSettings::getClosedTriggerTime()
TriggerSettings::setClosedTriggerTime($time)
TriggerSettings::getClosedTriggerInterval()
TriggerSettings::setClosedTriggerInterval($interval)
TriggerSettings::setRunForOldData($state)
TriggerSettings::canRunForOldData()
TriggerSettings::setWasRunForOldData($state)
TriggerSettings::wasRunForOldData()
TriggerSettings::setEventModuleId($moduleId)
TriggerSettings::getEventModuleId()
TriggerSettings::setEventType($eventType)
TriggerSettings::getEventType()
TriggerSettings::getFullEventType()
TriggerSettings::setInterval($value = 0, $type = 'H')
TriggerSettings::getInterval()
TriggerSettings::getIntervalValue()
TriggerSettings::getIntervalType()
TriggerSettings::setIntervalValue($intervalValue)
TriggerSettings::setIntervalType($intervalType)
MailingChainTable::getTableName()
MailingChainTable::getMap()
MailingChainTable::validateEmailForm()
MailingChainTable::checkEmail($value)
MailingChainTable::copy($id)
MailingChainTable::initPosting($mailingChainId)
MailingChainTable::onAfterAdd(Entity\Event $event)
MailingChainTable::onAfterUpdate(Entity\Event $event)
MailingChainTable::onDelete(Entity\Event $event)
MailingChainTable::onAfterDelete(Entity\Event $event)
MailingChainTable::isReadyToSend($id)
MailingChainTable::isManualSentPartly($id)
MailingChainTable::isAutoSend($id)
MailingChainTable::canReSendErrorRecipients($id)
MailingChainTable::prepareReSendErrorRecipients($id)
MailingChainTable::setStatusNew($mailingId)
MailingChainTable::getStatusList()
MailingChainTable::getDefaultEmailFromList()
MailingChainTable::getEmailFromList()
MailingChainTable::setEmailFromToList($email)
MailingChainTable::getEmailToMeList()
MailingChainTable::setEmailToMeList($email)
MailingChainTable::onPresetTemplateList($templateType = null, $templateId = null)
MailingChainTable::getMessageById($id)
MailingAttachmentTable::getTableName()
MailingAttachmentTable::getMap()
MailingTriggerTable::getTableName()
MailingTriggerTable::getMap()
MailingTriggerTable::onAfterAdd(Entity\Event $event)
MailingTriggerTable::onUpdate(Entity\Event $event)
MailingTriggerTable::onDelete(Entity\Event $event)
MailingTriggerTable::actualizeHandlers($chainId, array $fieldsNew = null, array $fieldsOld = null)
Template::getListByType()
Template::getTypeList()
Template::getById($type, $id)
Template::getList(array $parameters = array())
Template::getTemplateListHtml($containerId = 'TEMPLATE_CONTAINER')
TemplateBase::onPresetTemplateList($templateType = null, $templateId = null)
TemplateBase::onPresetTemplateListSite($templateType = null, $templateId = null)
TemplateBase::getListName()
TemplateBase::getById($templateName)
TemplateBase::replaceTemplateByDefaultData($template)
TemplateBase::update($templateName, $html)
MailBlock::getListByType()
MailBlock::getList()
MailBlock::getBlockForVisualEditor()
MailBlockBase::onPresetMailBlockList()
MailBlockBase::getList()
MailBlockBase::getBlockListByType()
MailBlockBase::getById($blockName)
MailBlockBase::update($blockName, $html)
TriggerConnector::getConnectorForm()
TriggerConnector::filterConnectorData()
TriggerConnector::getForm()
TriggerConnector::filter()
TriggerConnector::getRecipient()
TriggerConnector::getProxyFieldsFromEventToConnector()
TriggerConnector::getRecipientResult()
TriggerConnector::getConnector()
PostingManager::onMailEventMailRead(array $data)
PostingManager::onMailEventMailClick(array $data)
PostingManager::read($recipientId)
PostingManager::click($recipientId, $url)
PostingManager::getChainReSend($mailingId)
PostingManager::fillHeadersByOptionHeaders(array $headers = array())
PostingManager::sendInternal($mailingChainId, array $params)
PostingManager::sendToAddress($mailingChainId, $address)
PostingManager::send($id, $timeout=0, $maxMailCount=0)
PostingManager::lockPosting($id)
PostingManager::unlockPosting($id)
ConnectorManager::onConnectorListContact($data)
ConnectorManager::onConnectorListRecipient($data)
ConnectorManager::onConnectorList($data)
ConnectorManager::getFieldsFromEndpoint(array $endpointList)
ConnectorManager::getEndpointFromFields(array $fields)
ConnectorManager::getConnector(array $endpoint)
ConnectorManager::getConnectorList(array $endpointList = null)
ConnectorManager::getConnectorClassList(array $endpointList = null)
ConnectorManager::sort($a, $b)
SenderConnectorUnSubscribers::getName()
SenderConnectorUnSubscribers::getCode()
SenderConnectorUnSubscribers::getData()
SenderConnectorUnSubscribers::getForm()
PostingTable::getTableName()
PostingTable::getMap()
PostingTable::onDelete(Entity\Event $event)
PostingTable::addRecipient($ar, $checkDuplicate = false)
PostingTable::initGroupRecipients($postingId, $checkDuplicate = true)
PostingTable::getRecipientCountByStatus($id)
PostingTable::getRecipientCount($id, $status = '')
PostingTable::getSendPercent($id)
PostingTable::getRecipientStatusToPostingFieldMap()
PostingReadTable::getTableName()
PostingReadTable::getMap()
PostingReadTable::onAfterAdd(Entity\Event $event)
PostingClickTable::getTableName()
PostingClickTable::getMap()
PostingClickTable::onAfterAdd(Entity\Event $event)
PostingUnsubTable::getTableName()
PostingUnsubTable::getMap()
PostingUnsubTable::onAfterAdd(Entity\Event $event)
PostingRecipientTable::getTableName()
PostingRecipientTable::getMap()
PostingRecipientTable::setPersonalizeList(array $personalizeList = null)
PostingRecipientTable::getPersonalizeList()
PostingRecipientTable::getStatusList()
SenderTriggerUserDontAuth::getName()
SenderTriggerUserDontAuth::getCode()
SenderTriggerUserDontAuth::canBeTarget()
SenderTriggerUserDontAuth::canRunForOldData()
SenderTriggerUserDontAuth::filter()
SenderTriggerUserDontAuth::getRecipient()
SenderTriggerUserDontAuth::getForm()
SenderTriggerUserDontAuth::getFetchDataModifier($fields)
TriggerConnectorClosed::isClosed()
TriggerConnectorClosed::getEventModuleId()
TriggerConnectorClosed::getEventType()
TriggerConnectorClosed::getProxyFieldsFromEventToConnector()
TriggerManager::handleEvent()
TriggerManager::processEvent($params)
TriggerManager::stop($chain, $rpnt, $setGoal)
TriggerManager::send($chain)
TriggerManager::preventMailEvent(array $emailEvent)
TriggerManager::addRecipient($chain, $settings, $rpnt)
TriggerManager::activateAllHandlers($activate = true)
TriggerManager::actualizeHandler(array $params, $activate = null)
TriggerManager::getFieldsFromEndpoint(array $endpointList)
TriggerManager::getEndpointFromFields(array $fields)
TriggerManager::getList(array $endpointList = null)
TriggerManager::getOnce(array $endpoint)
TriggerManager::getClassList(array $endpointList = null)
TriggerManager::sort($a, $b)
TriggerManager::debug($mess)
TriggerManager::getClosedEventAgentName($moduleId, $eventType, $chainId)
TriggerManager::fireClosedEventAgent($moduleId, $eventType, $chainId)
TriggerManager::actualizeHandlerForChild($activate = null)
TriggerManager::onAfterMailingChainSend(\Bitrix\Main\Event $event)
TriggerManager::onAfterPostingSendRecipient(\Bitrix\Main\Event $event)
TriggerManager::onAfterRecipientUnsub($data)
TriggerManager::onTriggerList($data)
ConversionHandler::onAfterRecipientClick($data)
ConversionHandler::onBeforeProlog()
ConversionHandler::onSetDayContextAttributes(DayContext $context)
ConversionHandler::onGetAttributeTypes()
CounterCalculation::wasCompleted($stageCode = 'FINISH')
CounterCalculation::setCompleted($stageCode = 'FINISH')
CounterCalculation::getCompletedPercent()
CounterCalculation::isTimeUp()
CounterCalculation::getExecutionTime()
CounterCalculation::update()
CounterCalculation::updateRecipientReadCounters($type)
CounterCalculation::updatePostingStatusCounters()
CounterCalculation::updatePostingReadCounters($type)
CounterCalculation::updateMailingSubscription()
CounterCalculation::updateContactEmailRegister()
CounterCalculation::getPostingStatusUpdateFields($postingId, $statusList)
Trigger::setModuleId($moduleId)
Trigger::getModuleId()
Trigger::setSiteId($siteId)
Trigger::getSiteId()
Trigger::getId()
Trigger::requireConfigure()
Trigger::isClosed()
Trigger::canBeTarget()
Trigger::canRunForOldData()
Trigger::setRunForOldData($isRunForOldData)
Trigger::isRunForOldData()
Trigger::setFields(array $fieldValues = null)
Trigger::getFields()
Trigger::getFieldValue($name, $defaultValue = null)
Trigger::setParams(array $fieldValues = null)
Trigger::getParams()
Trigger::getParam($name, $defaultValue = null)
Trigger::setFieldFormName($fieldFormName)
Trigger::getFieldFormName()
Trigger::setFieldPrefix($fieldPrefix)
Trigger::getFieldPrefix()
Trigger::getFieldId($id)
Trigger::getFieldName($name)
Trigger::getFullEventType()
Trigger::getMailEventToPrevent()
Trigger::filter()
Trigger::getForm()
Trigger::getRecipientResult()
Trigger::getPersonalizeFields()
Trigger::getPersonalizeList()
Trigger::getName()
Trigger::getCode()
Trigger::getEventModuleId()
Trigger::getEventType()
Trigger::getRecipient()
ContactTable::getTableName()
ContactTable::getMap()
ContactTable::validateEmail()
ContactTable::checkEmail($value)
ContactTable::onBeforeAdd(Entity\Event $event)
ContactTable::onBeforeUpdate(Entity\Event $event)
ContactTable::onAfterDelete(Entity\Event $event)
ContactTable::addIfNotExist($ar)
ContactTable::checkConnectors()
ContactTable::addFromConnector(Connector $connector, $pageNumber = null, $timeout = 0)
ListTable::getTableName()
ListTable::getMap()
ListTable::validateCode()
ListTable::onAfterDelete(Entity\Event $event)
ListTable::addIfNotExist($code, $name)
ContactListTable::getTableName()
ContactListTable::getMap()
ContactListTable::addIfNotExist($contactId, $listId)
SenderConnectorContact::getName()
SenderConnectorContact::getCode()
SenderConnectorContact::getData()
SenderConnectorContact::getForm()
Statistics::create(Filter $filter = null)
Statistics::__construct(Filter $filter = null)
Statistics::setCacheTtl($cacheTtl)
Statistics::setUserId($userId)
Statistics::getCacheTtl()
Statistics::getFilter()
Statistics::filter($name, $value = null)
Statistics::initFilterFromRequest()
Statistics::initFilterFromUserOption()
Statistics::saveFilterToUserOption()
Statistics::calculateEfficiency($counters, $maxEfficiency = null)
Statistics::div($dividendCode, $dividerCode, $items)
Statistics::formatNumber($number, $num = 1)
Statistics::getCounterCalculation($code, $value, $percentBase = 0)
Statistics::getMappedFilter()
Statistics::getEfficiency()
Statistics::getCountersDynamic()
Statistics::getCounters()
Statistics::getCounterPostings()
Statistics::getCounterSubscribers()
Statistics::getClickLinks($limit = 15)
Statistics::getReadingByDayTime($step = 2)
Statistics::getRecommendedSendTime($chainId = null)
Statistics::getChainList($limit = 20)
Statistics::getGlobalFilterData()
Statistics::getPeriodList()
Statistics::getAuthorList()
Filter::__construct(array $values = array())
Filter::set($name, $value = null)
Filter::get($name)
Filter::getNames()
Filter::getMappedArray(array $map, array $filter = array())
Filter::clear()
Filter::setPeriod($period = self::PERIOD_MONTH)
MailingManager::getErrors()
MailingManager::getAgentNamePeriod()
MailingManager::getAgentName($mailingChainId)
MailingManager::actualizeAgent($mailingId = null, $mailingChainId = null)
MailingManager::chainSend($mailingChainId)
MailingManager::checkSend()
MailingManager::checkPeriod($isAgentExec = true)
MailingManager::getDateExecute(\DateTime $date, $daysOfMonth, $dayOfWeek, $timesOfDay)
MailingManager::parseDaysOfMonth($strDaysOfMonth)
MailingManager::parseDaysOfWeek($strDaysOfWeek)
MailingManager::parseTimesOfDay($strTimesOfDay)
sender::sender()
sender::InstallDB($arParams = array())
sender::UnInstallDB($arParams = array())
sender::InstallEvents()
sender::UnInstallEvents()
sender::InstallFiles($arParams = array())
sender::UnInstallFiles()
sender::DoInstall()
sender::DoUninstall()