149 $ret->message = $msg;
150 $ret->messageType =
'error';
162 $ret->message = $msg;
183 public static function newUI( array $reqs,
Message $msg, $msgtype =
'warning' ) {
185 throw new \InvalidArgumentException(
'$reqs may not be empty' );
187 if ( $msgtype !==
'warning' && $msgtype !==
'error' ) {
188 throw new \InvalidArgumentException( $msgtype .
' is not a valid message type.' );
193 $ret->neededRequests = $reqs;
194 $ret->message = $msg;
195 $ret->messageType = $msgtype;
208 throw new \InvalidArgumentException(
'$reqs may not be empty' );
213 $ret->neededRequests = $reqs;
The Message class provides methods which fulfil two basic services:
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses & $ret