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

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

Removes a specific notice from the stored notices.
public static remove_notice ( string $key ) : boolean
$key string ID of the notice to remove
Результат boolean True or false depending if the notice was removed successfully.
    public static function remove_notice($key)
    {
        unset($_SESSION['notices'][$key]);
        return !isset($_SESSION['notices'][$key]) ? true : false;
    }