diff options
Diffstat (limited to 'h-source/Application/Controllers')
-rw-r--r-- | h-source/Application/Controllers/DownloadController.php | 20 |
1 files changed, 19 insertions, 1 deletions
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<it_works>".$row['hardware']['wifi_works']."</it_works>\n"; } + if ($type === 'soundcard') + { + $xml .= "\t\t<it_works>".$row['hardware']['sound_card_works']."</it_works>\n"; + } + if ($type === 'notebook' or $type === 'videocard') { $xml .= "\t\t<videocard_works>".$row['hardware']['video_card_works']."</videocard_works>\n"; @@ -117,7 +122,7 @@ class DownloadController extends BaseController $xml .= "\t\t<webcam_works>".$row['hardware']['webcam_works']."</webcam_works>\n"; } - if ($type === 'printer' or $type === 'scanner') + if ($type === 'printer' or $type === 'scanner' or $type === 'soundcard') { $xml .= "\t\t<driver>".$row['hardware']['driver']."</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 |