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
0a2ecb60
Commit
0a2ecb60
authored
Nov 01, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Class renaming.
parent
a8ac66dd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
Sluggable.php
lib/Doctrine/Template/Listener/Sluggable.php
+4
-2
Timestampable.php
lib/Doctrine/Template/Listener/Timestampable.php
+2
-2
Timestampable.php
lib/Doctrine/Template/Timestampable.php
+1
-1
No files found.
lib/Doctrine/Template/Listener/Sluggable.php
View file @
0a2ecb60
...
...
@@ -61,8 +61,10 @@ class Doctrine_Template_Listener_Sluggable extends Doctrine_Record_Listener
$name
=
$this
->
_options
[
'name'
];
$record
=
$event
->
getInvoker
();
$record
->
$name
=
$this
->
buildSlug
(
$record
);
if
(
!
$record
->
$name
)
{
$record
->
$name
=
$this
->
buildSlug
(
$record
);
}
}
protected
function
buildSlug
(
$record
)
...
...
lib/Doctrine/Template/Listener/Timestampable.php
View file @
0a2ecb60
...
...
@@ -20,7 +20,7 @@
*/
/**
* Doctrine_T
imestampable_Listener
* Doctrine_T
emplate_Listener_Timestampable
*
* @package Doctrine
* @subpackage Template
...
...
@@ -30,7 +30,7 @@
* @version $Revision$
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
*/
class
Doctrine_T
imestampable_Listener
extends
Doctrine_Record_Listener
class
Doctrine_T
emplate_Listener_Timestampable
extends
Doctrine_Record_Listener
{
/**
* Array of timestampable options
...
...
lib/Doctrine/Template/Timestampable.php
View file @
0a2ecb60
...
...
@@ -69,6 +69,6 @@ class Doctrine_Template_Timestampable extends Doctrine_Template
$this
->
hasColumn
(
$this
->
_options
[
'created'
][
'name'
],
$this
->
_options
[
'created'
][
'type'
],
null
,
$this
->
_options
[
'created'
][
'name'
]);
$this
->
hasColumn
(
$this
->
_options
[
'updated'
][
'name'
],
$this
->
_options
[
'updated'
][
'type'
],
null
,
$this
->
_options
[
'updated'
][
'name'
]);
$this
->
addListener
(
new
Doctrine_T
imestampable_Listener
(
$this
->
_options
));
$this
->
addListener
(
new
Doctrine_T
emplate_Listener_Timestampable
(
$this
->
_options
));
}
}
\ 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