• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/order/tradingplatform/platform.php
  • Класс: Bitrix\Crm\Order\TradingPlatform\Platform
  • Вызов: Platform::getName
protected function getName() : string;

/**
 * @return bool
 * @throws \Exception
 */
public function install()
{
	$result = Sale\TradingPlatformTable::add([
		"CODE" => $this->getCode(),
		"ACTIVE" => "Y",
		"NAME" => $this->getName(),
		"DESCRIPTION" => '',
		"CLASS" => '\\'.static::class,
		"XML_ID" => static::generateXmlId(),
	]);

	if ($result->isSuccess())
	{
		$this->isInstalled = true;
		$this->id = $result->getId();
	}

	return $result->isSuccess();
}