27 protected ?\Bitrix\Crm\Service\Factory
$factory =
null;
123 return $this->message->getName();
133 if ($this->transport)
138 $transportCode = $this->configuration->get(
'TRANSPORT_CODE') ?: current($this->message->getSupportedTransports());
140 $this->transport = Transport\Adapter::create($transportCode);
142 $this->transport->loadConfiguration();
165 return $this->message->getCode();
175 return $this->configuration->getId();
185 return $this->message->getSupportedTransports();
195 return $this->
getTransport()->getSupportedRecipientTypes();
207 $this->tester =
new Tester($this);
221 $this->configuration = $this->message->loadConfiguration($id);
243 $this->configuration->set(
$key, $value);
282 $result = $this->message->copyConfiguration($id);
299 return isset($this->fields[
$key]) ? $this->fields[
$key] :
null;
342 $from[] =
"$replaceChar$handledCode$replaceChar";
377 $this->recipientCode =
$code;
398 $this->recipientId = $id;
419 $this->recipientType =
$type;
440 $this->recipientData =
$data;
521 $siteData = $this->getSiteData($this->siteId);
532 $siteData = $this->getSiteData($this->siteId);
543 $siteData = $this->getSiteData($this->siteId);
554 $siteData = $this->getSiteData($this->siteId);
566 private function getSiteData($id)
568 if ($this->siteData !==
null)
573 $this->siteData =
array();
574 $siteDb = SiteTable::getList(
array(
575 'select'=>
array(
'LID',
'SERVER_NAME',
'NAME',
'CHARSET'=>
'CULTURE.CHARSET'),
578 if(
$site = $siteDb->fetch())
581 unset(
$site[
'NAME']);
582 $this->siteData =
$site;
595 return $this->message instanceof
iAds;
615 return $this->message instanceof
iMailable;
655 if ($this->message instanceof
iAds)
702 if ($this->message instanceof
iAudible)
704 return $this->message->getAudioValue($optionCode, $newValue);
713 return $this->message->onBeforeStart();
715 return new \Bitrix\Main\Result();
722 return $this->message->onAfterEnd();
724 return new \Bitrix\Main\Result();
732 return $this->message->getEntityCode();
737 $parts = explode(
'.',
$code, 2);
738 if (
count($parts) === 1)
745 if (!self::$statuses)
747 $refClass = new \ReflectionClass(\
Bitrix\
Crm\StatusTable::class);
748 $refConstants = $refClass->getConstants();
749 if (is_iterable($refConstants))
751 foreach ($refConstants as
$key => $refConstant)
753 if (mb_strpos(
$key, self::PATTERN_STATUS_ITEM) !==
false)
755 self::$statuses[] = $refConstant;
761 if (!in_array(
$entityId, self::$statuses,
true))
766 $values = \Bitrix\Crm\StatusTable::getStatusesList(
$entityId);
767 if (array_key_exists($value, $values))
769 return $values[$value];
777 $parts = explode(
'.',
$code, 2);
778 if (
count($parts) === 1)
784 $crmEntityTypeId !==
null
785 && (!$this->factory || $this->factory->getEntityTypeId() !== $crmEntityTypeId)
788 $this->factory = \Bitrix\Crm\Service\Container::getInstance()->getFactory($crmEntityTypeId);
793 $parts[1] = $this->factory->getCommonFieldNameByMap($parts[1]);
794 return implode(
'.', $parts);
static isEmailAvailable()
static isMasterYandexAvailable()
static isMailingsAvailable()
static replaceTemplate(?string $str)
__construct(iBase $message)
setConfigurationData(array $data)
Bitrix Crm Service Factory $factory
setTransport(Transport\Adapter $transport)
replaceFields($content="", $replaceChar='#', $crmEntityTypeId=null)
getSupportedRecipientTypes()
getAudioValue($optionCode, $newValue)
loadConfiguration($id=null)
const PATTERN_STATUS_ITEM
static getInstance($code)
preHandleReplaceCode($code, $crmEntityTypeId)
setRecipientData(array $data)
saveConfiguration(Configuration $configuration)
preHandleReaplaceValue($code, $value)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
if(empty($signedUserToken)) $key
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"