class CRM_Core_EntityReference extends CRM_Core_Reference_Basic

deprecated

This is included for backward compatibility with DAO's generated before 4.5.

Properties

protected $refTable from CRM_Core_Reference_Basic
protected $refKey from CRM_Core_Reference_Basic
protected $refTypeColumn from CRM_Core_Reference_Basic
protected $targetTable from CRM_Core_Reference_Basic
protected $targetKey from CRM_Core_Reference_Basic

Methods

__construct($refTable, $refKey, null $targetTable = NULL, string $targetKey = 'id', null $refTypeColumn = NULL)

No description

getReferenceKey()

No description

null
getTypeColumn()

No description

null
getTargetTable()

No description

string
getTargetKey()

No description

bool
matchesTargetTable(string $tableName)

No description

findReferences(CRM_Core_DAO $targetDao)

No description

array
getReferenceCount(CRM_Core_DAO $targetDao)

No description

Details

__construct($refTable, $refKey, null $targetTable = NULL, string $targetKey = 'id', null $refTypeColumn = NULL)

Parameters

$refTable
$refKey
null $targetTable
string $targetKey
null $refTypeColumn

getReferenceTable()

getReferenceKey()

null getTypeColumn()

Return Value

null

null getTargetTable()

Return Value

null

string getTargetKey()

Return Value

string

bool matchesTargetTable(string $tableName)

Parameters

string $tableName

Return Value

bool

CRM_Core_DAO|NULL findReferences(CRM_Core_DAO $targetDao)

Parameters

CRM_Core_DAO $targetDao The instance for which we want references.

Return Value

CRM_Core_DAO|NULL a query-handle (like the result of CRM_Core_DAO::executeQuery)

array getReferenceCount(CRM_Core_DAO $targetDao)

Parameters

CRM_Core_DAO $targetDao The instance for which we want references.

Return Value

array a record describing the reference; must include the keys: - 'type': string (not necessarily unique) - 'count': int