• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/binding/entity.php
  • Класс: BitrixLandingBindingEntity
  • Вызов: Entity::getBindingId
private function getBindingId($entityId, $entityType)
{
	$res = BindingTable::getList([
		'select' => [
			'ID'
		],
		'filter' => [
			'=BINDING_TYPE' => static::$bindingType,
			'=BINDING_ID' => $this->bindingId,
			'=ENTITY_TYPE' => $entityType,
			'=ENTITY_ID' => $entityId
		]
	]);
	if ($row = $res->fetch())
	{
		return $row['ID'];
	}
	else
	{
		return 0;
	}
}