From 931861e0513be7e110fc1d98e366cbd4efb831ce Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Mon, 18 Apr 2011 16:09:47 +0000 Subject: h-source:added acquisition cards and fingerprint readers - part 1 --- .../Application/Models/FingerprintreadersModel.php | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 h-source/Application/Models/FingerprintreadersModel.php (limited to 'h-source/Application/Models/FingerprintreadersModel.php') diff --git a/h-source/Application/Models/FingerprintreadersModel.php b/h-source/Application/Models/FingerprintreadersModel.php new file mode 100644 index 0000000..83be7db --- /dev/null +++ b/h-source/Application/Models/FingerprintreadersModel.php @@ -0,0 +1,74 @@ +. + +if (!defined('EG')) die('Direct access not allowed!'); + +class FingerprintreadersModel extends GenericModel +{ + + public $type = 'fingerprint-reader'; //device type + + public function __construct() + { + + $this->_popupItemNames = array( + 'vendor' => 'vendor', + 'comm_year' => 'comm_year', + 'fingerprint_works' => 'fingerprint_works', + 'interface' => 'interface', + ); + + $this->_popupLabels = array( + 'vendor' => gtext("vendor"), + 'comm_year' => gtext("year"), + 'fingerprint_works' => gtext("does it work?"), + 'interface' => gtext("interface"), + ); + + $this->_popupFunctions = array( + 'vendor' => 'betterVendor', + ); + + $this->_popupWhere = array( + 'vendor' => 'type="fingerprint-reader" and deleted="no"', + 'comm_year' => 'type="fingerprint-reader" and deleted="no"', + 'fingerprint_works' => 'type="fingerprint-reader" and deleted="no"', + 'interface' => 'type="fingerprint-reader" 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'), + 'fingerprint_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