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
56e2d362
Commit
56e2d362
authored
Jun 25, 2007
by
nicobn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coding standard compliance
parent
9c9597fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Xml.php
lib/Doctrine/Import/Xml.php
+9
-9
No files found.
lib/Doctrine/Import/X
ML
.php
→
lib/Doctrine/Import/X
ml
.php
View file @
56e2d362
...
...
@@ -36,27 +36,27 @@
* @version $Revision$
* @author Nicolas Bérard-Nault <nicobn@gmail.com>
*/
abstract
class
Doctrine_Import_XML
class
Doctrine_Import_Xml
{
/**
* importObj
*
* A method to import a XML Schema and translate it into a Doctrine_Record object
*
* @param string $
S
chema The file containing the XML schema
* @param string $
D
irectory The directory where the Doctrine_Record classes will
* @param string $
s
chema The file containing the XML schema
* @param string $
d
irectory The directory where the Doctrine_Record classes will
* be written
* @static
*/
public
static
function
importObj
(
$Schema
,
$D
irectory
)
public
function
importObj
(
$schema
,
$d
irectory
)
{
$Builder
=
new
Doctrine_Import_Builder
();
$Builder
->
setTargetPath
(
$
D
irectory
);
$Builder
->
setTargetPath
(
$
d
irectory
);
$Arr
=
self
::
importArr
(
$
S
chema
);
$Arr
=
self
::
importArr
(
$
s
chema
);
foreach
(
$
Arr
as
$Name
=>
$C
olumns
)
{
$Builder
->
buildRecord
(
$
Name
,
$C
olumns
);
foreach
(
$
arr
as
$name
=>
$c
olumns
)
{
$Builder
->
buildRecord
(
$
name
,
$c
olumns
);
}
}
...
...
@@ -66,7 +66,7 @@ abstract class Doctrine_Import_XML
* A method to import a XML Schema and translate it into a property array.
* The function returns that property array.
*
* @param string $
S
chema Path to the file containing the XML schema
* @param string $
s
chema Path to the file containing the XML schema
* @return array
* @static
*/
...
...
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