3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
14 * CiviCRM settings api.
16 * Used to read/write persistent setting data from CiviCRM.
18 * @see \Civi\Core\SettingsBag
23 class Setting
extends Generic\AbstractEntity
{
26 * @param bool $checkPermissions
27 * @return Action\Setting\Get
29 public static function get($checkPermissions = TRUE) {
30 return (new Action\Setting\
Get(__CLASS__
, __FUNCTION__
))
31 ->setCheckPermissions($checkPermissions);
35 * @param bool $checkPermissions
36 * @return Action\Setting\Set
38 public static function set($checkPermissions = TRUE) {
39 return (new Action\Setting\
Set(__CLASS__
, __FUNCTION__
))
40 ->setCheckPermissions($checkPermissions);
44 * @param bool $checkPermissions
45 * @return Action\Setting\Revert
47 public static function revert($checkPermissions = TRUE) {
48 return (new Action\Setting\
Revert(__CLASS__
, __FUNCTION__
))
49 ->setCheckPermissions($checkPermissions);
53 * @param bool $checkPermissions
54 * @return Action\Setting\GetFields
56 public static function getFields($checkPermissions = TRUE) {
57 return (new Action\Setting\
GetFields(__CLASS__
, __FUNCTION__
))
58 ->setCheckPermissions($checkPermissions);