CRM_Core_Reference_Dynamic
class CRM_Core_Reference_Dynamic extends CRM_Core_Reference_Basic
Description of a one-way link between two entities
This is a generic, soft-foreign key based on a pair of columns (entity_id, entity_table).
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
bool
matchesTargetTable(string $tableName)
No description
CRM_Core_DAO|NULL
array
Details
in CRM_Core_Reference_Basic at line 22
__construct($refTable, $refKey, null $targetTable = NULL, string $targetKey = 'id', null $refTypeColumn = NULL)
in CRM_Core_Reference_Basic at line 33
getReferenceTable()
in CRM_Core_Reference_Basic at line 40
getReferenceKey()
in CRM_Core_Reference_Basic at line 47
null
getTypeColumn()
in CRM_Core_Reference_Basic at line 54
null
getTargetTable()
in CRM_Core_Reference_Basic at line 61
string
getTargetKey()
at line 15
bool
matchesTargetTable(string $tableName)
at line 27
CRM_Core_DAO|NULL
findReferences(CRM_Core_DAO $targetDao)
Create a query to find references to a particular record.