• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/entitymarker.php
  • Класс: BitrixSaleEntityMarker
  • Вызов: EntityMarker::getMarker
static function getMarker($orderCode, InternalsEntity $entity = null)
{
	if (empty(static::$pool[$orderCode]))
	{
		return null;
	}

	if ($entity !== null)
	{
		$entityType = static::getEntityType($entity);
		if ($entityType !== null && array_key_exists($entityType, static::$pool[$orderCode]))
		{
			return static::$pool[$orderCode][$entityType];
		}
	}
	else
	{
		return static::$pool[$orderCode];
	}

	return null;
}