From 632f611689562bb79dfb18065b6d0851a5c2077e Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Tue, 1 Mar 2011 16:43:28 +0000 Subject: added bluetooth - part 1 --- h-source/Application/Models/BluetoothModel.php | 74 ++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 h-source/Application/Models/BluetoothModel.php (limited to 'h-source/Application/Models/BluetoothModel.php') diff --git a/h-source/Application/Models/BluetoothModel.php b/h-source/Application/Models/BluetoothModel.php new file mode 100644 index 0000000..39445bf --- /dev/null +++ b/h-source/Application/Models/BluetoothModel.php @@ -0,0 +1,74 @@ +. + +if (!defined('EG')) die('Direct access not allowed!'); + +class BluetoothModel extends GenericModel +{ + + public $type = 'bluetooth'; //device type + + public function __construct() + { + + $this->_popupItemNames = array( + 'vendor' => 'vendor', + 'comm_year' => 'comm_year', + 'bluetooth_works' => 'bluetooth_works', + 'interface' => 'interface', + ); + + $this->_popupLabels = array( + 'vendor' => gtext("vendor"), + 'comm_year' => gtext("year"), + 'bluetooth_works' => gtext("does it work?"), + 'interface' => gtext("interface"), + ); + + $this->_popupFunctions = array( + 'vendor' => 'betterVendor', + ); + + $this->_popupWhere = array( + 'vendor' => 'type="bluetooth" and deleted="no"', + 'comm_year' => 'type="bluetooth" and deleted="no"', + 'bluetooth_works' => 'type="bluetooth" and deleted="no"', + 'interface' => 'type="bluetooth" and deleted="no"', + ); + + $this->diffFields = array( + 'vendor' => gtext("vendor"), + 'model' => gtext('model name'), + 'pci_id' => gtext("VendorID:ProductID code of the device"), + 'comm_year' => gtext('year of commercialization'), + 'interface' => gtext("interface"), + 'distribution' => gtext('GNU/Linux distribution used for the test'), + 'kernel' => gtext('tested with the following kernel libre'), + 'bluetooth_works' => gtext("does it work with free software?"), + 'driver' => gtext("free driver used"), + 'description' => gtext('Description'), + ); + + $this->fieldsWithBreaks = array(gtext('Description')); + + parent::__construct(); + } + +} \ No newline at end of file -- cgit v1.2.3