• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/template.php
  • Класс: BitrixSenderTemplateTable
  • Вызов: TemplateTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'autocomplete' => true,
			'primary' => true,
		),
		'ACTIVE' => array(
			'data_type' => 'string',
			'required' => true,
			'default_value' => 'Y',
		),
		'NAME' => array(
			'data_type' => 'string',
			'required' => true,
			'title' => Loc::getMessage('SENDER_ENTITY_TEMPLATE_FIELD_TITLE_NAME')
		),
		'CONTENT' => array(
			'data_type' => 'string',
			'required' => true,
			'title' => Loc::getMessage('SENDER_ENTITY_TEMPLATE_FIELD_TITLE_CONTENT'),
			'save_data_modification' => array('BitrixMainTextEmoji', 'getSaveModificator'),
			'fetch_data_modification' => array('BitrixMainTextEmoji', 'getFetchModificator'),
		),
		'USE_COUNT' => array(
			'data_type' => 'integer',
			'default_value' => 0,
			'required' => true,
		),
		'DATE_INSERT' => array(
			'data_type' => 'datetime',
			'required' => true,
			'default_value' => new MainTypeDateTime(),
		),
		'DATE_USE' => array(
			'data_type' => 'datetime',
		),
	);
}