aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Include/hardware.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Include/hardware.php')
-rw-r--r--h-source/Application/Include/hardware.php54
1 files changed, 52 insertions, 2 deletions
diff --git a/h-source/Application/Include/hardware.php b/h-source/Application/Include/hardware.php
index eebdbd5..ce2ad01 100644
--- a/h-source/Application/Include/hardware.php
+++ b/h-source/Application/Include/hardware.php
@@ -41,6 +41,10 @@ class Hardware
"works_without_3D" => "works, but without 3D acceleration",
"does_not_work" => "it does not work",
"can-be-installed" => "can be installed",
+ "pcmcia-controller" => "PCMCIA Controller",
+ "usb-controller" => "USB Controller",
+ "firewire-controller" => "Firewire Controller",
+ "heci-controller" => "HECI Controller",
);
public static $regExpressions = array(
@@ -71,6 +75,7 @@ class Hardware
'0805' => 'sdcardreaders',
'0703' => 'modems',
'0104' => 'raidadapters',
+ '0c00' => 'hostcontrollers',
);
public static $icons = array(
@@ -89,7 +94,7 @@ class Hardware
'sd-card-reader' => 'H2O/media-flash-sd-mmc_22.png',
'modem' => 'Crystal/modem_22.png',
'RAID-adapter' => 'Crystal/1282042976_hardware.png',
- 'PCMCIA-controller' => 'Crystal/1282042976_hardware.png',
+ 'host-controller' => 'Crystal/1282042976_hardware.png',
);
public static $typeToController = array(
@@ -108,7 +113,26 @@ class Hardware
'sd-card-reader' => 'sdcardreaders',
'modem' => 'modems',
'RAID-adapter' => 'raidadapters',
- 'PCMCIA-controller' => 'pcmcia',
+ 'host-controller' => 'hostcontrollers',
+ );
+
+ public static $typeToWorksField = array(
+ 'notebook' => 'compatibility',
+ 'wifi' => 'wifi_works',
+ 'videocard' => 'video_card_works',
+ 'printer' => 'compatibility',
+ 'scanner' => 'compatibility',
+ '3G-card' => 'wifi_works',
+ 'soundcard' => 'sound_card_works',
+ 'webcam' => 'webcam_works',
+ 'bluetooth' => 'bluetooth_works',
+ 'acquisition-card' => 'compatibility',
+ 'fingerprint-reader' => 'fingerprint_works',
+ 'ethernet-card' => 'ethernet_card_works',
+ 'sd-card-reader' => 'sd_card_works',
+ 'modem' => 'compatibility',
+ 'RAID-adapter' => 'compatibility',
+ 'host-controller' => 'compatibility',
);
public static function getTypes()
@@ -125,6 +149,15 @@ class Hardware
return null;
}
+ public static function getWorksFieldFromType($type)
+ {
+ if (array_key_exists($type,self::$typeToWorksField))
+ {
+ return self::$typeToWorksField[$type];
+ }
+ return null;
+ }
+
//get the type from the controller
public static function getTypeFromController($controller)
{
@@ -482,4 +515,21 @@ class Raidadapters extends Acquisitioncards
class PCMCIAControllers extends Acquisitioncards
{
+}
+
+class Hostcontrollers extends Acquisitioncards
+{
+
+ public static $subtype = array(
+ "PCMCIA Controller" => "pcmcia-controller",
+ "USB Controller" => "usb-controller",
+ "Firewire Controller" => "firewire-controller",
+ "HECI Controller" => "heci-controller",
+ );
+
+ public static function subtypeList()
+ {
+ return implode(',',array_values(self::$subtype));
+ }
+
} \ No newline at end of file