• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/lib/entity/section.php
  • Класс: BitrixListsEntitySection
  • Вызов: Section::isExist
public function isExist()
{
	$this->param->checkRequiredInputParams(["IBLOCK_CODE", "IBLOCK_ID", "SECTION_ID", "SECTION_CODE"]);
	if ($this->param->hasErrors())
	{
		$this->errorCollection->add($this->param->getErrors());
		return false;
	}

	$filter = [
		"ID" => $this->sectionId,
		"IBLOCK_ID" => $this->iblockId,
		"CHECK_PERMISSIONS" => "N",
	];
	$queryObject = CIBlockSection::getList([], $filter, false, ["ID"]);

	return (bool) $queryObject->fetch();
}