summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/controllers/ResourceController.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index ab7ec52..3868433 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -750,6 +750,7 @@ class ResourceController extends Zend_Controller_Action
$bootos = new Application_Model_BootOs();
$bootosMapper = new Application_Model_BootOsMapper();
+ $configsMapper = new Application_Model_ConfigMapper();
$groupID = $this->membership->getGroupID();
$bootos = $bootosMapper->findBy(array('groupid' => $groupID));
@@ -778,6 +779,23 @@ class ResourceController extends Zend_Controller_Action
$xml .= "\t\t\t<distroversion>" . $bootosobj->getDistroversion() . "</distroversion>\n";
$xml .= "\t\t\t<shortname>" . $bootosobj->getShortname() . "</shortname>\n";
$xml .= "\t\t\t<share>" . $bootosobj->getShare() . "</share>\n";
+ $xml .= "\t\t\t<configs>\n";
+ $configs = $configsMapper->findBy(array('bootosID' => $bootosobj->getID()));
+ if(is_array($configs)) {
+ foreach($configs as $config) {
+ if($config->getVisible()) {
+ $xml .= "\t\t\t\t<config>\n";
+ $xml .= "\t\t\t\t<configid>" . $config->getID() . "</configid>\n";
+ $xml .= "\t\t\t\t<title>" . $config->getTitle() . "</title>\n";
+ $xml .= "\t\t\t\<description>" . $config->getDescription() . "</description>\n";
+ $xml .= "\t\t\t\<groupid>" . $config->getGroupID() . "</groupid>\n";
+ $xml .= "\t\t\t\<membershipid>" . $config->getGroupID() . "</membershipid>\n";
+ $xml .= "\t\t\t\<created>" . $config->getGroupID() . "</created>\n";
+ $xml .= "\t\t\t\t</config>\n";
+ }
+ }
+ }
+ $xml .= "\t\t\t</configs>\n";
$xml .= "\t\t</bootos>\n";
}
$xml .= "\t</bootoslist>\n";