/** * checks from requirements if its compatible or not. Also fills the msg variable * @return boolean */ public static function is_compatible() { self::$msg = ''; $compatible = TRUE; foreach (install::requirements() as $values) { if ($values['mandatory'] == TRUE and $values['result'] == FALSE) { $compatible = FALSE; } if ($values['result'] == FALSE) { self::$msg .= $values['message'] . '<br>'; } } return $compatible; }
/** * checks from requirements if its compatible or not. Also fills the msg variable * @return boolean */ public static function is_compatible() { self::$msg = array(); $compatible = TRUE; foreach (install::requirements() as $name => $values) { if ($values['mandatory'] == TRUE and $values['result'] == FALSE) { $compatible = FALSE; } if ($values['result'] == FALSE) { self::$msg[] = $values['message']; } } return $compatible; }