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
22 * A collection of system maintenance/diagnostic utilities.
28 class System
extends Generic\AbstractEntity
{
31 * @param bool $checkPermissions
32 * @return Action\System\Flush
34 public static function flush($checkPermissions = TRUE) {
35 return (new Action\System\
Flush(__CLASS__
, __FUNCTION__
))
36 ->setCheckPermissions($checkPermissions);
40 * @param bool $checkPermissions
41 * @return Action\System\Check
43 public static function check($checkPermissions = TRUE) {
44 return (new Action\System\
Check(__CLASS__
, __FUNCTION__
))
45 ->setCheckPermissions($checkPermissions);
49 * @param bool $checkPermissions
51 * @return Action\System\RotateKey
53 public static function rotateKey($checkPermissions = TRUE) {
54 return (new Action\System\
RotateKey(__CLASS__
, __FUNCTION__
))
55 ->setCheckPermissions($checkPermissions);
59 * @param bool $checkPermissions
60 * @return Generic\BasicGetFieldsAction
62 public static function getFields($checkPermissions = TRUE) {
63 return (new Generic\
BasicGetFieldsAction(__CLASS__
, __FUNCTION__
, function() {
65 }))->setCheckPermissions($checkPermissions);
69 * @param bool $checkPermissions
70 * @return Action\System\ResetPaths
72 public static function resetPaths($checkPermissions = TRUE) {
73 return (new Action\System\
ResetPaths(__CLASS__
, __FUNCTION__
))
74 ->setCheckPermissions($checkPermissions);