ViolationTable::getMap

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. ViolationTable
  4. getMap
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/violation.php
  • Класс: BitrixTasksInternalsViolationTable
  • Вызов: ViolationTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		),
		'DATE' => array(
			'data_type' => 'datetime',
			'required' => true,
		),
		'USER_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'GROUP_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'IN_PROGRESS' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'EXPIRED' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'KPI' => array(
			'data_type' => 'integer',
			'required' => true,
		),


		// references
		'USER' => array(
			'data_type' => 'BitrixMainUserTable',
			'reference' => array('=this.USER_ID' => 'ref.ID')
		),

		'GROUP' => array(
			'data_type' => 'BitrixSocialnetworkWorkgroup',
			'reference' => array('=this.GROUP_ID' => 'ref.ID')
		),
	);
}

Добавить комментарий