コード例 #1
0
ファイル: Check.php プロジェクト: hguru/224Civi
 /**
  * Run some sanity checks.
  *
  * This could become a hook so that CiviCRM can run both built-in
  * configuration & sanity checks, and modules/extensions can add
  * their own checks.
  *
  * We might even expose the results of these checks on the Wordpress
  * plugin status page or the Drupal admin/reports/status path.
  *
  * @return array of messages
  * @see Drupal's hook_requirements() -
  * https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_requirements
  */
 public function checkAll()
 {
     $security = new CRM_Utils_Check_Security();
     $env = new CRM_Utils_Check_Env();
     $messages = array_merge($security->checkAll(), $env->checkAll());
     return $messages;
 }