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
a6d05624
Commit
a6d05624
authored
Oct 18, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed versionable template to adhere to generic plugin structure
parent
ea5e58fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
AuditLog.php
lib/Doctrine/AuditLog.php
+0
-2
Versionable.php
lib/Doctrine/Template/Versionable.php
+6
-8
No files found.
lib/Doctrine/AuditLog.php
View file @
a6d05624
...
@@ -39,8 +39,6 @@ class Doctrine_AuditLog extends Doctrine_Plugin
...
@@ -39,8 +39,6 @@ class Doctrine_AuditLog extends Doctrine_Plugin
'pluginTable'
=>
false
,
'pluginTable'
=>
false
,
);
);
protected
$_auditTable
;
public
function
__construct
(
$options
)
public
function
__construct
(
$options
)
{
{
$this
->
_options
=
array_merge
(
$this
->
_options
,
$options
);
$this
->
_options
=
array_merge
(
$this
->
_options
,
$options
);
...
...
lib/Doctrine/Template/Versionable.php
View file @
a6d05624
...
@@ -31,21 +31,19 @@
...
@@ -31,21 +31,19 @@
*/
*/
class
Doctrine_Template_Versionable
extends
Doctrine_Template
class
Doctrine_Template_Versionable
extends
Doctrine_Template
{
{
protected
$_auditLog
;
public
function
__construct
(
array
$options
)
public
function
__construct
(
array
$options
)
{
{
$this
->
_
auditLog
=
new
Doctrine_AuditLog
(
$options
);
$this
->
_
plugin
=
new
Doctrine_AuditLog
(
$options
);
}
}
public
function
setUp
()
public
function
setUp
()
{
{
$this
->
_
auditLog
->
setOption
(
'table'
,
$this
->
_table
);
$this
->
_
plugin
->
setOption
(
'table'
,
$this
->
_table
);
$this
->
_
auditLog
->
buildDefinition
(
$this
->
_table
);
$this
->
_
plugin
->
buildDefinition
(
$this
->
_table
);
$this
->
addListener
(
new
Doctrine_AuditLog_Listener
(
$this
->
_
auditLog
));
$this
->
addListener
(
new
Doctrine_AuditLog_Listener
(
$this
->
_
plugin
));
}
}
public
function
getAuditLog
()
public
function
getAuditLog
()
{
{
return
$this
->
_
auditLog
;
return
$this
->
_
plugin
;
}
}
}
}
\ No newline at end of file
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