• Модуль: translate
  • Путь к файлу: ~/bitrix/modules/translate/lib/settings.php
  • Класс: BitrixTranslateSettings
  • Вызов: Settings::load
public function load(): bool
{
	if (!$this->isExists() || !$this->isFile() || $this->getName() !== self::FILE_NAME)
	{
		return false;
	}

	$this->options = [];
	$this->optionCodes = [];
	$this->optionsCount = 0;

	$options = include $this->getPhysicalPath();

	if (is_array($options) && count($options) > 0)
	{
		$this->options = $options;
		$this->optionCodes = array_keys($options);
		$this->optionsCount = count($options);
	}

	return true;
}