• Модуль: vote
  • Путь к файлу: ~/bitrix/modules/vote/lib/uf/manager.php
  • Класс: BitrixVoteUfManager
  • Вызов: Manager::belongsToEntity
public function belongsToEntity(Attach $attachedObject, $entityType, $entityId)
{
	[$connectorClass, $moduleId] = $this->getConnectorDataByEntityType($entityType);

	return
		$attachedObject->getEntityId()   == $entityId &&
		$attachedObject->getModuleId()   == $moduleId &&
		$attachedObject->getEntityType() == $connectorClass;
}