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
7a2fec88
Commit
7a2fec88
authored
Jan 23, 2008
by
jwage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formatting fixes.
parent
02c57f59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
Builder.php
lib/Doctrine/Migration/Builder.php
+12
-12
No files found.
lib/Doctrine/Migration/Builder.php
View file @
7a2fec88
...
...
@@ -40,7 +40,7 @@ class Doctrine_Migration_Builder
*
* @var string
*/
private
$migrationsPath
=
''
;
private
$
_
migrationsPath
=
''
;
/**
* suffix
...
...
@@ -49,16 +49,16 @@ class Doctrine_Migration_Builder
*
* @var string $suffix
*/
private
$suffix
=
'.class.php'
;
private
$
_
suffix
=
'.class.php'
;
/**
* tpl
*
* Class template used for writing classes
*
* @var $tpl
* @var $
_
tpl
*/
private
static
$tpl
;
private
static
$
_
tpl
;
/**
* __construct
...
...
@@ -71,7 +71,7 @@ class Doctrine_Migration_Builder
$this
->
setMigrationsPath
(
$migrationsPath
);
}
$this
->
loadTemplate
();
$this
->
_
loadTemplate
();
}
/**
...
...
@@ -84,7 +84,7 @@ class Doctrine_Migration_Builder
{
Doctrine_Lib
::
makeDirectories
(
$path
);
$this
->
migrationsPath
=
$path
;
$this
->
_
migrationsPath
=
$path
;
}
/**
...
...
@@ -94,7 +94,7 @@ class Doctrine_Migration_Builder
*/
public
function
getMigrationsPath
()
{
return
$this
->
migrationsPath
;
return
$this
->
_
migrationsPath
;
}
/**
...
...
@@ -104,13 +104,13 @@ class Doctrine_Migration_Builder
*
* @return void
*/
protected
function
loadTemplate
()
protected
function
_
loadTemplate
()
{
if
(
isset
(
self
::
$tpl
))
{
if
(
isset
(
self
::
$
_
tpl
))
{
return
;
}
self
::
$tpl
=<<<
END
self
::
$
_
tpl
=<<<
END
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
...
...
@@ -267,7 +267,7 @@ END;
$migration
=
new
Doctrine_Migration
(
$this
->
getMigrationsPath
());
$next
=
(
string
)
$migration
->
getNextVersion
();
$fileName
=
str_repeat
(
'0'
,
(
3
-
strlen
(
$next
)))
.
$next
.
'_'
.
Doctrine
::
tableize
(
$className
)
.
$this
->
suffix
;
$fileName
=
str_repeat
(
'0'
,
(
3
-
strlen
(
$next
)))
.
$next
.
'_'
.
Doctrine
::
tableize
(
$className
)
.
$this
->
_
suffix
;
$class
=
$this
->
buildMigrationClass
(
$className
,
$fileName
,
$options
,
$up
,
$down
);
...
...
@@ -288,7 +288,7 @@ END;
$content
=
'<?php'
.
PHP_EOL
;
$content
.=
sprintf
(
self
::
$tpl
,
$className
,
$content
.=
sprintf
(
self
::
$
_
tpl
,
$className
,
$extends
,
$up
,
$down
);
...
...
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