39 public const PASS =
'PASS';
42 public const FAIL =
'FAIL';
55 public const UI =
'UI';
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 deals with fetching and processing of interface message into a variety of formats.