api4 - Import CRM/, Civi/, templates/, ang/, css/, js/, xml/menu
[civicrm-core.git] / Civi / Api4 / Setting.php
1 <?php
2
3 namespace Civi\Api4;
4
5 /**
6 * CiviCRM settings api.
7 *
8 * Used to read/write persistent setting data from CiviCRM.
9 *
10 * @package Civi\Api4
11 */
12 class Setting extends Generic\AbstractEntity {
13
14 public static function get() {
15 return new Action\Setting\Get(__CLASS__, __FUNCTION__);
16 }
17
18 public static function set() {
19 return new Action\Setting\Set(__CLASS__, __FUNCTION__);
20 }
21
22 public static function revert() {
23 return new Action\Setting\Revert(__CLASS__, __FUNCTION__);
24 }
25
26 public static function getFields() {
27 return new Action\Setting\GetFields(__CLASS__, __FUNCTION__);
28 }
29
30 }