Example #1
0
 /**
  * All checks of environment helper
  *
  * @return string json
  */
 public function checkEnvironment()
 {
     $checks = EnvironmentHelper::getAvailableChecks();
     $res = array();
     foreach ($checks as $check) {
         // Skip this to check in checkDb()
         if ($check == 'checkUserConflicts') {
             continue;
         }
         $rs = EnvironmentHelper::$check();
         $res[] = array('text' => JText::_('COM_NEWSLETTER_MAINTAINANCE_' . strtoupper($check)), 'type' => $rs);
     }
     NewsletterHelper::jsonMessage('checkEnvironment', $res);
 }