Document::listAction

  1. Bitrix24 API (v. 23.675.0)
  2. catalog
  3. Document
  4. listAction
  • Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/document.php
  • Класс: BitrixCatalogControllerDocument
  • Вызов: Document::listAction
public function listAction(
	PageNavigation $pageNavigation,
	array $order = [],
	array $filter = [],
	array $select = []
): Page
{
	// set available types for REST
	$filter = [
		'=DOC_TYPE' => array_keys(self::getAvailableRestDocumentTypes()),
		$filter,
	];

	$accessFilter = $this->accessController->getEntityFilter(
		ActionDictionary::ACTION_STORE_DOCUMENT_VIEW,
		get_class($this->getEntityTable())
	);
	if ($accessFilter)
	{
		// combines through a new array so that the `OR` condition does not bypass the access filter.
		$filter = [
			$accessFilter,
			$filter,
		];
	}

	return new Page('DOCUMENTS',
		$this->getList($select, $filter, $order, $pageNavigation),
		$this->count($filter)
	);
}

Добавить комментарий