src/SmartFactory/MessageManager.php
public function setProgWarning($message, $details = "")
    {
        if (empty($message) || !$this->progWarningsActive()) {
            return;
        }
        
        // we keep messages in the session
        // until we are sure they are shown
        // otherwise some messages may be lost
        // because of redirection
        self::$session_vars["prog_warnings"][$message] = ["message" => $message, "details" => $details];
    }
public function setProgWarning($message, $details = "")
    {
        if (empty($message) || !$this->progWarningsActive()) {
            return;
        }
        
        // we keep messages in the session
        // until we are sure they are shown
        // otherwise some messages may be lost
        // because of redirection
        self::$session_vars["prog_warnings"][$message] = ["message" => $message, "details" => $details];
    }
public function setProgWarning ( $ message , $ details = "" ) { if ( empty ( $ message ) || ! $ this -> progWarningsActive ( ) ) { return ; } // we keep messages in the session // until we are sure they are shown // otherwise some messages may be lost // because of redirection self :: $ session_vars [ "prog_warnings" ] [ $ message ] = [ "message" => $ message , "details" => $ details ] ; }
Stores the programming warning to be reported.

Programming warnings are shown only if the option
"show programming warning" is active.

@param string $message
The programming warning message to be reported.

@param string $details
The programming warning details to be reported. Here, more
technical details should be placed. Displaying
of this part might be controlled over a option
"display message details".

@return void

@see getProgWarnings()
@see clearProgWarnings()
@see progWarningsExist()

@author Oleg Schildt
Stores the programming warning to be reported .