• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/mail/internal/eventmessage.php
  • Класс: BitrixMainMailInternalEventMessageTable
  • Вызов: EventMessageTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		),
		'TIMESTAMP_X' => array(
			'data_type' => 'datetime',
			'required' => true,
			'default_value' => function(){return new TypeDateTime();},
		),
		'EVENT_NAME' => array(
			'data_type' => 'string',
			'required' => true,
		),
		'LID' => array(
			'data_type' => 'string',
		),
		'ACTIVE' => array(
			'data_type' => 'string',
			'required' => true,
			'default_value' => 'Y'
		),
		'EMAIL_FROM' => array(
			'data_type' => 'string',
			'required' => true,
			'default_value' => '#EMAIL_FROM#'
		),
		'EMAIL_TO' => array(
			'data_type' => 'string',
			'required' => true,
			'default_value' => '#EMAIL_TO#'
		),
		'SUBJECT' => array(
			'data_type' => 'string',
		),
		'MESSAGE' => array(
			'data_type' => 'string',
		),
		'MESSAGE_PHP' => array(
			'data_type' => 'string',
		),
		'BODY_TYPE' => array(
			'data_type' => 'string',
			'required' => true,
			'default_value' => 'text'
		),
		'BCC' => array(
			'data_type' => 'string',
		),
		'REPLY_TO' => array(
			'data_type' => 'string',
		),
		'CC' => array(
			'data_type' => 'string',
		),
		'IN_REPLY_TO' => array(
			'data_type' => 'string',
		),
		'PRIORITY' => array(
			'data_type' => 'string',
		),
		'FIELD1_NAME' => array(
			'data_type' => 'string',
		),
		'FIELD1_VALUE' => array(
			'data_type' => 'string',
		),
		'FIELD2_NAME' => array(
			'data_type' => 'string',
		),
		'FIELD2_VALUE' => array(
			'data_type' => 'string',
		),
		'SITE_TEMPLATE_ID' => array(
			'data_type' => 'string',
		),
		(new OrmFieldsArrayField('ADDITIONAL_FIELD'))->configureSerializationPhp(),
		'EVENT_MESSAGE_SITE' => array(
			'data_type' => 'BitrixMainMailInternalEventMessageSite',
			'reference' => array('=this.ID' => 'ref.EVENT_MESSAGE_ID'),
		),
		'LANGUAGE_ID' => array(
			'data_type' => 'string',
		),
	);
}