• Модуль: mobileapp
  • Путь к файлу: ~/bitrix/modules/mobileapp/lib/janative/entity/extension.php
  • Класс: BitrixMobileAppJanativeEntityExtension
  • Вызов: Extension::__construct
public function __construct($identifier)
{
	$identifier = Path::normalize($identifier);
	$this->baseFileName = 'extension';
	$desc = Utils::extractEntityDescription($identifier);
	$this->name = $desc['name'];
	$this->namespace = $desc['namespace'];
	if (isset(self::$paths[$desc['fullname']]))
	{
		$this->path = self::$paths[$desc['fullname']];
	}
	else
	{
		$this->path = Manager::getExtensionPath($identifier);
		self::$paths[$desc['fullname']] = $this->path;
	}

	if (!$this->path)
	{
		throw new SystemException("Extension '{$desc['fullname']}' doesn't exists");
	}
}