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
31 class Setting
extends Generic\AbstractEntity
{
34 * @param bool $checkPermissions
35 * @return Action\Setting\Get
37 public static function get($checkPermissions = TRUE) {
38 return (new Action\Setting\
Get(__CLASS__
, __FUNCTION__
))
39 ->setCheckPermissions($checkPermissions);
43 * @param bool $checkPermissions
44 * @return Action\Setting\Set
46 public static function set($checkPermissions = TRUE) {
47 return (new Action\Setting\
Set(__CLASS__
, __FUNCTION__
))
48 ->setCheckPermissions($checkPermissions);
52 * @param bool $checkPermissions
53 * @return Action\Setting\Revert
55 public static function revert($checkPermissions = TRUE) {
56 return (new Action\Setting\
Revert(__CLASS__
, __FUNCTION__
))
57 ->setCheckPermissions($checkPermissions);
61 * @param bool $checkPermissions
62 * @return Action\Setting\GetFields
64 public static function getFields($checkPermissions = TRUE) {
65 return (new Action\Setting\
GetFields(__CLASS__
, __FUNCTION__
))
66 ->setCheckPermissions($checkPermissions);