3namespace Bitrix\Sale\TradingPlatform;
5use Bitrix\Main\ArgumentNullException;
6use Bitrix\Main\Entity\EventResult;
7use Bitrix\Main\Entity\Result;
8use Bitrix\Main\SystemException;
10use Bitrix\Sale\TradingPlatformTable;
11use Bitrix\Main\EventManager;
48 $dbRes = TradingPlatformTable::getList([
50 '=CODE' => $this->code,
57 $this->isNeedCatalogSectionsTab =
$platform[
"CATALOG_SECTION_TAB_CLASS_NAME"] <>
'';
69 $this->logger =
new Logger($this->logLevel);
86 if (!isset(self::$instances[
$code]))
91 return self::$instances[
$code];
116 if(!isset($this->fields[$fieldName]))
121 return $this->fields[$fieldName];
157 $res = TradingPlatformTable::update($this->
id,
array(
"ACTIVE" =>
"Y"));
159 return $res->isSuccess();
173 $res = TradingPlatformTable::update($this->
id,
array(
"ACTIVE" =>
"N"));
181 return $res->isSuccess();
186 $dbRes = TradingPlatformTable::getList([
193 return (
bool)
$dbRes->fetch();
201 'ShipmentOnAfterUpdate',
203 '\Bitrix\Sale\TradingPlatform\Helper',
204 'onAfterUpdateShipment'
213 'ShipmentOnAfterUpdate',
215 '\Bitrix\Sale\TradingPlatform\Helper',
216 'onAfterUpdateShipment'
228 $res = TradingPlatformTable::getList(
array(
229 'select' =>
array(
"ID",
"CATALOG_SECTION_TAB_CLASS_NAME"),
231 '!=CODE' => $this->code,
238 if (
$arRes[
"CATALOG_SECTIONS_TAB_CLASS_NAME"] <>
'')
251 $eventManager->registerEventHandlerCompatible(
"main",
"OnAdminIBlockSectionEdit",
"sale",
"\\Bitrix\\Sale\\TradingPlatform\\CatalogSectionTab",
"OnInit");
257 $eventManager->unRegisterEventHandler(
"main",
"OnAdminIBlockSectionEdit",
"sale",
"\\Bitrix\\Sale\\TradingPlatform\\CatalogSectionTab",
"OnInit");
275 $result = TradingPlatformTable::update($this->
id,
array(
"SETTINGS" => $settings));
310 "CODE" => self::TRADING_PLATFORM_CODE,
314 self::$instances[$this->
getCode()] =
new static($this->
getCode());
316 return $res->getId();
327 $res = TradingPlatformTable::delete($this->
getId());
334 unset(self::$instances[$this->
getCode()]);
337 return $res->isSuccess();
353 return static::TRADING_PLATFORM_CODE;
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(Loader::includeModule( 'bitrix24')) elseif(Loader::includeModule('intranet') &&CIntranetUtils::getPortalZone() !=='ru') $description