4 * Interface CRM_Core_FileSearchInterface
6 interface CRM_Core_FileSearchInterface
{
7 const DEFAULT_SEARCH_LIMIT
= 20;
8 const DEFAULT_SEARCH_OFFSET
= 0;
12 * Any of the following:.
13 * - text: string, plain text to search for
14 * - parent_table: string - entity to which file is directly attached
15 * - parent_id: int - entity to which file is directly attached
16 * - xparent_table: string - business-entity to which file is attached (directly or indirectly)
17 * - xparent_id: int - business-entity to which file is attached (directly or indirectly)
23 * - parent_table: string - entity to which file is directly attached
24 * - parent_id: int - entity to which file is directly attached
25 * - xparent_table: string - business-entity to which file is attached (directly or indirectly)
26 * - xparent_id: int - business-entity to which file is attached (directly or indirectly)
28 public function search($query, $limit = self
::DEFAULT_SEARCH_LIMIT
, $offset = self
::DEFAULT_SEARCH_OFFSET
);