src/SmartFactory/MessageManager.php
public function setWarning($message, $details = "")
    {
        if (empty($message)) {
            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["warnings"][$message] = ["message" => $message, "details" => $details];
    }
public function setWarning($message, $details = "")
    {
        if (empty($message)) {
            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["warnings"][$message] = ["message" => $message, "details" => $details];
    }
public function setWarning ( $ message , $ details = "" ) { if ( empty ( $ message ) ) { 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 [ "warnings" ] [ $ message ] = [ "message" => $ message , "details" => $ details ] ; }
Stores the warning to be reported.

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

@param string $details
The 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 getWarnings()
@see clearWarnings()
@see warningsExist()

@author Oleg Schildt
Stores the warning to be reported .