2 interface CRM_Core_FileSearchInterface
{
3 const DEFAULT_SEARCH_LIMIT
= 20;
4 const DEFAULT_SEARCH_OFFSET
= 0;
8 * Any of the following:.
9 * - text: string, plain text to search for
10 * - parent_table: string - entity to which file is directly attached
11 * - parent_id: int - entity to which file is directly attached
12 * - xparent_table: string - business-entity to which file is attached (directly or indirectly)
13 * - xparent_id: int - business-entity to which file is attached (directly or indirectly)
16 * @return array each item has keys:
18 * - parent_table: string - entity to which file is directly attached
19 * - parent_id: int - entity to which file is directly attached
20 * - xparent_table: string - business-entity to which file is attached (directly or indirectly)
21 * - xparent_id: int - business-entity to which file is attached (directly or indirectly)
23 public function search($query, $limit = self
::DEFAULT_SEARCH_LIMIT
, $offset = self
::DEFAULT_SEARCH_OFFSET
);