Commit | Line | Data |
---|---|---|
d24bd500 | 1 | <?php |
d24bd500 CW |
2 | /* |
3 | +--------------------------------------------------------------------+ | |
4 | | Copyright CiviCRM LLC. All rights reserved. | | |
5 | | | | |
6 | | This work is published under the GNU AGPLv3 license with some | | |
7 | | permitted exceptions and without any warranty. For full license | | |
8 | | and copyright information, see https://civicrm.org/licensing | | |
9 | +--------------------------------------------------------------------+ | |
10 | */ | |
d24bd500 CW |
11 | namespace Civi\Api4; |
12 | ||
13 | /** | |
9626d0a1 | 14 | * SavedSearch entity. |
d24bd500 | 15 | * |
9626d0a1 | 16 | * Stores search criteria for smart groups and SearchKit displays. |
d24bd500 | 17 | * |
9626d0a1 | 18 | * @see https://docs.civicrm.org/user/en/latest/the-user-interface/search-kit/ |
d24bd500 | 19 | * @see https://docs.civicrm.org/user/en/latest/organising-your-data/smart-groups/ |
d102f836 | 20 | * @searchable secondary |
d44cc3cb | 21 | * @since 5.24 |
d24bd500 CW |
22 | * @package Civi\Api4 |
23 | */ | |
24 | class SavedSearch extends Generic\DAOEntity { | |
25 | ||
9626d0a1 CW |
26 | use Generic\Traits\ManagedEntity; |
27 | ||
144025ae CW |
28 | public static function permissions() { |
29 | $permissions = parent::permissions(); | |
30 | $permissions['get'] = ['access CiviCRM']; | |
31 | return $permissions; | |
32 | } | |
33 | ||
d24bd500 | 34 | } |