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
ff504050
Commit
ff504050
authored
Jul 04, 2006
by
doctrine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
e905680f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
56 deletions
+59
-56
EventListener.php
Doctrine/EventListener.php
+2
-56
Chain.php
Doctrine/EventListener/Chain.php
+2
-0
Interface.php
Doctrine/EventListener/Interface.php
+55
-0
No files found.
Doctrine/EventListener.php
View file @
ff504050
<?php
/**
* interface for event listening, forces all classes that extend
* Doctrine_EventListener to have the same method arguments as their parent
*/
interface
iDoctrine_EventListener
{
public
function
onLoad
(
Doctrine_Record
$record
);
public
function
onPreLoad
(
Doctrine_Record
$record
);
public
function
onUpdate
(
Doctrine_Record
$record
);
public
function
onPreUpdate
(
Doctrine_Record
$record
);
public
function
onCreate
(
Doctrine_Record
$record
);
public
function
onPreCreate
(
Doctrine_Record
$record
);
public
function
onSave
(
Doctrine_Record
$record
);
public
function
onPreSave
(
Doctrine_Record
$record
);
public
function
onInsert
(
Doctrine_Record
$record
);
public
function
onPreInsert
(
Doctrine_Record
$record
);
public
function
onDelete
(
Doctrine_Record
$record
);
public
function
onPreDelete
(
Doctrine_Record
$record
);
public
function
onEvict
(
Doctrine_Record
$record
);
public
function
onPreEvict
(
Doctrine_Record
$record
);
public
function
onSaveCascade
(
Doctrine_Record
$record
);
public
function
onPreSaveCascade
(
Doctrine_Record
$record
);
public
function
onDeleteCascade
(
Doctrine_Record
$record
);
public
function
onPreDeleteCascade
(
Doctrine_Record
$record
);
public
function
onSleep
(
Doctrine_Record
$record
);
public
function
onWakeUp
(
Doctrine_Record
$record
);
public
function
onClose
(
Doctrine_Session
$session
);
public
function
onPreClose
(
Doctrine_Session
$session
);
public
function
onOpen
(
Doctrine_Session
$session
);
public
function
onTransactionCommit
(
Doctrine_Session
$session
);
public
function
onPreTransactionCommit
(
Doctrine_Session
$session
);
public
function
onTransactionRollback
(
Doctrine_Session
$session
);
public
function
onPreTransactionRollback
(
Doctrine_Session
$session
);
public
function
onTransactionBegin
(
Doctrine_Session
$session
);
public
function
onPreTransactionBegin
(
Doctrine_Session
$session
);
public
function
onCollectionDelete
(
Doctrine_Collection
$collection
);
public
function
onPreCollectionDelete
(
Doctrine_Collection
$collection
);
}
Doctrine
::
autoload
(
'Doctrine_EventListener_Interface'
);
/**
* Doctrine_EventListener all event listeners extend this base class
* the empty methods allow child classes to only implement the methods they need to implement
...
...
@@ -66,7 +12,7 @@ interface iDoctrine_EventListener {
* @version 1.0 alpha
*
*/
abstract
class
Doctrine_EventListener
implements
iDoctrine_EventListener
{
abstract
class
Doctrine_EventListener
implements
Doctrine_EventListener_Interface
{
public
function
onLoad
(
Doctrine_Record
$record
)
{
}
public
function
onPreLoad
(
Doctrine_Record
$record
)
{
}
...
...
Doctrine/EventListener/Chain.php
View file @
ff504050
<?php
Doctrine
::
autoload
(
'Doctrine_Access'
);
class
Doctrine_EvenListener_Chain
extends
Doctrine_Access
{
/**
* @var array $listeners
...
...
Doctrine/EventListener/Interface.php
0 → 100644
View file @
ff504050
<?php
/**
* interface for event listening, forces all classes that extend
* Doctrine_EventListener to have the same method arguments as their parent
*/
interface
Doctrine_EventListener_Interface
{
public
function
onLoad
(
Doctrine_Record
$record
);
public
function
onPreLoad
(
Doctrine_Record
$record
);
public
function
onUpdate
(
Doctrine_Record
$record
);
public
function
onPreUpdate
(
Doctrine_Record
$record
);
public
function
onCreate
(
Doctrine_Record
$record
);
public
function
onPreCreate
(
Doctrine_Record
$record
);
public
function
onSave
(
Doctrine_Record
$record
);
public
function
onPreSave
(
Doctrine_Record
$record
);
public
function
onInsert
(
Doctrine_Record
$record
);
public
function
onPreInsert
(
Doctrine_Record
$record
);
public
function
onDelete
(
Doctrine_Record
$record
);
public
function
onPreDelete
(
Doctrine_Record
$record
);
public
function
onEvict
(
Doctrine_Record
$record
);
public
function
onPreEvict
(
Doctrine_Record
$record
);
public
function
onSaveCascade
(
Doctrine_Record
$record
);
public
function
onPreSaveCascade
(
Doctrine_Record
$record
);
public
function
onDeleteCascade
(
Doctrine_Record
$record
);
public
function
onPreDeleteCascade
(
Doctrine_Record
$record
);
public
function
onSleep
(
Doctrine_Record
$record
);
public
function
onWakeUp
(
Doctrine_Record
$record
);
public
function
onClose
(
Doctrine_Session
$session
);
public
function
onPreClose
(
Doctrine_Session
$session
);
public
function
onOpen
(
Doctrine_Session
$session
);
public
function
onTransactionCommit
(
Doctrine_Session
$session
);
public
function
onPreTransactionCommit
(
Doctrine_Session
$session
);
public
function
onTransactionRollback
(
Doctrine_Session
$session
);
public
function
onPreTransactionRollback
(
Doctrine_Session
$session
);
public
function
onTransactionBegin
(
Doctrine_Session
$session
);
public
function
onPreTransactionBegin
(
Doctrine_Session
$session
);
public
function
onCollectionDelete
(
Doctrine_Collection
$collection
);
public
function
onPreCollectionDelete
(
Doctrine_Collection
$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