public static function raise($type, $message, $jname = '') {
		if (is_array($message)) {
			foreach ($message as $msgtype => $msg) {
				//if still an array implode for nicer display
				if (is_numeric($msgtype)) {
					$msgtype = $jname;
				}
				static::raise($type, $msg, $msgtype);
			}
		} else {
			$app = Application::getInstance();
			if ($message instanceof Exception) {
				$message = $message->getMessage();
			}
			if (!empty($jname)) {
				$message = $jname . ': ' . $message;
			}
			$app->enqueueMessage($message, strtolower($type));
		}
	}
public static function raise($type, $message, $jname = '') {
		if (is_array($message)) {
			foreach ($message as $msgtype => $msg) {
				//if still an array implode for nicer display
				if (is_numeric($msgtype)) {
					$msgtype = $jname;
				}
				static::raise($type, $msg, $msgtype);
			}
		} else {
			$app = Application::getInstance();
			if ($message instanceof Exception) {
				$message = $message->getMessage();
			}
			if (!empty($jname)) {
				$message = $jname . ': ' . $message;
			}
			$app->enqueueMessage($message, strtolower($type));
		}
	}
public static function raise ( $ type , $ message , $ jname = '' ) { if ( is_array ( $ message ) ) { foreach ( $ message as $ msgtype => $ msg ) { //if still an array implode for nicer display if ( is_numeric ( $ msgtype ) ) { $ msgtype = $ jname ; } static :: raise ( $ type , $ msg , $ msgtype ) ; } } else { $ app = Application :: getInstance ( ) ; if ( $ message instanceof Exception ) { $ message = $ message -> getMessage ( ) ; } if ( ! empty ( $ jname ) ) { $ message = $ jname . ': ' . $ message ; } $ app -> enqueueMessage ( $ message , strtolower ( $ type ) ) ; } }
Raise warning function that can handle arrays

@param        $type
@param array|string|Exception  $message   message itself
@param string $jname

@return string nothing
Raise warning function that can handle arrays