public function saveHistory($extra = null)
    {
        if (!is_null($extra)) {
            self::$queries[] = $extra;
            self::$params[] = null;
        }

        self::$queries[] = 'Saved query-history to session.';
        self::$params[] = null;

        $key = $this->options['session_key'];
        $_SESSION[$key]['numQueries'] = self::$numQueries;
        $_SESSION[$key]['queries']    = self::$queries;
        $_SESSION[$key]['params']     = self::$params;
    }
public function saveHistory($extra = null)
    {
        if (!is_null($extra)) {
            self::$queries[] = $extra;
            self::$params[] = null;
        }

        self::$queries[] = 'Saved query-history to session.';
        self::$params[] = null;

        $key = $this->options['session_key'];
        $_SESSION[$key]['numQueries'] = self::$numQueries;
        $_SESSION[$key]['queries']    = self::$queries;
        $_SESSION[$key]['params']     = self::$params;
    }
public function saveHistory ( $ extra = null ) { if ( ! is_null ( $ extra ) ) { self :: $ queries [ ] = $ extra ; self :: $ params [ ] = null ; } self :: $ queries [ ] = 'Saved query-history to session.' ; self :: $ params [ ] = null ; $ key = $ this -> options [ 'session_key' ] ; $ _SESSION [ $ key ] [ 'numQueries' ] = self :: $ numQueries ; $ _SESSION [ $ key ] [ 'queries' ] = self :: $ queries ; $ _SESSION [ $ key ] [ 'params' ] = self :: $ params ; }
Save query-history in session, useful as a flashmemory when redirecting to another page.

@param string $extra enables to save some extra debug information.

@return void
Save query - history in session useful as a flashmemory when redirecting to another page .