Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
741cc3f0
Commit
741cc3f0
authored
Jun 26, 2007
by
subzero2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected Doctrine_EventListener method names. Fixes #366
parent
d4bc0d36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
Cache.php
lib/Doctrine/Cache.php
+12
-12
No files found.
lib/Doctrine/Cache.php
View file @
741cc3f0
...
...
@@ -280,15 +280,15 @@ class Doctrine_Cache extends Doctrine_EventListener implements Countable, Iterat
}
}
/**
*
onP
reQuery
* listens on the Doctrine_Event
onP
reQuery event
*
p
reQuery
* listens on the Doctrine_Event
p
reQuery event
*
* adds the issued query to internal query stack
* and checks if cached element exists
*
* @return boolean
*/
public
function
onP
reQuery
(
Doctrine_Event
$event
)
public
function
p
reQuery
(
Doctrine_Event
$event
)
{
$query
=
$event
->
getQuery
();
...
...
@@ -324,42 +324,42 @@ class Doctrine_Cache extends Doctrine_EventListener implements Countable, Iterat
return
false
;
}
/**
*
onP
reFetch
* listens the
onP
reFetch event of Doctrine_Connection_Statement
*
p
reFetch
* listens the
p
reFetch event of Doctrine_Connection_Statement
*
* advances the internal pointer of cached data and returns
* the current element
*
* @return array
*/
public
function
onP
reFetch
(
Doctrine_Event
$event
)
public
function
p
reFetch
(
Doctrine_Event
$event
)
{
$ret
=
current
(
$this
->
_data
);
next
(
$this
->
_data
);
return
$ret
;
}
/**
*
onP
reFetch
* listens the
onP
reFetchAll event of Doctrine_Connection_Statement
*
p
reFetch
* listens the
p
reFetchAll event of Doctrine_Connection_Statement
*
* returns the current cache data array
*
* @return array
*/
public
function
onP
reFetchAll
(
Doctrine_Event
$event
)
public
function
p
reFetchAll
(
Doctrine_Event
$event
)
{
return
$this
->
_data
;
}
/**
*
onP
reExecute
* listens the
onP
reExecute event of Doctrine_Connection_Statement
*
p
reExecute
* listens the
p
reExecute event of Doctrine_Connection_Statement
*
* adds the issued query to internal query stack
* and checks if cached element exists
*
* @return boolean
*/
public
function
onP
reExecute
(
Doctrine_Event
$event
)
public
function
p
reExecute
(
Doctrine_Event
$event
)
{
$query
=
$event
->
getQuery
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment