Habari\Session::get_notice PHP Метод

get_notice() публичный статический Метод

Retrieve a specific notice from stored errors.
public static get_notice ( string $key, boolean $clear = true ) : string
$key string ID of the notice to retrieve
$clear boolean true to clear the notice from the session upon receipt
Результат string Return the notice message
    public static function get_notice($key, $clear = true)
    {
        $notices = self::get_notices(false);
        if (isset($notices[$key])) {
            $notice = $notices[$key];
            if ($clear) {
                self::remove_notice($key);
            }
            return $notice;
        }
    }