summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorBjörn Geiger2011-08-09 14:28:45 +0200
committerBjörn Geiger2011-08-09 14:28:45 +0200
commit3b86ac61cc158b7756436f5607b409b94f0af1d1 (patch)
tree68c431ee4e05a11f694c1d57985d710ff5ee0214 /application
parentminor (diff)
downloadpbs2-3b86ac61cc158b7756436f5607b409b94f0af1d1.tar.gz
pbs2-3b86ac61cc158b7756436f5607b409b94f0af1d1.tar.xz
pbs2-3b86ac61cc158b7756436f5607b409b94f0af1d1.zip
erzeugte BootMenus, Filter und Filterentries werden als XML zurückgegeben
Diffstat (limited to 'application')
-rw-r--r--application/controllers/ResourceController.php37
1 files changed, 34 insertions, 3 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index af824c7..6dd3923 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -199,7 +199,15 @@ class ResourceController extends Zend_Controller_Action
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
$xml .= "<xml>\n";
- $xml .= "\t<filterid>" . $filter->getID() . "</filterid>\n";
+ $xml .= "\t<filter>\n";
+ $xml .= "\t\t<id>" . $filter->getID() . "</id>\n";
+ $xml .= "\t\t<bootmenuid>" . $filter->getBootmenuID() . "</bootmenuid>\n";
+ $xml .= "\t\t<created>" . $filter->getCreated() . "</created>\n";
+ $xml .= "\t\t<description>" . $filter->getDescription() . "</description>\n";
+ $xml .= "\t\t<membershipid>" . $filter->getMembershipID() . "</membershipid>\n";
+ $xml .= "\t\t<priority>" . $filter->getPriority() . "</priority>\n";
+ $xml .= "\t\t<title>" . $filter->getTitle() . "</title>\n";
+ $xml .= "\t</filter>\n";
$xml .= "</xml>";
header('Content-Type: text/xml');
@@ -232,7 +240,13 @@ class ResourceController extends Zend_Controller_Action
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
$xml .= "<xml>\n";
- $xml .= "\t<filterentryid>" . $filterentries->getID() . "</filterentryid>\n";
+ $xml .= "\t<filterentry>\n";
+ $xml .= "\t\t<id>" . $filterentries->getID() . "</id>\n";
+ $xml .= "\t\t<filterid>" . $filterentries->getFilterID() . "</filterid>\n";
+ $xml .= "\t\t<filtertypeid>" . $filterentries->getFiltertypeID() . "</filtertypeid>\n";
+ $xml .= "\t\t<filtervalue>" . $filterentries->getFiltervalue() . "</filtervalue>\n";
+ $xml .= "\t\t<filtervalue2>" . $filterentries->getFiltervalue2() . "</filtervalue2>\n";
+ $xml .= "\t</filterentry>\n";
$xml .= "</xml>";
header('Content-Type: text/xml');
@@ -313,7 +327,24 @@ class ResourceController extends Zend_Controller_Action
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
$xml .= "<xml>\n";
- $xml .= "\t<bootmenuid>" . $bootmenu->getID() . "</bootmenuid>\n";
+ $xml .= "\t<bootmenu>\n";
+ $xml .= "\t\t<id>" . $bootmenu->getID() . "</id>\n";
+ $xml .= "\t\t<created>" . $bootmenu->getCreated() . "</created>\n";
+ $xml .= "\t\t<groupid>" . $bootmenu->getGroupID() . "</groupid>\n";
+ $xml .= "\t\t<membershipid>" . $bootmenu->getMembershipID() . "</membershipid>\n";
+ $xml .= "\t\t<startcounter>" . $bootmenu->getStartcounter() . "</startcounter>\n";
+ $xml .= "\t\t<defaultbootmenu>" . $bootmenu->getDefaultbootmenu() . "</defaultbootmenu>\n";
+ $xml .= "\t\t<title>" . $bootmenu->getTitle() . "</title>\n";
+ $xml .= "\t\t<bootmenuentry>\n";
+ $xml .= "\t\t\t<id>" . $bootmenuentries->getID() . "</id>\n";
+ $xml .= "\t\t\t<bootosid>" . $bootmenuentries->getBootosID() . "</bootosid>\n";
+ $xml .= "\t\t\t<configid>" . $bootmenuentries->getConfigID() . "</configid>\n";
+ $xml .= "\t\t\t<kcl>" . $bootmenuentries->getKcl() . "</kcl>\n";
+ $xml .= "\t\t\t<kclappend>" . $bootmenuentries->getKclappend() . "</kclappend>\n";
+ $xml .= "\t\t\t<order>" . $bootmenuentries->getOrder() . "</order>\n";
+ $xml .= "\t\t\t<title>" . $bootmenuentries->getTitle() . "</title>\n";
+ $xml .= "\t\t</bootmenuentry>\n";
+ $xml .= "\t</bootmenu>\n";
$xml .= "</xml>";
header('Content-Type: text/xml');