• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/platform.php
  • Класс: BitrixSaleTradingPlatformPlatform
  • Вызов: Platform::unsetActive
public function unsetActive()
{
	$this->isActive = false;
	
	if ($this->isNeedCatalogSectionsTab && !$this->isSomebodyUseCatalogSectionsTab())
		$this->unSetCatalogSectionsTabEvent();
	
	$res = TradingPlatformTable::update($this->id, array("ACTIVE" => "N"));
	
	//If we are last let's switch off unused event about track numbers changing
	if (!$this->isActiveItemsExist())
	{
		$this->unSetShipmentTableOnAfterUpdateEvent();
	}
	
	return $res->isSuccess();
}