public function logQueries($enable = null)
    {
        if ($enable !== null) {
            $this->_logQueries = $enable;
        }

        if ($this->_logQueries) {
            return $this->_logQueries;
        }

        return $this->_logQueries = $enable;
    }
public function logQueries($enable = null)
    {
        if ($enable !== null) {
            $this->_logQueries = $enable;
        }

        if ($this->_logQueries) {
            return $this->_logQueries;
        }

        return $this->_logQueries = $enable;
    }
public function logQueries ( $ enable = null ) { if ( $ enable !== null ) { $ this -> _logQueries = $ enable ; } if ( $ this -> _logQueries ) { return $ this -> _logQueries ; } return $ this -> _logQueries = $ enable ; }
Enables or disables query logging for this connection.

@param bool $enable whether to turn logging on or disable it.
Use null to read current value.
@return bool
Enables or disables query logging for this connection .