APIv4 - Add Dashboard & DashboardContact entities
[civicrm-core.git] / Civi / Api4 / Setting.php
1 <?php
2
3 /*
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
6 | |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
11 */
12
13 /**
14 *
15 * @package CRM
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
17 * $Id$
18 *
19 */
20
21
22 namespace Civi\Api4;
23
24 /**
25 * CiviCRM settings api.
26 *
27 * Used to read/write persistent setting data from CiviCRM.
28 *
29 * @see \Civi\Core\SettingsBag
30 * @package Civi\Api4
31 */
32 class Setting extends Generic\AbstractEntity {
33
34 public static function get() {
35 return new Action\Setting\Get(__CLASS__, __FUNCTION__);
36 }
37
38 public static function set() {
39 return new Action\Setting\Set(__CLASS__, __FUNCTION__);
40 }
41
42 public static function revert() {
43 return new Action\Setting\Revert(__CLASS__, __FUNCTION__);
44 }
45
46 public static function getFields() {
47 return new Action\Setting\GetFields(__CLASS__, __FUNCTION__);
48 }
49
50 }