• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/model/entries.php
  • Класс: BitrixTimemanModelEntriesTable
  • Вызов: EntriesTable::getMap
static function getMap()
{
	return array(
		'ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		),
		'TIMESTAMP_X' => array(
			'data_type' => 'datetime',
			'required' => true,
		),
		'USER_ID' => array(
			'data_type' => 'integer',
		),
		'MODIFIED_BY' => array(
			'data_type' => 'integer',
		),
		'ACTIVE' => array(
			'data_type' => 'boolean',
			'values' => array('N', 'Y'),
		),
		'PAUSED' => array(
			'data_type' => 'boolean',
			'values' => array('N', 'Y'),
		),
		'DATE_START' => array(
			'data_type' => 'datetime',
		),
		'DATE_FINISH' => array(
			'data_type' => 'datetime',
		),
		'TIME_START' => array(
			'data_type' => 'integer',
		),
		'TIME_FINISH' => array(
			'data_type' => 'integer',
		),
		'DURATION' => array(
			'data_type' => 'integer',
		),
		'TIME_LEAKS' => array(
			'data_type' => 'integer',
		),
		'TASKS' => array(
			'data_type' => 'text',
		),
		'IP_OPEN' => array(
			'data_type' => 'string',
			'validation' => array(__CLASS__, 'validateIpOpen'),
		),
		'IP_CLOSE' => array(
			'data_type' => 'string',
			'validation' => array(__CLASS__, 'validateIpClose'),
		),
		'FORUM_TOPIC_ID' => array(
			'data_type' => 'integer',
		),
		'LAT_OPEN' => array(
			'data_type' => 'float',
		),
		'LON_OPEN' => array(
			'data_type' => 'float',
		),
		'LAT_CLOSE' => array(
			'data_type' => 'float',
		),
		'LON_CLOSE' => array(
			'data_type' => 'float',
		),
		'USER' => array(
			'data_type' => 'BitrixMainUser',
			'reference' => array('=this.USER_ID' => 'ref.ID'),
			'join_type' => 'INNER',
		),
	);
}