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
d4cbba72
Commit
d4cbba72
authored
Jun 25, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
612793d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
183 deletions
+0
-183
Debugger.php
lib/Doctrine/EventListener/Debugger.php
+0
-183
No files found.
lib/Doctrine/EventListener/Debugger.php
deleted
100644 → 0
View file @
612793d9
<?php
Doctrine
::
autoload
(
"EventListener"
);
class
Doctrine_DebugMessage
{
private
$code
;
private
$object
;
public
function
__construct
(
$object
,
$code
)
{
$this
->
object
=
$object
;
$this
->
code
=
$code
;
}
final
public
function
getCode
()
{
return
$this
->
code
;
}
final
public
function
getObject
()
{
return
$this
->
object
;
}
}
class
Doctrine_EventListener_Debugger
extends
Doctrine_EventListener
{
const
EVENT_LOAD
=
1
;
const
EVENT_PRELOAD
=
2
;
const
EVENT_SLEEP
=
3
;
const
EVENT_WAKEUP
=
4
;
const
EVENT_UPDATE
=
5
;
const
EVENT_PREUPDATE
=
6
;
const
EVENT_CREATE
=
7
;
const
EVENT_PRECREATE
=
8
;
const
EVENT_SAVE
=
9
;
const
EVENT_PRESAVE
=
10
;
const
EVENT_INSERT
=
11
;
const
EVENT_PREINSERT
=
12
;
const
EVENT_DELETE
=
13
;
const
EVENT_PREDELETE
=
14
;
const
EVENT_EVICT
=
15
;
const
EVENT_PREEVICT
=
16
;
const
EVENT_CLOSE
=
17
;
const
EVENT_PRECLOSE
=
18
;
const
EVENT_OPEN
=
19
;
const
EVENT_COMMIT
=
20
;
const
EVENT_PRECOMMIT
=
21
;
const
EVENT_ROLLBACK
=
22
;
const
EVENT_PREROLLBACK
=
23
;
const
EVENT_BEGIN
=
24
;
const
EVENT_PREBEGIN
=
25
;
const
EVENT_COLLDELETE
=
26
;
const
EVENT_PRECOLLDELETE
=
27
;
private
$debug
;
public
function
getMessages
()
{
return
$this
->
debug
;
}
public
function
onLoad
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_LOAD
);
}
public
function
onPreLoad
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_PRELOAD
);
}
public
function
onSleep
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_SLEEP
);
}
public
function
onWakeUp
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_WAKEUP
);
}
public
function
onUpdate
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_UPDATE
);
}
public
function
onPreUpdate
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_PREUPDATE
);
}
public
function
onCreate
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_CREATE
);
}
public
function
onPreCreate
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_PRECREATE
);
}
public
function
onSave
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_SAVE
);
}
public
function
onPreSave
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_PRESAVE
);
}
public
function
onInsert
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_INSERT
);
}
public
function
onPreInsert
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_PREINSERT
);
}
public
function
onDelete
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_DELETE
);
}
public
function
onPreDelete
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_PREDELETE
);
}
public
function
onEvict
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_EVICT
);
}
public
function
onPreEvict
(
Doctrine_Record
$record
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$record
,
self
::
EVENT_PREEVICT
);
}
public
function
onClose
(
Doctrine_Connection
$connection
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$connection
,
self
::
EVENT_CLOSE
);
}
public
function
onPreClose
(
Doctrine_Connection
$connection
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$connection
,
self
::
EVENT_PRECLOSE
);
}
public
function
onOpen
(
Doctrine_Connection
$connection
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$connection
,
self
::
EVENT_OPEN
);
}
public
function
onTransactionCommit
(
Doctrine_Connection
$connection
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$connection
,
self
::
EVENT_COMMIT
);
}
public
function
onPreTransactionCommit
(
Doctrine_Connection
$connection
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$connection
,
self
::
EVENT_PRECOMMIT
);
}
public
function
onTransactionRollback
(
Doctrine_Connection
$connection
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$connection
,
self
::
EVENT_ROLLBACK
);
}
public
function
onPreTransactionRollback
(
Doctrine_Connection
$connection
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$connection
,
self
::
EVENT_PREROLLBACK
);
}
public
function
onTransactionBegin
(
Doctrine_Connection
$connection
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$connection
,
self
::
EVENT_BEGIN
);
}
public
function
onPreTransactionBegin
(
Doctrine_Connection
$connection
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$connection
,
self
::
EVENT_PREBEGIN
);
}
public
function
onCollectionDelete
(
Doctrine_Collection
$collection
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$collection
,
self
::
EVENT_COLLDELETE
);
}
public
function
onPreCollectionDelete
(
Doctrine_Collection
$collection
)
{
$this
->
debug
[]
=
new
Doctrine_DebugMessage
(
$collection
,
self
::
EVENT_PRECOLLDELETE
);
}
}
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