lib/ezdb/classes/ezdbinterface.php
function reportQuery( $class, $sql, $numRows, $timeTaken, $asDebug = false )
    {
        $rowText = '';
        if ( $numRows !== false ) $rowText = "$numRows rows, ";

        $backgroundClass = ($this->TransactionCounter > 0  ? "debugtransaction transactionlevel-$this->TransactionCounter" : '');
        if ( $asDebug )
            eZDebug::writeDebug( "$sql", "$class::query($rowText" . number_format( $timeTaken, 3 ) . ' ms) query number per page:' . $this->NumQueries++, $backgroundClass );
        else
            eZDebug::writeNotice( "$sql", "$class::query($rowText" . number_format( $timeTaken, 3 ) . ' ms) query number per page:' . $this->NumQueries++, $backgroundClass );
    }
function reportQuery( $class, $sql, $numRows, $timeTaken, $asDebug = false )
    {
        $rowText = '';
        if ( $numRows !== false ) $rowText = "$numRows rows, ";

        $backgroundClass = ($this->TransactionCounter > 0  ? "debugtransaction transactionlevel-$this->TransactionCounter" : '');
        if ( $asDebug )
            eZDebug::writeDebug( "$sql", "$class::query($rowText" . number_format( $timeTaken, 3 ) . ' ms) query number per page:' . $this->NumQueries++, $backgroundClass );
        else
            eZDebug::writeNotice( "$sql", "$class::query($rowText" . number_format( $timeTaken, 3 ) . ' ms) query number per page:' . $this->NumQueries++, $backgroundClass );
    }
function reportQuery ( $ class , $ sql , $ numRows , $ timeTaken , $ asDebug = false ) { $ rowText = '' ; if ( $ numRows !== false ) $ rowText = "$numRows rows, " ; $ backgroundClass = ( $ this -> TransactionCounter > 0 ? "debugtransaction transactionlevel-$this->TransactionCounter" : '' ) ; if ( $ asDebug ) eZDebug :: writeDebug ( "$sql" , "$class::query($rowText" . number_format ( $ timeTaken , 3 ) . ' ms) query number per page:' . $ this -> NumQueries ++ , $ backgroundClass ) ; else eZDebug :: writeNotice ( "$sql" , "$class::query($rowText" . number_format ( $ timeTaken , 3 ) . ' ms) query number per page:' . $ this -> NumQueries ++ , $ backgroundClass ) ; }
Writes a debug notice with query information.

@access private
@param string $class
@param string $sql
@param int|string $numRows
@param int|string $timeTaken
@param bool $asDebug
Writes a debug notice with query information .