• Модуль: mail
  • Путь к файлу: ~/bitrix/modules/mail/lib/mailfilter.php
  • Класс: BitrixMailMailFilterTable
  • Вызов: MailFilterTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type'    => 'integer',
			'primary'      => true,
			'autocomplete' => true,
		),
		'TIMESTAMP_X' => array(
			'data_type' => 'datetime',
		),
		'MAILBOX_ID' => array(
			'data_type' => 'integer',
			'required'  => true,
		),
		'PARENT_FILTER_ID' => array(
			'data_type' => 'integer',
		),
		'NAME' => array(
			'data_type' => 'string',
		),
		'DESCRIPTION' => array(
			'data_type' => 'text',
		),
		'SORT' => array(
			'data_type' => 'integer',
		),
		'ACTIVE' => array(
			'data_type' => 'boolean',
			'values'    => array('N', 'Y'),
		),
		'PHP_CONDITION' => array(
			'data_type' => 'text',
		),
		'WHEN_MAIL_RECEIVED' => array(
			'data_type' => 'boolean',
			'values'    => array('N', 'Y'),
		),
		'WHEN_MANUALLY_RUN' => array(
			'data_type' => 'boolean',
			'values'    => array('N', 'Y'),
		),
		'SPAM_RATING' => array(
			'data_type' => 'float',
		),
		'SPAM_RATING_TYPE' => array(
			'data_type' => 'enum',
			'values'    => array('<', '>'),
		),
		'MESSAGE_SIZE' => array(
			'data_type' => 'integer',
		),
		'MESSAGE_SIZE_TYPE' => array(
			'data_type' => 'enum',
			'values'    => array('<', '>'),
		),
		'MESSAGE_SIZE_UNIT' => array(
			'data_type' => 'enum',
			'values'    => array('b', 'k', 'm'),
		),
		'ACTION_STOP_EXEC' => array(
			'data_type' => 'boolean',
			'values'    => array('N', 'Y'),
		),
		'ACTION_DELETE_MESSAGE' => array(
			'data_type' => 'boolean',
			'values'    => array('N', 'Y'),
		),
		'ACTION_READ' => array(
			'data_type' => 'enum',
			'values'    => array('N', 'Y', '-'),
		),
		'ACTION_PHP' => array(
			'data_type' => 'text',
		),
		'ACTION_TYPE' => array(
			'data_type' => 'string',
		),
		'ACTION_VARS' => array(
			'data_type' => 'text',
		),
		'ACTION_SPAM' => array(
			'data_type' => 'enum',
			'values'    => array('N', 'Y', '-'),
		),
	);
}