Code

Updated class plugin.
[gosa.git] / gosa-core / include / class_msg_dialog.inc
index eba6b42bf13fb30749e978a38c451a5b5c0c7352..5fb06268f92e79e1656e947e41c96c3dfc34ed9f 100644 (file)
@@ -83,11 +83,22 @@ class msg_dialog
                session::set('errorsAlreadyPosted',$errorsAlreadyPosted);
        }
 
+
        public static function display($s_title,$s_message,$i_type = INFO_DIALOG)
        {
                new msg_dialog($s_title,$s_message,$i_type);    
        }
 
+
+       public static function displayChecks($messages)
+       {
+               /* Assemble the message array to a plain string */
+               foreach ($messages as $error){
+                       msg_dialog::display(_("Error"), $error, ERROR_DIALOG);
+               }
+       }
+
+
        public function get_ID()
        {
                return($this->i_ID);