src/SmartFactory/MessageManager.php
public function addMessagesToResponse(&$response)
    {
        if ($this->infosExist()) {
            $response["INFO_MESSAGES"] = $this->getInfos();
        }
        
        if ($this->warningsExist()) {
            $response["WARNING_MESSAGES"] = $this->getWarnings();
        }
        
        if ($this->errorsExist()) {
            $response["ERROR_MESSAGES"] = $this->getErrors();
        }
        
        if ($this->progWarningsExist()) {
            $response["PROG_WARNINGS"] = $this->getProgWarnings();
        }
        
        if ($this->debugMessageExists()) {
            $response["DEBUG_MESSAGES"] = $this->getDebugMessages();
        }
        
        $response["AUTO_HIDE_TIME"] = $this->getAutoHideTime();
        
        $response["FOCUS_ELEMENT"] = $this->getFocusElement();
        
        $response["ACTIVE_TAB"] = $this->getActiveTab();
        
        $response["ERROR_ELEMENT"] = $this->getErrorElement();
    }
public function addMessagesToResponse(&$response)
    {
        if ($this->infosExist()) {
            $response["INFO_MESSAGES"] = $this->getInfos();
        }
        
        if ($this->warningsExist()) {
            $response["WARNING_MESSAGES"] = $this->getWarnings();
        }
        
        if ($this->errorsExist()) {
            $response["ERROR_MESSAGES"] = $this->getErrors();
        }
        
        if ($this->progWarningsExist()) {
            $response["PROG_WARNINGS"] = $this->getProgWarnings();
        }
        
        if ($this->debugMessageExists()) {
            $response["DEBUG_MESSAGES"] = $this->getDebugMessages();
        }
        
        $response["AUTO_HIDE_TIME"] = $this->getAutoHideTime();
        
        $response["FOCUS_ELEMENT"] = $this->getFocusElement();
        
        $response["ACTIVE_TAB"] = $this->getActiveTab();
        
        $response["ERROR_ELEMENT"] = $this->getErrorElement();
    }
public function addMessagesToResponse ( & $ response ) { if ( $ this -> infosExist ( ) ) { $ response [ "INFO_MESSAGES" ] = $ this -> getInfos ( ) ; } if ( $ this -> warningsExist ( ) ) { $ response [ "WARNING_MESSAGES" ] = $ this -> getWarnings ( ) ; } if ( $ this -> errorsExist ( ) ) { $ response [ "ERROR_MESSAGES" ] = $ this -> getErrors ( ) ; } if ( $ this -> progWarningsExist ( ) ) { $ response [ "PROG_WARNINGS" ] = $ this -> getProgWarnings ( ) ; } if ( $ this -> debugMessageExists ( ) ) { $ response [ "DEBUG_MESSAGES" ] = $ this -> getDebugMessages ( ) ; } $ response [ "AUTO_HIDE_TIME" ] = $ this -> getAutoHideTime ( ) ; $ response [ "FOCUS_ELEMENT" ] = $ this -> getFocusElement ( ) ; $ response [ "ACTIVE_TAB" ] = $ this -> getActiveTab ( ) ; $ response [ "ERROR_ELEMENT" ] = $ this -> getErrorElement ( ) ; }
Add all stored existing messages to the response.

When the messages are requested, it is assumed they will be displayed. Thus,
the message array is cleared to avoid displaying of the same messages twice.

@param string $response
The target array where the messages should be added.

@return void

@author Oleg Schildt
Add all stored existing messages to the response .