• Модуль: translate
  • Путь к файлу: ~/bitrix/modules/translate/lib/controller/asset/applypublic.php
  • Класс: BitrixTranslateControllerAssetApplyPublic
  • Вызов: ApplyPublic::__construct
public function __construct($name, MainEngineController $controller, array $config = [])
{
	$this->keepField([
		'languageId', 'tmpFolderPath', 'totalFileCount', 'sourceFolderPath',
		'seekPath', 'seekModule', 'seekType'
	]);

	parent::__construct($name, $controller, $config);

	self::$useTranslationRepository = MainLocalizationTranslation::useTranslationRepository();
	self::$enabledLanguages = TranslateConfig::getEnabledLanguages();
	if (self::$useTranslationRepository)
	{
		self::$translationRepositoryRoot = MainLocalizationTranslation::getTranslationRepositoryPath();
	}
	self::$documentRoot = rtrim(TranslateIOPath::tidy(MainApplication::getDocumentRoot()), '/');
}