constructor
Parameters:
API Tags:
void add(
string|array
$query, [string
$namespace = null]
)
|
|
add adds a query to internal query stack
Parameters:
string|array |
$query: |
sql query string |
string |
$namespace: |
connection namespace |
API Tags:
appendStats
adds all queries to stats file
API Tags:
count
API Tags:
Return: | the number of queries in the stack |
Access: | public |
Implementation of:
- Countable::count
array getAll(
[string
$namespace = null]
)
|
|
getQueries
Parameters:
string |
$namespace: |
optional query namespace |
API Tags:
Return: | an array of sql query strings |
Access: | public |
getDriver returns the current cache driver
API Tags:
ArrayIterator getIterator(
)
|
|
getIterator
API Tags:
Return: | an iterator that iterates through the query stack |
Access: | public |
Implementation of:
- IteratorAggregate::getIterator
mixed getOption(
mixed
$option
)
|
|
getOption
Parameters:
mixed |
$option: |
the option name |
API Tags:
Return: | option value |
Access: | public |
API Tags:
Return: | whether or not the last cache operation was successful |
Access: | public |
pop
pops a query from the stack
API Tags:
preExecute listens the preExecute event of Doctrine_Connection_Statement
adds the issued query to internal query stack and checks if cached element exists
Parameters:
API Tags:
preFetch listens the preFetch event of Doctrine_Connection_Statement
advances the internal pointer of cached data and returns the current element
Parameters:
API Tags:
Redefinition of:
- Doctrine_EventListener::preFetch()
preFetch listens the preFetchAll event of Doctrine_Connection_Statement
returns the current cache data array
Parameters:
API Tags:
Redefinition of:
- Doctrine_EventListener::preFetchAll()
preQuery listens on the Doctrine_Event preQuery event
adds the issued query to internal query stack and checks if cached element exists
Parameters:
API Tags:
Redefinition of:
- Doctrine_EventListener::preQuery()
reset
removes all queries from the query stack
API Tags:
boolean setOption(
mixed
$option, mixed
$value
)
|
|
setOption
Parameters:
mixed |
$option: |
the option name |
mixed |
$value: |
option value |
API Tags:
Return: | TRUE on success, FALSE on failure |
Access: | public |