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
0ad201e5
Commit
0ad201e5
authored
Sep 21, 2006
by
pookey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pookey: fixes to eventlistner chain
parent
84aef7c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
Chain.php
Doctrine/EventListener/Chain.php
+16
-17
No files found.
Doctrine/EventListener/Chain.php
View file @
0ad201e5
...
...
@@ -38,12 +38,10 @@ class Doctrine_EventListener_Chain extends Doctrine_Access {
public
function
set
(
$key
,
Doctrine_EventListener
$listener
)
{
$this
->
listeners
[
$key
]
=
$listener
;
}
public
function
onLoad
(
Doctrine_Record
$record
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onLoad
(
$record
);
$listener
->
onLoad
(
$record
);
}
}
public
function
onPreLoad
(
Doctrine_Record
$record
)
{
...
...
@@ -99,12 +97,12 @@ class Doctrine_EventListener_Chain extends Doctrine_Access {
public
function
onGetProperty
(
Doctrine_Record
$record
,
$property
,
$value
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onGetProperty
(
$record
);
$listener
->
onGetProperty
(
$record
,
$property
,
$value
);
}
}
public
function
onSetProperty
(
Doctrine_Record
$record
,
$property
,
$value
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onSetProperty
(
$record
);
$listener
->
onSetProperty
(
$record
,
$property
,
$value
);
}
}
...
...
@@ -165,62 +163,63 @@ class Doctrine_EventListener_Chain extends Doctrine_Access {
public
function
onClose
(
Doctrine_Connection
$connection
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onClose
(
$
record
);
$listener
->
onClose
(
$
connection
);
}
}
public
function
onPreClose
(
Doctrine_Connection
$connection
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onPreClose
(
$
record
);
$listener
->
onPreClose
(
$
connection
);
}
}
public
function
onOpen
(
Doctrine_Connection
$connection
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onOpen
(
$
record
);
$listener
->
onOpen
(
$
connection
);
}
}
public
function
onTransactionCommit
(
Doctrine_Connection
$connection
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onTransactionCommit
(
$
record
);
$listener
->
onTransactionCommit
(
$
connection
);
}
}
public
function
onPreTransactionCommit
(
Doctrine_Connection
$connection
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onPreTransactionCommit
(
$
record
);
$listener
->
onPreTransactionCommit
(
$
connection
);
}
}
public
function
onTransactionRollback
(
Doctrine_Connection
$connection
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onTransactionRollback
(
$
record
);
$listener
->
onTransactionRollback
(
$
connection
);
}
}
public
function
onPreTransactionRollback
(
Doctrine_Connection
$connection
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onPreTransactionRollback
(
$
record
);
$listener
->
onPreTransactionRollback
(
$
connection
);
}
}
public
function
onTransactionBegin
(
Doctrine_Connection
$connection
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onTransactionBegin
(
$
record
);
$listener
->
onTransactionBegin
(
$
connection
);
}
}
public
function
onPreTransactionBegin
(
Doctrine_Connection
$connection
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onPreTransactionBegin
(
$
record
);
$listener
->
onPreTransactionBegin
(
$
connection
);
}
}
public
function
onCollectionDelete
(
Doctrine_Collection
$collection
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onCollectionDelete
(
$record
);
}
}
public
function
onPreCollectionDelete
(
Doctrine_Collection
$collection
)
{
foreach
(
$this
->
listeners
as
$listener
)
{
$listener
->
onPreCollectionDelete
(
$
record
);
$listener
->
onPreCollectionDelete
(
$
collection
);
}
}
}
...
...
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