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
eb8b3915
Commit
eb8b3915
authored
Oct 26, 2007
by
meus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed getRecord/Collection as xml. removed old obtainIdentifiers function and fixed count call
parent
db10d4a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
Lib.php
lib/Doctrine/Lib.php
+3
-6
No files found.
lib/Doctrine/Lib.php
View file @
eb8b3915
...
@@ -88,7 +88,7 @@ class Doctrine_Lib
...
@@ -88,7 +88,7 @@ class Doctrine_Lib
public
static
function
getCollectionAsXml
(
Doctrine_Collection
$collection
,
SimpleXMLElement
$incomming_xml
=
null
)
{
public
static
function
getCollectionAsXml
(
Doctrine_Collection
$collection
,
SimpleXMLElement
$incomming_xml
=
null
)
{
$collectionName
=
Doctrine_Lib
::
plurelize
(
$collection
->
getTable
()
->
tableName
);
$collectionName
=
Doctrine_Lib
::
plurelize
(
$collection
->
getTable
()
->
tableName
);
if
(
$collection
->
count
!=
0
)
{
if
(
$collection
->
count
()
!=
0
)
{
$record
=
$collection
[
0
];
$record
=
$collection
[
0
];
$xml_options
=
$record
->
option
(
"xml"
);
$xml_options
=
$record
->
option
(
"xml"
);
if
(
isset
(
$xml_options
[
"collection_name"
]))
{
if
(
isset
(
$xml_options
[
"collection_name"
]))
{
...
@@ -136,9 +136,6 @@ class Doctrine_Lib
...
@@ -136,9 +136,6 @@ class Doctrine_Lib
}
else
{
}
else
{
$xml
=
$incomming_xml
->
addChild
(
$recordname
);
$xml
=
$incomming_xml
->
addChild
(
$recordname
);
}
}
foreach
(
$record
->
obtainIdentifier
()
as
$pk_field
=>
$pk_value
)
{
$xml
->
addChild
(
$pk_field
,
$pk_value
);
}
$xml_options
=
$record
->
option
(
"xml"
);
$xml_options
=
$record
->
option
(
"xml"
);
if
(
isset
(
$xml_options
[
"record_name"
]))
{
if
(
isset
(
$xml_options
[
"record_name"
]))
{
$recordname
=
$xml_options
[
"record_name"
];
$recordname
=
$xml_options
[
"record_name"
];
...
...
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