• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/automation/target/itemtarget.php
  • Класс: Bitrix\Crm\Automation\Target\ItemTarget
  • Вызов: ItemTarget::getStatusInfos
public function getStatusInfos($categoryId = 0)
{
	$entity = $this->getEntity();
	if ($categoryId === 0 && $this->factory->isCategoriesSupported() && isset($entity))
	{
		$categoryId = $entity->getCategoryId();
	}

	$statusInfos = [];
	foreach ($this->factory->getStages($categoryId) as $status)
	{
		$statusInfos[$status->getStatusId()] = $status->collectValues();
	}
	return $statusInfos;
}