[REF] Replace the deprecated system_rebuild_module_data function with equivilant...
[civicrm-core.git] / Civi / Api4 / Setting.php
CommitLineData
19b53e5b
C
1<?php
2
380f3545
TO
3/*
4 +--------------------------------------------------------------------+
41498ac5 5 | Copyright CiviCRM LLC. All rights reserved. |
380f3545 6 | |
41498ac5
TO
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 |
380f3545
TO
10 +--------------------------------------------------------------------+
11 */
12
13/**
14 *
15 * @package CRM
ca5cec67 16 * @copyright CiviCRM LLC https://civicrm.org/licensing
380f3545
TO
17 * $Id$
18 *
19 */
20
21
19b53e5b
C
22namespace Civi\Api4;
23
24/**
25 * CiviCRM settings api.
26 *
27 * Used to read/write persistent setting data from CiviCRM.
28 *
0493ec47 29 * @see \Civi\Core\SettingsBag
19b53e5b
C
30 * @package Civi\Api4
31 */
32class 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}