• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/composite/debug/model/log.php
  • Класс: BitrixMainCompositeDebugModelLogTable
  • Вызов: LogTable::getMap
static function getMap()
{
	return array(
		"ID" => array(
			"data_type" => "integer",
			"primary" => true,
			"autocomplete" => true,
			"title" => "ID"
		),
		"HOST" => array(
			"data_type" => "string",
			"required" => true,
			"validation" => array(__CLASS__, "validateHost"),
			"title" => Loc::getMessage("LOG_ENTITY_HOST_FIELD")
		),
		"URI" => array(
			"data_type" => "string",
			"required" => true,
			"validation" => array(__CLASS__, "validateUri"),
			"title" => Loc::getMessage("LOG_ENTITY_URI_FIELD")
		),
		"TITLE" => array(
			"data_type" => "string",
			"validation" => array(__CLASS__, "validateTitle"),
			"title" => Loc::getMessage("LOG_ENTITY_TITLE_FIELD")
		),
		"CREATED" => array(
			"data_type" => "datetime",
			"required" => true,
			"default_value" => new DateTime(),
			"title" => Loc::getMessage("LOG_ENTITY_CREATED_FIELD"),
		),
		"TYPE" => array(
			"data_type" => "enum",
			"required" => true,
			"values" => Logger::getTypes(),
			"default_value" => Logger::TYPE_MESSAGE,
			"title" => Loc::getMessage("LOG_ENTITY_TYPE_FIELD"),
		),
		"MESSAGE" => array(
			"data_type" => "text",
			"title" => Loc::getMessage("LOG_ENTITY_MESSAGE_FIELD"),
		),
		"MESSAGE_SHORT" => array(
			"data_type" => "text",
			"expression" => array(
				"case when %s = '".Logger::TYPE_CACHE_REWRITING."' then NULL else %s end",
				"TYPE", "MESSAGE"
			),
			"title" => Loc::getMessage("LOG_ENTITY_MESSAGE_FIELD"),
		),

		"AJAX" => array(
			"data_type" => "boolean",
			"values" => array("N", "Y"),
			"title" => Loc::getMessage("LOG_ENTITY_AJAX_FIELD"),
		),
		"USER_ID" => array(
			"data_type" => "integer",
			"required" => true,
			"default_value" => 0,
			"title" => Loc::getMessage("LOG_ENTITY_USER_ID_FIELD"),
		),

		"USER" => array(
			"data_type" => "\Bitrix\Main\UserTable",
			"reference" => array(
				"=this.USER_ID" => "ref.ID"
			),
			"join_type" => "LEFT",
		),

		"PAGE_ID" => array(
			"data_type" => "integer",
			"required" => true,
			"default_value" => 0,
			"title" => Loc::getMessage("LOG_ENTITY_PAGE_ID_FIELD"),
		),
	);
}