src/SmartFactory/MessageManager.php
public function setDebugMessage($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["debug"][$message] = ["message" => $message, "details" => $details];
    }
public function setDebugMessage($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["debug"][$message] = ["message" => $message, "details" => $details];
    }
public function setDebugMessage ( $ 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 [ "debug" ] [ $ message ] = [ "message" => $ message , "details" => $ details ] ; }
Stores the debugging message to be reported.

Displaying of the debugging messages might be
implemented to simplify the debugging process,
e.g. to the browser console or in a lightbox.

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

@param string $details
The debugging message 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 getDebugMessages()
@see clearDebugMessages()
@see debugMessageExists()

@author Oleg Schildt
Stores the debugging message to be reported .