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.
27 class System
extends Generic\AbstractEntity
{
30 * @param bool $checkPermissions
31 * @return Action\System\Flush
33 public static function flush($checkPermissions = TRUE) {
34 return (new Action\System\
Flush(__CLASS__
, __FUNCTION__
))
35 ->setCheckPermissions($checkPermissions);
39 * @param bool $checkPermissions
40 * @return Action\System\Check
42 public static function check($checkPermissions = TRUE) {
43 return (new Action\System\
Check(__CLASS__
, __FUNCTION__
))
44 ->setCheckPermissions($checkPermissions);
48 * @param bool $checkPermissions
50 * @return Action\System\RotateKey
52 public static function rotateKey($checkPermissions = TRUE) {
53 return (new Action\System\
RotateKey(__CLASS__
, __FUNCTION__
))
54 ->setCheckPermissions($checkPermissions);
58 * @param bool $checkPermissions
59 * @return Generic\BasicGetFieldsAction
61 public static function getFields($checkPermissions = TRUE) {
62 return (new Generic\
BasicGetFieldsAction(__CLASS__
, __FUNCTION__
, function() {
64 }))->setCheckPermissions($checkPermissions);
68 * @param bool $checkPermissions
69 * @return Action\System\ResetPaths
71 public static function resetPaths($checkPermissions = TRUE) {
72 return (new Action\System\
ResetPaths(__CLASS__
, __FUNCTION__
))
73 ->setCheckPermissions($checkPermissions);