70 while ($row = $tablesRes->fetch())
72 $tableName = array_shift($row);
73 $langId = substr($tableName, -2);
74 $tables[$langId] = $tableName;
76 foreach (Translate\Config::getEnabledLanguages() as $langId)
78 if (!preg_match(
"/[a-z0-9]{2}/i", $langId))
82 if (!isset($tables[$langId]))
88 unset($tables[$langId]);
91 foreach ($tables as $langId => $table)
176 if (!in_array($langId, Translate\Config::getEnabledLanguages(),
true))
180 if (!isset(self::$ftsEntities[$langId]))
182 self::$ftsEntities[$langId] = ORM\Entity::compileEntity(
183 'PhraseIndexTfsEntity'. mb_strtoupper($langId),
186 'table_name' => self::getPartitionTableName($langId),
187 'namespace' => __NAMESPACE__,
188 'parent' => Index\Internals\PhraseFts::class
193 return self::$ftsEntities[$langId];