• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/ebay/exportoffer.php
  • Класс: BitrixCatalogEbayExportOffer
  • Вызов: ExportOffer::createDbResObject
protected function createDbResObject()
{
//		order need for limiting by ID
	$order = array("ID" => "ASC");
	$arSelect = array("ID", "LID", "IBLOCK_ID", "IBLOCK_SECTION_ID", "NAME", "PREVIEW_PICTURE", "PREVIEW_TEXT",
		"PREVIEW_TEXT_TYPE", "DETAIL_PICTURE", "LANG_DIR", "DETAIL_PAGE_URL", "DETAIL_TEXT");

	$filter = array("IBLOCK_ID" => $this->iBlockId);

//		if set start position - limit result by ID
	if($this->startPosition)
		$filter[">=ID"] = $this->startPosition;

	if (!$this->bAllSections && !empty($this->arSections))
	{
		$filter["INCLUDE_SUBSECTIONS"] = $this->includeSubsections ? "Y" : "N";
		$filter["SECTION_ID"] = $this->arSections;
	}

	if($this->onlyAvailableElements)
		$filter["CATALOG_AVAILABLE"] = "Y";
	$filter["ACTIVE"] = "Y";
	$filter["SECTION_GLOBAL_ACTIVE"] = "Y";
	$filter["ACTIVE_DATE"] = "Y";

	return CIBlockElement::GetList($order, $filter, false, false, $arSelect);
}