2 interface CRM_Core_Reference_Interface
{
3 public function getReferenceTable();
5 public function getReferenceKey();
8 * Determine if a given table is a target of this reference.
10 * @param string $tableName
13 public function matchesTargetTable($tableName);
16 * Create a query to find references to a particular record
18 * @param CRM_Core_DAO $targetDao the instance for which we want references
19 * @return CRM_Core_DAO|NULL a query-handle (like the result of CRM_Core_DAO::executeQuery)
21 public function findReferences($targetDao);
24 * Create a query to find references to a particular record
26 * @param CRM_Core_DAO $targetDao the instance for which we want references
27 * @return array a record describing the reference; must include the keys:
28 * - 'type': string (not necessarily unique)
31 public function getReferenceCount($targetDao);