Public Member Functions | Protected Attributes

Zend_Db_Profiler_Query Class Reference

Public Member Functions

 __construct ($query, $queryType)
 __clone ()
 start ()
 end ()
 hasEnded ()
 getQuery ()
 getQueryType ()
 bindParam ($param, $variable)
 bindParams (array $params)
 getQueryParams ()
 getElapsedSecs ()

Protected Attributes

 $_query = ''
 $_queryType = 0
 $_startedMicrotime = null
 $_endedMicrotime = null
 $_boundParams = array()

Detailed Description

Definition at line 31 of file Query.php.


Constructor & Destructor Documentation

__construct ( query,
queryType 
)

Class constructor. A query is about to be started, save the query text ($query) and its type (one of the Zend_Db_Profiler::* constants).

Parameters:
string$query
integer$queryType
Returns:
void

Definition at line 79 of file Query.php.


Member Function Documentation

__clone (  )

Clone handler for the query object.

Returns:
void

Definition at line 91 of file Query.php.

bindParam ( param,
variable 
)
Parameters:
string$param
mixed$variable
Returns:
void

Definition at line 156 of file Query.php.

bindParams ( array $  params )
Parameters:
array$param
Returns:
void

Definition at line 165 of file Query.php.

end (  )

Ends the query and records the time so that the elapsed time can be determined later.

Returns:
void

Definition at line 116 of file Query.php.

getElapsedSecs (  )

Get the elapsed time (in seconds) that the query ran. If the query has not yet ended, false is returned.

Returns:
float|false

Definition at line 190 of file Query.php.

getQuery (  )

Get the original SQL text of the query.

Returns:
string

Definition at line 136 of file Query.php.

getQueryParams (  )
Returns:
array

Definition at line 179 of file Query.php.

getQueryType (  )

Get the type of this query (one of the Zend_Db_Profiler::* constants)

Returns:
integer

Definition at line 146 of file Query.php.

hasEnded (  )

Returns true if and only if the query has ended.

Returns:
boolean

Definition at line 126 of file Query.php.

start (  )

Starts the elapsed time click ticking. This can be called subsequent to object creation, to restart the clock. For instance, this is useful right before executing a prepared query.

Returns:
void

Definition at line 106 of file Query.php.


The documentation for this class was generated from the following file: