• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/segmentdata.php
  • Класс: BitrixSenderSegmentDataTable
  • Вызов: SegmentDataTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'autocomplete' => true,
			'primary' => true,
		),
		'GROUP_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'DATE_INSERT' => array(
			'data_type' => 'datetime',
			'default_value' => new TypeDateTime(),
			'required' => true,
		),
		'CRM_ENTITY_ID' => array(
			'data_type' => 'integer',
			'required' => false,
		),
		'FILTER_ID' => array(
			'data_type' => 'string',
			'required' => true,
		),
		'NAME' => array(
			'data_type' => 'string',
			'required' => false,
		),
		'CRM_ENTITY_TYPE' => array(
			'data_type' => 'string',
			'required' => false,
		),
		'CRM_ENTITY_TYPE_ID' => array(
			'data_type' => 'integer',
			'required' => false,
		),
		'CONTACT_ID' => array(
			'data_type' => 'integer',
			'required' => false,
		),
		'COMPANY_ID' => array(
			'data_type' => 'integer',
			'required' => false,
		),
		'EMAIL' => array(
			'data_type' => 'string',
			'required' => false,
		),
		'IM' => array(
			'data_type' => 'string',
			'required' => false,
		),
		'PHONE' => array(
			'data_type' => 'string',
			'required' => false,
		),
		'HAS_EMAIL' => array(
			'data_type' => 'string',
			'required' => false,
		),
		'HAS_IMOL' => array(
			'data_type' => 'string',
			'required' => false,
		),
		'HAS_PHONE' => array(
			'data_type' => 'string',
			'required' => false,
		),
		'SENDER_TYPE_ID' => array(
			'data_type' => 'integer',
			'required' => false,
		),
		'GROUP' => array(
			'data_type' => 'BitrixSenderGroupTable',
			'reference' => array('=this.GROUP_ID' => 'ref.ID'),
		),
	);
}