CRM_Core_Reference_OptionValue
extends CRM_Core_Reference_Basic
in package
Description of a one-way link between an option-value and an entity
Table of Contents
Properties
- $refKey : mixed
- $refTable : mixed
- $refTypeColumn : mixed
- $targetKey : mixed
- $targetOptionGroupId : int|null
- Target Option Group ID.
- $targetOptionGroupName : string
- Option group name.
- $targetTable : mixed
Methods
- __construct() : mixed
- findReferences() : null|object
- Create a query to find references to a particular record.
- getReferenceCount() : array<string|int, mixed>|null
- Get Reference Count.
- getReferenceKey() : string
- getReferenceTable() : string
- getTargetEntities() : array<string|int, mixed>
- getTargetKey() : string
- getTargetOptionGroupId() : int
- Get target option group ID.
- getTargetTable() : string
- getTypeColumn() : string|null
- CRM_Core_Reference_Basic returns NULL.
- matchesTargetTable() : bool
- Determine if a given table is a target of this reference.
Properties
$refKey
protected
mixed
$refKey
$refTable
protected
mixed
$refTable
$refTypeColumn
protected
mixed
$refTypeColumn
$targetKey
protected
mixed
$targetKey
$targetOptionGroupId
Target Option Group ID.
protected
int|null
$targetOptionGroupId
$targetOptionGroupName
Option group name.
protected
string
$targetOptionGroupName
$targetTable
protected
mixed
$targetTable
Methods
__construct()
public
__construct(mixed $refTable, mixed $refKey, null $targetTable, string $targetKey, null $optionGroupName) : mixed
Parameters
- $refTable : mixed
- $refKey : mixed
- $targetTable : null
- $targetKey : string
- $optionGroupName : null
findReferences()
Create a query to find references to a particular record.
public
findReferences(CRM_Core_DAO $targetDao) : null|object
Parameters
- $targetDao : CRM_Core_DAO
Tags
Return values
null|objectgetReferenceCount()
Get Reference Count.
public
getReferenceCount(CRM_Core_DAO $targetDao) : array<string|int, mixed>|null
Parameters
- $targetDao : CRM_Core_DAO
Tags
Return values
array<string|int, mixed>|nullgetReferenceKey()
public
getReferenceKey() : string
Return values
stringgetReferenceTable()
public
getReferenceTable() : string
Return values
stringgetTargetEntities()
public
getTargetEntities() : array<string|int, mixed>
Return values
array<string|int, mixed> —[table_name => EntityName]
getTargetKey()
public
getTargetKey() : string
Return values
stringgetTargetOptionGroupId()
Get target option group ID.
public
getTargetOptionGroupId() : int
Return values
intgetTargetTable()
public
getTargetTable() : string
Return values
stringgetTypeColumn()
CRM_Core_Reference_Basic returns NULL.
public
getTypeColumn() : string|null
CRM_Core_Reference_Dynamic returns the name of the dynamic column e.g. "entity_table".
Return values
string|nullmatchesTargetTable()
Determine if a given table is a target of this reference.
public
matchesTargetTable(string $tableName) : bool
Parameters
- $tableName : string