• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/ebay/exportoffer.php
  • Класс: BitrixCatalogEbayExportOffer
  • Вызов: ExportOffer::__construct
public function __construct($catalogType, $params)
{
	if(!isset($params["IBLOCK_ID"]) || intval($params["IBLOCK_ID"]) <= 0)
		throw new SystemException("Incorrect iBlock ID  (".__CLASS__."::".__METHOD__.")");

	$this->catalogType = $catalogType;

	$this->iBlockId = $params["IBLOCK_ID"];
	$this->xmlData = $params["XML_DATA"];

	$this->arIblock = $this->getIblockProps($params["SETUP_SERVER_NAME"]);
	$this->arSections = $this->getSections($params["PRODUCT_GROUPS"]);
	if(isset($params["START_POSITION"]) && $params["START_POSITION"])
		$this->startPosition = $params["START_POSITION"];
	if(isset($params["INCLUDE_SUBSECTION"]))
		$this->includeSubsections = $params["INCLUDE_SUBSECTION"];

	$this->bAllSections = in_array(0, $this->arSections) ? true : false;
	$availGroups = $this->getAvailGroups();
	$this->intMaxSectionID = $this->getMaxSectionId($availGroups);
	$this->arSectionIDs = $this->getSectionIDs($availGroups);
}