• Модуль: mobileapp
  • Путь к файлу: ~/bitrix/modules/mobileapp/lib/janative/entity/component.php
  • Класс: BitrixMobileAppJanativeEntityComponent
  • Вызов: Component::getVersion
public function getVersion(): string
    {
	$config = $this->getConfig();
	if (!$this->version)
	{
		$this->version = "1";
		if ( $this->isBundleEnabled )
		{
			$bundleVersion = new File("{$this->path}/dist/version.bundle.php");
			if ($bundleVersion->isExists())
			{
				$versionDesc = include($bundleVersion->getPath());
				$this->version = $versionDesc['version'];
			}
		}
		else
		{
			$versionFile = new File("{$this->path}/version.php");
			if ($versionFile->isExists())
			{
				$versionDesc = include($versionFile->getPath());
				$this->version = $versionDesc['version'];
				$this->version .= '.' . self::VERSION;
			}

			$this->version .= '_' . $this->getModificationMarker();
		}
	}

	return $this->version;
}