diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-04-19 15:24:36 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-04-19 15:24:36 +0000 |
commit | 930a411469143eab9ee3922fc628c7d0b5665438 (patch) | |
tree | 67254eacb9eb81c64497d9e48795a53bfa5e3477 /h-source/Application/Controllers/DownloadController.php | |
parent | 931861e0513be7e110fc1d98e366cbd4efb831ce (diff) |
h-source:added acquisition cards and fingerptint readers - part 2
Diffstat (limited to 'h-source/Application/Controllers/DownloadController.php')
-rw-r--r-- | h-source/Application/Controllers/DownloadController.php | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/h-source/Application/Controllers/DownloadController.php b/h-source/Application/Controllers/DownloadController.php index fba20f0..bfc4346 100644 --- a/h-source/Application/Controllers/DownloadController.php +++ b/h-source/Application/Controllers/DownloadController.php @@ -92,7 +92,7 @@ class DownloadController extends BaseController { $xml .= "\t\t<compatibility>".$row['hardware']['compatibility']."</compatibility>\n"; } - + if ($type === 'notebook') { $xml .= "\t\t<wifi_card>".$row['hardware']['wifi_type']."</wifi_card>\n"; @@ -128,7 +128,17 @@ class DownloadController extends BaseController $xml .= "\t\t<it_works>".$row['hardware']['video_card_works']."</it_works>\n"; } - $devicesWithDriverEntry = array('printer','scanner','soundcard','webcam','bluetooth','wifi','videocard'); + if ($type === 'acquisition-card') + { + $xml .= "\t\t<it_works>".$row['hardware']['compatibility']."</it_works>\n"; + } + + if ($type === 'fingerprint-reader') + { + $xml .= "\t\t<it_works>".$row['hardware']['fingerprint_works']."</it_works>\n"; + } + + $devicesWithDriverEntry = array('printer','scanner','soundcard','webcam','bluetooth','wifi','videocard','acquisition-card','fingerprint-reader'); if (in_array($type,$devicesWithDriverEntry)) { $xml .= "\t\t<driver>".$row['hardware']['driver']."</driver>\n"; @@ -209,5 +219,14 @@ class DownloadController extends BaseController { $this->printXml($lang, array('type'=>'bluetooth','-deleted'=>'no')); } - + + public function acquisitioncards($lang = 'en') + { + $this->printXml($lang, array('type'=>'acquisition-card','-deleted'=>'no')); + } + + public function fingerprintreaders($lang = 'en') + { + $this->printXml($lang, array('type'=>'fingerprint-reader','-deleted'=>'no')); + } }
\ No newline at end of file |