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 * A collection of system maintenance/diagnostic utilities.
20 class System
extends Generic\AbstractEntity
{
23 * @param bool $checkPermissions
24 * @return Action\System\Flush
26 public static function flush($checkPermissions = TRUE) {
27 return (new Action\System\
Flush(__CLASS__
, __FUNCTION__
))
28 ->setCheckPermissions($checkPermissions);
32 * @param bool $checkPermissions
33 * @return Action\System\Check
35 public static function check($checkPermissions = TRUE) {
36 return (new Action\System\
Check(__CLASS__
, __FUNCTION__
))
37 ->setCheckPermissions($checkPermissions);
41 * @param bool $checkPermissions
43 * @return Action\System\RotateKey
45 public static function rotateKey($checkPermissions = TRUE) {
46 return (new Action\System\
RotateKey(__CLASS__
, __FUNCTION__
))
47 ->setCheckPermissions($checkPermissions);
51 * @param bool $checkPermissions
52 * @return Generic\BasicGetFieldsAction
54 public static function getFields($checkPermissions = TRUE) {
55 return (new Generic\
BasicGetFieldsAction(__CLASS__
, __FUNCTION__
, function() {
57 }))->setCheckPermissions($checkPermissions);
61 * @param bool $checkPermissions
62 * @return Action\System\ResetPaths
64 public static function resetPaths($checkPermissions = TRUE) {
65 return (new Action\System\
ResetPaths(__CLASS__
, __FUNCTION__
))
66 ->setCheckPermissions($checkPermissions);