From d63c9b18a6919c23840ed92f3ff4675f24f31a96 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sat, 25 Dec 2010 11:15:21 +0000 Subject: added soundcards - part 2 --- .../Application/Controllers/DownloadController.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'h-source/Application/Controllers') diff --git a/h-source/Application/Controllers/DownloadController.php b/h-source/Application/Controllers/DownloadController.php index 2015ce7..c3a9661 100644 --- a/h-source/Application/Controllers/DownloadController.php +++ b/h-source/Application/Controllers/DownloadController.php @@ -107,6 +107,11 @@ class DownloadController extends BaseController $xml .= "\t\t".$row['hardware']['wifi_works']."\n"; } + if ($type === 'soundcard') + { + $xml .= "\t\t".$row['hardware']['sound_card_works']."\n"; + } + if ($type === 'notebook' or $type === 'videocard') { $xml .= "\t\t".$row['hardware']['video_card_works']."\n"; @@ -117,7 +122,7 @@ class DownloadController extends BaseController $xml .= "\t\t".$row['hardware']['webcam_works']."\n"; } - if ($type === 'printer' or $type === 'scanner') + if ($type === 'printer' or $type === 'scanner' or $type === 'soundcard') { $xml .= "\t\t".$row['hardware']['driver']."\n"; } @@ -224,4 +229,17 @@ class DownloadController extends BaseController $this->clean(); $this->load('xml'); } + + public function soundcards($lang = 'en') + { + header ("Content-Type:text/xml"); + + $res = $this->m['HardwareModel']->clear()->select()->where(array('type'=>'soundcard','-deleted'=>'no'))->orderBy("type,hardware.id_hard")->send(); + + $data['xml'] = $this->getXml($res); + + $this->append($data); + $this->clean(); + $this->load('xml'); + } } \ No newline at end of file -- cgit v1.2.3