- Модуль: sender
- Путь к файлу: ~/bitrix/modules/sender/lib/list.php
- Класс: BitrixSenderListTable
- Вызов: ListTable::getMap
static function getMap()
{
return array(
'ID' => array(
'data_type' => 'integer',
'autocomplete' => true,
'primary' => true,
),
'CODE' => array(
'data_type' => 'string',
'validation' => array(__CLASS__, 'validateCode'),
'title' => Loc::getMessage('SENDER_ENTITY_LIST_FIELD_TITLE_CODE'),
),
'NAME' => array(
'data_type' => 'string',
'required' => true,
'default_value' => Loc::getMessage(
'SENDER_ENTITY_LIST_FIELD_NAME_PATTERN',
['%date%' => InternalsPrettyDate::formatDate()]
),
'title' => Loc::getMessage('SENDER_ENTITY_LIST_FIELD_TITLE_NAME'),
),
'SORT' => array(
'data_type' => 'integer',
'default_value' => 100,
'required' => true,
'title' => Loc::getMessage('SENDER_ENTITY_LIST_FIELD_TITLE_SORT'),
),
'CONTACT_LIST' => array(
'data_type' => 'BitrixSenderContactListTable',
'reference' => array('=this.ID' => 'ref.LIST_ID'),
),
);
}