Entity::getList

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Entity
  4. getList
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/webform/entity.php
  • Класс: Bitrix\Crm\WebForm\Entity
  • Вызов: Entity::getList
static function getList()
{
	$result = array();
	$map = static::getMap();
	foreach($map as $entityName => $entity)
	{
		$entityId = \CCrmOwnerType::ResolveID($entityName);
		if ($entityId === \CCrmOwnerType::Invoice)
		{
			$entityId = \CCrmOwnerType::Order;
		}
		$result[$entityName] = \CCrmOwnerType::GetDescription($entityId);
	}

	return $result;
}

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