• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/Access/Model/StoreDocument.php
  • Класс: BitrixCatalogAccessModelStoreDocument
  • Вызов: StoreDocument::getType
public function getType(): ?string
{
	if (!isset($this->type))
	{
		$row = StoreDocumentTable::getRow([
			'select' => [
				'DOC_TYPE',
			],
			'filter' => [
				'=ID' => $this->getId(),
			],
		]);

		if ($row['DOC_TYPE'])
		{
			$this->type = (string)$row['DOC_TYPE'];
		}
		else
		{
			$this->type = null;
		}
	}

	return $this->type;
}