src/SmartFactory/MessageManager.php
public function setInfo($message, $details = "", $auto_hide = false)
    {
        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["infos"][$message] = [
            "message" => $message,
            "details" => $details,
            "auto_hide" => $auto_hide
        ];
    }
public function setInfo($message, $details = "", $auto_hide = false)
    {
        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["infos"][$message] = [
            "message" => $message,
            "details" => $details,
            "auto_hide" => $auto_hide
        ];
    }
public function setInfo ( $ message , $ details = "" , $ auto_hide = false ) { 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 [ "infos" ] [ $ message ] = [ "message" => $ message , "details" => $ details , "auto_hide" => $ auto_hide ] ; }
Stores the information message to be reported.

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

@param string $details
The information 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".

@param boolean $auto_hide
The flag that controls whether the message box should be closed
automatically after a time defined by the initialization.

@return void

@see getInfos()
@see clearInfos()
@see infosExist()

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