public function loadHistory()
    {
        $key = $this->options['session_key'];
        if (isset($_SESSION['CDatabase'])) {
            self::$numQueries = $_SESSION[$key]['numQueries'];
            self::$queries    = $_SESSION[$key]['queries'];
            self::$params     = $_SESSION[$key]['params'];
            unset($_SESSION[$key]);
        }
    }
public function loadHistory()
    {
        $key = $this->options['session_key'];
        if (isset($_SESSION['CDatabase'])) {
            self::$numQueries = $_SESSION[$key]['numQueries'];
            self::$queries    = $_SESSION[$key]['queries'];
            self::$params     = $_SESSION[$key]['params'];
            unset($_SESSION[$key]);
        }
    }
public function loadHistory ( ) { $ key = $ this -> options [ 'session_key' ] ; if ( isset ( $ _SESSION [ 'CDatabase' ] ) ) { self :: $ numQueries = $ _SESSION [ $ key ] [ 'numQueries' ] ; self :: $ queries = $ _SESSION [ $ key ] [ 'queries' ] ; self :: $ params = $ _SESSION [ $ key ] [ 'params' ] ; unset ( $ _SESSION [ $ key ] ) ; } }
Load query-history from session if available.

@return int number of database queries made.
Load query - history from session if available .