aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/DownloadController.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-10-17 22:26:06 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-10-17 22:26:06 +0000
commit7d294873ca1b9705652592523210f543e73ec1e1 (patch)
treefc2ddac6f9d7b47c1eb0d799ebb82ac078e63fd4 /h-source/Application/Controllers/DownloadController.php
parent9d3f161ae35d1413d18977bef6341456af6d6c7d (diff)
added modems category - michael issue
Diffstat (limited to 'h-source/Application/Controllers/DownloadController.php')
-rw-r--r--h-source/Application/Controllers/DownloadController.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/h-source/Application/Controllers/DownloadController.php b/h-source/Application/Controllers/DownloadController.php
index bc433c4..8767f6b 100644
--- a/h-source/Application/Controllers/DownloadController.php
+++ b/h-source/Application/Controllers/DownloadController.php
@@ -136,7 +136,7 @@ class DownloadController extends BaseController
$xml .= "\t\t<it_works>".$row['hardware']['video_card_works']."</it_works>\n";
}
- if ($type === 'acquisition-card')
+ if ($type === 'acquisition-card' or $type === 'modem')
{
$xml .= "\t\t<it_works>".$row['hardware']['compatibility']."</it_works>\n";
}
@@ -163,8 +163,8 @@ class DownloadController extends BaseController
$xml .= "\t\t<description><![CDATA[".$row['hardware']['description']."]]></description>\n";
- $xml .= "\t\t<link>".$this->baseUrl."/".MyStrings::$reverse[$type]."/view/".$this->lang."/".$row['hardware']['id_hard']."/".encodeUrl($row['hardware']['model'])."</link>\n";
- $xml .= "\t\t<created_by>".$this->baseUrl."/".MyStrings::$reverse[$type]."/history/".$this->lang."/".$row['hardware']['id_hard']."</created_by>\n";
+ $xml .= "\t\t<link>".$this->baseUrl."/".Hardware::getControllerFromType($type)."/view/".$this->lang."/".$row['hardware']['id_hard']."/".encodeUrl($row['hardware']['model'])."</link>\n";
+ $xml .= "\t\t<created_by>".$this->baseUrl."/".Hardware::getControllerFromType($type)."/history/".$this->lang."/".$row['hardware']['id_hard']."</created_by>\n";
$xml .= "\t</device>\n";
}
@@ -256,4 +256,10 @@ class DownloadController extends BaseController
{
$this->printXml($lang, array('type'=>'sd-card-reader','-deleted'=>'no'));
}
+
+ public function modems($lang = 'en')
+ {
+ $this->printXml($lang, array('type'=>'modem','-deleted'=>'no'));
+ }
+
} \ No newline at end of file