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.
26 class System
extends Generic\AbstractEntity
{
29 * @param bool $checkPermissions
30 * @return Action\System\Flush
32 public static function flush($checkPermissions = TRUE) {
33 return (new Action\System\
Flush(__CLASS__
, __FUNCTION__
))
34 ->setCheckPermissions($checkPermissions);
38 * @param bool $checkPermissions
39 * @return Action\System\Check
41 public static function check($checkPermissions = TRUE) {
42 return (new Action\System\
Check(__CLASS__
, __FUNCTION__
))
43 ->setCheckPermissions($checkPermissions);
47 * @param bool $checkPermissions
48 * @return Generic\BasicGetFieldsAction
50 public static function getFields($checkPermissions = TRUE) {
51 return (new Generic\
BasicGetFieldsAction(__CLASS__
, __FUNCTION__
, function() {
53 }))->setCheckPermissions($checkPermissions);