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
a690adfb
Commit
a690adfb
authored
Jul 21, 2007
by
meus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing so taht getName uses the correct constants
parent
5d79089d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
11 deletions
+41
-11
Event.php
lib/Doctrine/Event.php
+41
-11
No files found.
lib/Doctrine/Event.php
View file @
a690adfb
...
...
@@ -52,7 +52,7 @@ class Doctrine_Event
const
SAVEPOINT_ROLLBACK
=
35
;
const
SAVEPOINT_COMMIT
=
36
;
/*
*
/*
* RECORD EVENT CODES
*/
const
RECORD_DELETE
=
21
;
...
...
@@ -123,22 +123,52 @@ class Doctrine_Event
public
function
getName
()
{
switch
(
$this
->
_code
)
{
case
self
::
QUERY
:
case
self
::
CONN_
QUERY
:
return
'query'
;
case
self
::
EXEC
:
case
self
::
CONN_
EXEC
:
return
'exec'
;
case
self
::
EXECUTE
:
return
'execute'
;
case
self
::
PREPARE
:
case
self
::
CONN_PREPARE
:
return
'prepare'
;
case
self
::
BEGIN
:
case
self
::
CONN_CONNECT
:
return
'connect'
;
case
self
::
CONN_CLOSE
:
return
'close'
;
case
self
::
CONN_ERROR
:
return
'error'
;
case
self
::
STMT_EXECUTE
:
return
'execute'
;
case
self
::
STMT_FETCH
:
return
'fetch'
;
case
self
::
STMT_FETCHALL
:
return
'fetch all'
;
case
self
::
TX_BEGIN
:
return
'begin'
;
case
self
::
COMMIT
:
case
self
::
TX_
COMMIT
:
return
'commit'
;
case
self
::
ROLLBACK
:
case
self
::
TX_
ROLLBACK
:
return
'rollback'
;
case
self
::
CONNECT
:
return
'connect'
;
case
self
::
SAVEPOINT_CREATE
:
return
'create savepoint'
;
case
self
::
SAVEPOINT_ROLLBACK
:
return
'rollback savepoint'
;
case
self
::
SAVEPOINT_COMMIT
:
return
'commit Ssavepoint'
;
case
self
::
RECORD_DELETE
:
return
'delete record'
;
case
self
::
RECORD_SAVE
:
return
'save record'
;
case
self
::
RECORD_UPDATE
:
return
'update record'
;
case
self
::
RECORD_INSERT
:
return
'insert record'
;
case
self
::
RECORD_SERIALIZE
:
return
'serialize record'
;
case
self
::
RECORD_UNSERIALIZE
:
return
'unserialize 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