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.
19 class System
extends Generic\AbstractEntity
{
22 * @param bool $checkPermissions
23 * @return Action\System\Flush
25 public static function flush($checkPermissions = TRUE) {
26 return (new Action\System\
Flush(__CLASS__
, __FUNCTION__
))
27 ->setCheckPermissions($checkPermissions);
31 * @param bool $checkPermissions
32 * @return Action\System\Check
34 public static function check($checkPermissions = TRUE) {
35 return (new Action\System\
Check(__CLASS__
, __FUNCTION__
))
36 ->setCheckPermissions($checkPermissions);
40 * @param bool $checkPermissions
42 * @return Action\System\RotateKey
44 public static function rotateKey($checkPermissions = TRUE) {
45 return (new Action\System\
RotateKey(__CLASS__
, __FUNCTION__
))
46 ->setCheckPermissions($checkPermissions);
50 * @param bool $checkPermissions
51 * @return Generic\BasicGetFieldsAction
53 public static function getFields($checkPermissions = TRUE) {
54 return (new Generic\
BasicGetFieldsAction(__CLASS__
, __FUNCTION__
, function() {
56 }))->setCheckPermissions($checkPermissions);
60 * @param bool $checkPermissions
61 * @return Action\System\ResetPaths
63 public static function resetPaths($checkPermissions = TRUE) {
64 return (new Action\System\
ResetPaths(__CLASS__
, __FUNCTION__
))
65 ->setCheckPermissions($checkPermissions);