• Модуль: translate
  • Путь к файлу: ~/bitrix/modules/translate/lib/index/internals/pathindex.php
  • Класс: BitrixTranslateIndexInternalsPathIndexTable
  • Вызов: PathIndexTable::getMap
static function getMap(): array
{
	return array(
		'ID' => [
			'data_type' => 'integer',
			'primary' => true,
			'autocomplete' => true,
		],
		'PARENT_ID' => [
			'data_type' => 'integer',
		],
		'PATH' => [
			'data_type' => 'string',
		],
		'NAME' => [
			'data_type' => 'string',
		],
		'MODULE_ID' => [
			'data_type' => 'string',
		],
		'ASSIGNMENT' => [
			'data_type' => 'enum',
			'values' => TranslateASSIGNMENT_TYPES,
		],
		'DEPTH_LEVEL' => [
			'data_type' => 'integer',
			'default_value' => 0,
		],
		'SORT' => [
			'data_type' => 'integer',
			'default_value' => 0,
		],
		'IS_LANG' => [
			'data_type' => 'boolean',
			'values' => ['N', 'Y'],
			'default_value' => 'N',
		],
		'IS_DIR' => [
			'data_type' => 'boolean',
			'values' => ['N', 'Y'],
			'default_value' => 'N',
		],
		'OBLIGATORY_LANGS' => [
			'data_type' => 'string',
		],
		'INDEXED' => [
			'data_type' => 'boolean',
			'values' => ['N', 'Y'],
			'default_value' => 'N',
		],
		'INDEXED_TIME' => [
			'data_type' => 'datetime',
		],
		'FILE' => [
			'data_type' => IndexInternalsFileIndexTable::class,
			'reference' => [
				'=this.ID' => 'ref.PATH_ID'
			],
			'join_type' => 'LEFT',
		],
		'ANCESTORS' => [
			'data_type' => IndexInternalsPathTreeTable::class,
			'reference' => [
				'=this.ID' => 'ref.PARENT_ID',
			],
			'join_type' => 'INNER',
		],
		'DESCENDANTS' => [
			'data_type' => IndexInternalsPathTreeTable::class,
			'reference' => [
				'=this.ID' => 'ref.PATH_ID',
			],
			'join_type' => 'INNER',
		],
	);
}