Enum::getStoreDocumentTypesAction

  1. Bitrix24 API (v. 23.675.0)
  2. catalog
  3. Enum
  4. getStoreDocumentTypesAction
  • Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/enum.php
  • Класс: BitrixCatalogControllerEnum
  • Вызов: Enum::getStoreDocumentTypesAction
public function getStoreDocumentTypesAction(): array
{
	$result = [];
	foreach (Document::getAvailableRestDocumentTypes() as $id=>$name)
	{
		$result[] = [
			'ID' => $id,
			'NAME' => $name,
		];
	}

	return ['ENUM' => $result];
}

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