4 * Interface CRM_Core_Reference_Interface
6 interface CRM_Core_Reference_Interface
{
7 public function getReferenceTable();
9 public function getReferenceKey();
12 * Determine if a given table is a target of this reference.
14 * @param string $tableName
17 public function matchesTargetTable($tableName);
20 * Create a query to find references to a particular record.
22 * @param CRM_Core_DAO $targetDao
23 * The instance for which we want references.
24 * @return CRM_Core_DAO|NULL a query-handle (like the result of CRM_Core_DAO::executeQuery)
26 public function findReferences($targetDao);
29 * Create a query to find references to a particular record.
31 * @param CRM_Core_DAO $targetDao
32 * The instance for which we want references.
34 * a record describing the reference; must include the keys:
35 * - 'type': string (not necessarily unique)
38 public function getReferenceCount($targetDao);