• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/task/elapsedtime.php
  • Класс: BitrixTasksInternalsTaskElapsedTimeTable
  • Вызов: ElapsedTimeTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		),
		'CREATED_DATE' => array(
			'data_type' => 'datetime',
			'required' => true,
		),
		'DATE_START' => array(
			'data_type' => 'datetime',
		),
		'DATE_STOP' => array(
			'data_type' => 'datetime',
		),
		'USER_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'TASK_ID' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'MINUTES' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'SECONDS' => array(
			'data_type' => 'integer',
			'required' => true,
		),
		'SOURCE' => array(
			'data_type' => 'integer',
		),
		'COMMENT_TEXT' => array(
			'data_type' => 'text',
		),

		// references
		'USER' => array(
			'data_type' => 'BitrixMainUserTable',
			'reference' => array('=this.USER_ID' => 'ref.ID')
		),
		'TASK' => array(
			'data_type' => 'BitrixTasksInternalsTaskTable',
			'reference' => array('=this.TASK_ID' => 'ref.ID')
		),
	);
}