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
c8e5c3e4
Commit
c8e5c3e4
authored
Sep 21, 2006
by
pookey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pookey: fixes #92
parent
0ad201e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Chain.php
Doctrine/EventListener/Chain.php
+7
-5
No files found.
Doctrine/EventListener/Chain.php
View file @
c8e5c3e4
...
...
@@ -12,7 +12,7 @@ class Doctrine_EventListener_Chain extends Doctrine_Access {
* @param Doctrine_EventListener $listener
* @return void
*/
public
function
add
(
Doctrine_EventListener
$listener
)
{
public
function
add
Listener
(
Doctrine_EventListener
$listener
)
{
$this
->
listeners
[]
=
$listener
;
}
/**
...
...
@@ -22,7 +22,7 @@ class Doctrine_EventListener_Chain extends Doctrine_Access {
* @param mixed $key
* @return mixed
*/
public
function
get
(
$key
)
{
public
function
get
Listener
(
$key
)
{
if
(
!
isset
(
$this
->
listeners
[
$key
]))
return
null
;
...
...
@@ -35,7 +35,7 @@ class Doctrine_EventListener_Chain extends Doctrine_Access {
* @param Doctrine_EventListener $listener
* @return void
*/
public
function
set
(
$key
,
Doctrine_EventListener
$listener
)
{
public
function
set
Listener
(
$key
,
Doctrine_EventListener
$listener
)
{
$this
->
listeners
[
$key
]
=
$listener
;
}
...
...
@@ -97,13 +97,15 @@ class Doctrine_EventListener_Chain extends Doctrine_Access {
public
function
onGetProperty
(
Doctrine_Record
$record
,
$property
,
$value
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onGetProperty
(
$record
,
$property
,
$value
);
$
value
=
$
listener
->
onGetProperty
(
$record
,
$property
,
$value
);
}
return
$value
;
}
public
function
onSetProperty
(
Doctrine_Record
$record
,
$property
,
$value
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onSetProperty
(
$record
,
$property
,
$value
);
$
value
=
$
listener
->
onSetProperty
(
$record
,
$property
,
$value
);
}
return
$value
;
}
public
function
onInsert
(
Doctrine_Record
$record
)
{
...
...
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