4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
23 * CiviCRM settings api.
25 * Used to read/write persistent setting data from CiviCRM.
27 * @see \Civi\Core\SettingsBag
30 class Setting
extends Generic\AbstractEntity
{
33 * @param bool $checkPermissions
34 * @return Action\Setting\Get
36 public static function get($checkPermissions = TRUE) {
37 return (new Action\Setting\
Get(__CLASS__
, __FUNCTION__
))
38 ->setCheckPermissions($checkPermissions);
42 * @param bool $checkPermissions
43 * @return Action\Setting\Set
45 public static function set($checkPermissions = TRUE) {
46 return (new Action\Setting\
Set(__CLASS__
, __FUNCTION__
))
47 ->setCheckPermissions($checkPermissions);
51 * @param bool $checkPermissions
52 * @return Action\Setting\Revert
54 public static function revert($checkPermissions = TRUE) {
55 return (new Action\Setting\
Revert(__CLASS__
, __FUNCTION__
))
56 ->setCheckPermissions($checkPermissions);
60 * @param bool $checkPermissions
61 * @return Action\Setting\GetFields
63 public static function getFields($checkPermissions = TRUE) {
64 return (new Action\Setting\
GetFields(__CLASS__
, __FUNCTION__
))
65 ->setCheckPermissions($checkPermissions);