Piwik\Notification\Manager::getSession PHP Method

getSession() private static method

private static getSession ( ) : Piwik\Session\SessionNamespace
return Piwik\Session\SessionNamespace
    private static function getSession()
    {
        if (!isset(static::$session)) {
            static::$session = new SessionNamespace('notification');
        }
        if (empty(static::$session->notifications) && self::isSessionEnabled()) {
            static::$session->notifications = array();
        }
        return static::$session;
    }