Commit | Line | Data |
---|---|---|
6cccc6d4 TO |
1 | <?php |
2 | interface CRM_Core_FileSearchInterface { | |
3 | const DEFAULT_SEARCH_LIMIT = 20; | |
4 | const DEFAULT_SEARCH_OFFSET = 0; | |
5 | ||
6 | /** | |
6a0b768e TO |
7 | * @param array $query |
8 | * Any of the following:. | |
6cccc6d4 TO |
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) | |
14 | * @param int $limit | |
15 | * @param int $offset | |
16 | * @return array each item has keys: | |
17 | * - file_id: int | |
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) | |
22 | */ | |
00be9182 | 23 | public function search($query, $limit = self::DEFAULT_SEARCH_LIMIT, $offset = self::DEFAULT_SEARCH_OFFSET); |
ef10e0b5 | 24 | } |