- Модуль: translate
- Путь к файлу: ~/bitrix/modules/translate/lib/controller/asset/collect.php
- Класс: BitrixTranslateControllerAssetCollect
- Вызов: Collect::__construct
public function __construct($name, MainEngineController $controller, array $config = [])
{
$this->keepField([
'seekPathLangId', 'convertEncoding', 'encoding', 'assemblyDate',
'languageId', 'packFile', 'tmpFolderPath', 'totalFileCount'
]);
parent::__construct($name, $controller, $config);
self::$useTranslationRepository = MainLocalizationTranslation::useTranslationRepository();
self::$enabledLanguages = TranslateConfig::getEnabledLanguages();
self::$allowedEncodings = TranslateConfig::getAllowedEncodings();
self::$documentRoot = rtrim(TranslateIOPath::tidy(MainApplication::getDocumentRoot()), '/');
if (self::$useTranslationRepository)
{
self::$translationRepositoryLanguages = TranslateConfig::getTranslationRepositoryLanguages();
}
}