• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/platform.php
  • Класс: BitrixSaleTradingPlatformPlatform
  • Вызов: Platform::setActive
public function setActive()
{
	if ($this->isActive())
	{
		return true;
	}
	
	$this->isActive = true;
	
	if ($this->isNeedCatalogSectionsTab && !$this->isSomebodyUseCatalogSectionsTab())
		$this->setCatalogSectionsTabEvent();
	
	// if we are the first, let's switch on the event to notify about the track numbers changings
	if (!$this->isActiveItemsExist())
		$this->setShipmentTableOnAfterUpdateEvent();
	
	$res = TradingPlatformTable::update($this->id, array("ACTIVE" => "Y"));
	
	return $res->isSuccess();
}