• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/entityrequisite.php
  • Класс: Bitrix\Crm\EntityRequisite
  • Вызов: EntityRequisite::getEntityRequisiteIDs
public function getEntityRequisiteIDs($entityTypeId, $entityId)
{
	$entityTypeId = (int)$entityTypeId;
	$entityId = (int)$entityId;

	$dbResult = $this->getList(
		array(
			'filter' => array('=ENTITY_TYPE_ID' => $entityTypeId, '=ENTITY_ID' => $entityId),
			'select' => array('ID')
		)
	);

	$results = array();
	while ($fields = $dbResult->fetch())
	{
		$results[] = $fields['ID'];
	}
	return $results;
}