8namespace Bitrix\Sender;
10use Bitrix\Main\Entity;
11use Bitrix\Main\Localization\Loc;
12use Bitrix\Main\Type as MainType;
13use Bitrix\Main\DB\SqlExpression;
15Loc::loadMessages(__FILE__);
42 return 'b_sender_list';
54 'data_type' =>
'integer',
55 'autocomplete' =>
true,
59 'data_type' =>
'string',
60 'validation' =>
array(__CLASS__,
'validateCode'),
61 'title' => Loc::getMessage(
'SENDER_ENTITY_LIST_FIELD_TITLE_CODE'),
64 'data_type' =>
'string',
66 'default_value' => Loc::getMessage(
67 'SENDER_ENTITY_LIST_FIELD_NAME_PATTERN',
68 [
'%date%' =>
Internals\PrettyDate::formatDate()]
70 'title' => Loc::getMessage(
'SENDER_ENTITY_LIST_FIELD_TITLE_NAME'),
73 'data_type' =>
'integer',
74 'default_value' => 100,
76 'title' => Loc::getMessage(
'SENDER_ENTITY_LIST_FIELD_TITLE_SORT'),
78 'CONTACT_LIST' =>
array(
79 'data_type' =>
'Bitrix\Sender\ContactListTable',
80 'reference' =>
array(
'=this.ID' =>
'ref.LIST_ID'),
108 $primary =
array(
'LIST_ID' =>
$data[
'primary'][
'ID']);
125 if( !($arList = static::getList(
array(
'filter' =>
array(
'CODE' =>
$code)))->fetch() ))
128 if ($resultAdd->isSuccess())
130 $id = $resultAdd->getId();
static addIfNotExist($code, $name)
static onAfterDelete(Entity\Event $event)
</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