src/View/Messages.php
public function addMessage($key, array $args = array())
    {
        // We will only display these messages once.
        if (isset($this->keys[$key]) === false) {
            // Add it to the keys, so the CMS can display it.
            $this->keys[$key] = array('key' => $key, 'params' => $args);
            $this->messages[] = $this->getHelp($key, $args);
        }
    }
public function addMessage($key, array $args = array())
    {
        // We will only display these messages once.
        if (isset($this->keys[$key]) === false) {
            // Add it to the keys, so the CMS can display it.
            $this->keys[$key] = array('key' => $key, 'params' => $args);
            $this->messages[] = $this->getHelp($key, $args);
        }
    }
public function addMessage ( $ key , array $ args = array ( ) ) { // We will only display these messages once. if ( isset ( $ this -> keys [ $ key ] ) === false ) { // Add it to the keys, so the CMS can display it. $ this -> keys [ $ key ] = array ( 'key' => $ key , 'params' => $ args ) ; $ this -> messages [ ] = $ this -> getHelp ( $ key , $ args ) ; } }
The message we want to add. It will be displayed in the output.

@param string $key
The message itself.
@param array $args
The parameters for vsprintf().
The message we want to add . It will be displayed in the output .