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 the instance for which we want references
23 * @return CRM_Core_DAO|NULL a query-handle (like the result of CRM_Core_DAO::executeQuery)
25 public function findReferences($targetDao);
28 * Create a query to find references to a particular record
30 * @param CRM_Core_DAO $targetDao the instance for which we want references
31 * @return array a record describing the reference; must include the keys:
32 * - 'type': string (not necessarily unique)
35 public function getReferenceCount($targetDao);