4 * Interface CRM_Core_Reference_Interface
6 interface CRM_Core_Reference_Interface
{
8 public function getReferenceTable();
10 public function getReferenceKey();
13 * Determine if a given table is a target of this reference.
15 * @param string $tableName
18 public function matchesTargetTable($tableName);
21 * Create a query to find references to a particular record.
23 * @param CRM_Core_DAO $targetDao
24 * The instance for which we want references.
25 * @return CRM_Core_DAO|NULL a query-handle (like the result of CRM_Core_DAO::executeQuery)
27 public function findReferences($targetDao);
30 * Create a query to find references to a particular record.
32 * @param CRM_Core_DAO $targetDao
33 * The instance for which we want references.
35 * a record describing the reference; must include the keys:
36 * - 'type': string (not necessarily unique)
39 public function getReferenceCount($targetDao);