- Модуль: translate
- Путь к файлу: ~/bitrix/modules/translate/lib/index/internals/phraseindex.php
- Класс: BitrixTranslateIndexInternalsPhraseIndexTable
- Вызов: PhraseIndexTable::getMap
static function getMap(): array
{
static $fields;
if ($fields === null)
{
$fields = [
'ID' => [
'data_type' => 'integer',
'primary' => true,
'autocomplete' => true,
],
'FILE_ID' => [
'data_type' => 'integer',
],
'PATH_ID' => [
'data_type' => 'string',
],
'LANG_ID' => [
'data_type' => 'string',
],
'CODE' => [
'data_type' => 'string',
],
'FILE' => [
'data_type' => IndexInternalsFileIndexTable::class,
'reference' => [
'=this.FILE_ID' => 'ref.ID',
],
'join_type' => 'INNER',
],
'PATH' => [
'data_type' => IndexInternalsPathIndexTable::class,
'reference' => [
'=this.PATH_ID' => 'ref.ID',
],
'join_type' => 'INNER',
],
];
foreach (TranslateConfig::getLanguages() as $langId)
{
$fields['PHRASE_' . mb_strtoupper($langId)] = [
'data_type' => IndexInternalsPhraseFts::getFtsEntityClass($langId),
'reference' => [
'=this.ID' => 'ref.ID',
],
'join_type' => 'INNER',
];
}
}
return $fields;
}