Method | Description | |
---|---|---|
deleteMessages ( ) | Clean the bag by removing all messages | |
getMessage ( array $message ) : mixed | Get the message text | |
getMessageType ( array $message ) : mixed | Get the message type of a message get by getMessages | |
getMessages ( ) : array | Get all messages as an array | |
hasMessages ( ) : boolean | Tell whether or not this bag has pending messages | |
writeComment ( string $s ) : void | Add a comment message | |
writeError ( string $s ) : void | Add an error message | |
writeInfo ( string $s ) : void | Add an info message | |
writeLine ( string $s ) : void | Add a simple message | |
writeQuestion ( string $s ) : void | Add a question message |
Method | Description | |
---|---|---|
cleanMessage ( string $m ) : string | Trim and remove all XML tags |
protected cleanMessage ( string $m ) : string | ||
$m | string | the message to clean |
return | string |
public getMessage ( array $message ) : mixed | ||
$message | array | |
return | mixed |
public getMessageType ( array $message ) : mixed | ||
$message | array | |
return | mixed |
public getMessages ( ) : array | ||
return | array |
public hasMessages ( ) : boolean | ||
return | boolean |
public writeComment ( string $s ) : void | ||
$s | string | the message to display |
return | void |
public writeError ( string $s ) : void | ||
$s | string | the message to display |
return | void |
public writeQuestion ( string $s ) : void | ||
$s | string | the message to display |
return | void |