From fef5c074223364eb32032a5787ea824fcbadc4fe Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 2 Oct 2011 17:35:41 +0000 Subject: added sd card readers --- h-source/Application/Include/hardware.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'h-source/Application/Include/hardware.php') diff --git a/h-source/Application/Include/hardware.php b/h-source/Application/Include/hardware.php index 2e5cb0e..e919326 100644 --- a/h-source/Application/Include/hardware.php +++ b/h-source/Application/Include/hardware.php @@ -42,7 +42,7 @@ class Hardware return $string; } - public static $controllers = array('notebooks','wifi','videocards','printers','scanners','threegcards','soundcards','webcams','bluetooth','acquisitioncards','fingerprintreaders','ethernetcards'); //used by UsersController::login() + public static $controllers = array('notebooks','wifi','videocards','printers','scanners','threegcards','soundcards','webcams','bluetooth','acquisitioncards','fingerprintreaders','ethernetcards','sdcardreaders'); //used by UsersController::login() //classId => controller public static $deviceClasses = array( @@ -68,6 +68,7 @@ class Hardware 'acquisition-card' => 'Crystal/cam_mount-22.png', 'fingerprint-reader' => 'fingerprint_icon-22.png', 'ethernet-card' => 'H2O/network-wired_22.png', + 'sd-card-reader' => 'H2O/media-flash-sd-mmc_22.png', ); public static $typeToController = array( @@ -83,6 +84,7 @@ class Hardware 'acquisition-card' => 'acquisitioncards', 'fingerprint-reader' => 'fingerprintreaders', 'ethernet-card' => 'ethernetcards', + 'sd-card-reader' => 'sdcardreaders', ); public static function getTypes() @@ -410,6 +412,14 @@ class Ethernetcards extends Hardware public static $select = 'yes,no'; + public static $interface = "not-specified,USB,PCI,PCI-E,mini-PCI,mini-PCI-E,ExpressCard,PC-Card,Firewire,Parallel,Serial"; +} + +class Sdcardreaders extends Hardware +{ + + public static $select = 'yes,no'; + public static $interface = "not-specified,USB,PCI,PCI-E,mini-PCI,mini-PCI-E,ExpressCard,PC-Card,Firewire,Parallel,Serial"; } \ No newline at end of file -- cgit v1.2.3