diff options
| author | Antonio Gallo <tonicucoz@gmail.com> | 2011-03-06 16:13:52 +0000 | 
|---|---|---|
| committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-03-06 16:13:52 +0000 | 
| commit | b588efb71e62470d96a85528960a7e2385e934b0 (patch) | |
| tree | 70a5b003edca35feb5b271157e57f2ad895e68b7 /h-source/Application/Controllers/DownloadController.php | |
| parent | 0a1bbc3293fc57494286a13b520aac77028993b9 (diff) | |
improved DownloadController
Diffstat (limited to 'h-source/Application/Controllers/DownloadController.php')
| -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 72292f6..f79fe7e 100644 --- a/h-source/Application/Controllers/DownloadController.php +++ b/h-source/Application/Controllers/DownloadController.php @@ -113,6 +113,11 @@ class DownloadController extends BaseController  				$xml .= "\t\t<it_works>".$row['hardware']['sound_card_works']."</it_works>\n";  			} +			if ($type === 'bluetooth') +			{ +				$xml .= "\t\t<it_works>".$row['hardware']['bluetooth_works']."</it_works>\n"; +			} +  			if ($type === 'webcam')  			{  				$xml .= "\t\t<it_works>".$row['hardware']['webcam_works']."</it_works>\n"; @@ -123,7 +128,7 @@ class DownloadController extends BaseController  				$xml .= "\t\t<it_works>".$row['hardware']['video_card_works']."</it_works>\n";  			} -			if ($type === 'printer' or $type === 'scanner' or $type === 'soundcard' or $type === 'webcam') +			if ($type === 'printer' or $type === 'scanner' or $type === 'soundcard' or $type === 'webcam' or $type === 'bluetooth')  			{  				$xml .= "\t\t<driver>".$row['hardware']['driver']."</driver>\n";  			} @@ -257,4 +262,17 @@ class DownloadController extends BaseController  		$this->clean();  		$this->load('xml');  	} + +	public function bluetooth($lang = 'en') +	{ +		header ("Content-Type:text/xml"); + +		$res = $this->m['HardwareModel']->clear()->select()->where(array('type'=>'bluetooth','-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  | 
