avoid crash with one column and blank lines
[civicrm-core.git] / Civi / Api4 / System.php
index 0afefe11a1a51233c257ba54fac40cf72d6fc703..f9d5d099600c5bafc38b7f02d0c9f4edfc1da924 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-
 /*
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC. All rights reserved.                        |
@@ -9,18 +8,13 @@
  | and copyright information, see https://civicrm.org/licensing       |
  +--------------------------------------------------------------------+
  */
-
-/**
- *
- * @package CRM
- * @copyright CiviCRM LLC https://civicrm.org/licensing
- */
-
 namespace Civi\Api4;
 
 /**
  * A collection of system maintenance/diagnostic utilities.
  *
+ * @searchable none
+ * @since 5.19
  * @package Civi\Api4
  */
 class System extends Generic\AbstractEntity {
@@ -63,4 +57,13 @@ class System extends Generic\AbstractEntity {
     }))->setCheckPermissions($checkPermissions);
   }
 
+  /**
+   * @param bool $checkPermissions
+   * @return Action\System\ResetPaths
+   */
+  public static function resetPaths($checkPermissions = TRUE) {
+    return (new Action\System\ResetPaths(__CLASS__, __FUNCTION__))
+      ->setCheckPermissions($checkPermissions);
+  }
+
 }