• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/platform.php
  • Класс: Bitrix\Sale\TradingPlatform\for
  • Вызов: for::__construct
protected function __construct($code)
{
	$this->code = $code;
	
	$dbRes = TradingPlatformTable::getList([
		'filter' => [
			'=CODE' => $this->code,
		],
	]);
	
	if ($platform = $dbRes->fetch())
	{
		$this->isActive = $platform["ACTIVE"] == "Y";
		$this->isNeedCatalogSectionsTab = $platform["CATALOG_SECTION_TAB_CLASS_NAME"] <> '';
		
		if (is_array($platform["SETTINGS"]))
		{
			$this->settings = $platform["SETTINGS"];
		}
		
		$this->isInstalled = true;
		$this->id = $platform["ID"];
		$this->fields = $platform;
	}
	
	$this->logger = new Logger($this->logLevel);
}