Merge pull request #21583 from mattwire/propertybagsimplebits
[civicrm-core.git] / Civi / Api4 / SavedSearch.php
1 <?php
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 */
11 namespace Civi\Api4;
12
13 /**
14 * SavedSearch entity.
15 *
16 * Stores search criteria for smart groups and SearchKit displays.
17 *
18 * @see https://docs.civicrm.org/user/en/latest/the-user-interface/search-kit/
19 * @see https://docs.civicrm.org/user/en/latest/organising-your-data/smart-groups/
20 * @searchable secondary
21 * @since 5.24
22 * @package Civi\Api4
23 */
24 class SavedSearch extends Generic\DAOEntity {
25
26 use Generic\Traits\ManagedEntity;
27
28 public static function permissions() {
29 $permissions = parent::permissions();
30 $permissions['get'] = ['access CiviCRM'];
31 return $permissions;
32 }
33
34 }