public function notifyUser($type, array $messages, $translate = true)
    {
        if( $translate ) {
            $messages = $this->translateMessages( $messages );
        }

        $this->addParameter( 'messageType', $type );
        $this->addParameter( 'messages', $messages );
    }
public function notifyUser($type, array $messages, $translate = true)
    {
        if( $translate ) {
            $messages = $this->translateMessages( $messages );
        }

        $this->addParameter( 'messageType', $type );
        $this->addParameter( 'messages', $messages );
    }
public function notifyUser ( $ type , array $ messages , $ translate = true ) { if ( $ translate ) { $ messages = $ this -> translateMessages ( $ messages ) ; } $ this -> addParameter ( 'messageType' , $ type ) ; $ this -> addParameter ( 'messages' , $ messages ) ; }
Add a notification for the user to the parameter array

@param   string $type        Type of the notification
@param   array $messages     Array of message or translation keys that are to be shown to the user
@param   bool $translate     Indicate whether or not the messages should be translated
Add a notification for the user to the parameter array