Corrected Doctrine_EventListener method names. Fixes #366
This commit is contained in:
parent
d4bc0d3637
commit
741cc3f045
@ -280,15 +280,15 @@ class Doctrine_Cache extends Doctrine_EventListener implements Countable, Iterat
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* onPreQuery
|
* preQuery
|
||||||
* listens on the Doctrine_Event onPreQuery event
|
* listens on the Doctrine_Event preQuery event
|
||||||
*
|
*
|
||||||
* adds the issued query to internal query stack
|
* adds the issued query to internal query stack
|
||||||
* and checks if cached element exists
|
* and checks if cached element exists
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public function onPreQuery(Doctrine_Event $event)
|
public function preQuery(Doctrine_Event $event)
|
||||||
{
|
{
|
||||||
$query = $event->getQuery();
|
$query = $event->getQuery();
|
||||||
|
|
||||||
@ -324,42 +324,42 @@ class Doctrine_Cache extends Doctrine_EventListener implements Countable, Iterat
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* onPreFetch
|
* preFetch
|
||||||
* listens the onPreFetch event of Doctrine_Connection_Statement
|
* listens the preFetch event of Doctrine_Connection_Statement
|
||||||
*
|
*
|
||||||
* advances the internal pointer of cached data and returns
|
* advances the internal pointer of cached data and returns
|
||||||
* the current element
|
* the current element
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function onPreFetch(Doctrine_Event $event)
|
public function preFetch(Doctrine_Event $event)
|
||||||
{
|
{
|
||||||
$ret = current($this->_data);
|
$ret = current($this->_data);
|
||||||
next($this->_data);
|
next($this->_data);
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* onPreFetch
|
* preFetch
|
||||||
* listens the onPreFetchAll event of Doctrine_Connection_Statement
|
* listens the preFetchAll event of Doctrine_Connection_Statement
|
||||||
*
|
*
|
||||||
* returns the current cache data array
|
* returns the current cache data array
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function onPreFetchAll(Doctrine_Event $event)
|
public function preFetchAll(Doctrine_Event $event)
|
||||||
{
|
{
|
||||||
return $this->_data;
|
return $this->_data;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* onPreExecute
|
* preExecute
|
||||||
* listens the onPreExecute event of Doctrine_Connection_Statement
|
* listens the preExecute event of Doctrine_Connection_Statement
|
||||||
*
|
*
|
||||||
* adds the issued query to internal query stack
|
* adds the issued query to internal query stack
|
||||||
* and checks if cached element exists
|
* and checks if cached element exists
|
||||||
*
|
*
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public function onPreExecute(Doctrine_Event $event)
|
public function preExecute(Doctrine_Event $event)
|
||||||
{
|
{
|
||||||
$query = $event->getQuery();
|
$query = $event->getQuery();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user