aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/PrintersController.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2010-12-25 22:25:45 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2010-12-25 22:25:45 +0000
commit3f18a25b33df582ecebf6cfaf043c6cc5939ec7c (patch)
tree20a47549fa6a2aec8fbad74a32dedf6e8257c854 /h-source/Application/Controllers/PrintersController.php
parent18d7cd4c01a71e1304b2e9e782d0490ca2e6e5a9 (diff)
added the subtype entry (laser,inkjet,..) for printers
Diffstat (limited to 'h-source/Application/Controllers/PrintersController.php')
-rw-r--r--h-source/Application/Controllers/PrintersController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/h-source/Application/Controllers/PrintersController.php b/h-source/Application/Controllers/PrintersController.php
index 6521e1b..8353809 100644
--- a/h-source/Application/Controllers/PrintersController.php
+++ b/h-source/Application/Controllers/PrintersController.php
@@ -51,6 +51,7 @@ class PrintersController extends GenericController
"+checkIsStrings|".Printer::compatibilityList() => "compatibility",
"++checkIsStrings|".Printer::$commYear => "comm_year",
"+++checkIsStrings|".Printer::$interface => "interface",
+ "++++checkIsStrings|".Printer::$subtype => "subtype",
);
$this->m['HardwareModel']->strongConditions['insert'] = array(
@@ -62,6 +63,7 @@ class PrintersController extends GenericController
"+checkIsStrings|".Printer::compatibilityList() => "compatibility",
"++checkIsStrings|".Printer::$commYear => "comm_year",
"+++checkIsStrings|".Printer::$interface => "interface",
+ "++++checkIsStrings|".Printer::$subtype => "subtype",
);
$this->m['HardwareModel']->softConditions['update'] = array(
@@ -82,7 +84,7 @@ class PrintersController extends GenericController
"++checkMatch|/^[a-zA-Z0-9\-\_\.\+\s\/\,\:\;\(\)\[\]]+$/" => "driver|only the following characters are allowed for the <i>driver</i> entry: a-z A-Z 0-9 - _ . + s / , : ; ( ) [ ]",
);
- $this->m['HardwareModel']->setFields('vendor,model,kernel,description,compatibility,distribution,comm_year,pci_id,driver,interface','sanitizeAll');
+ $this->m['HardwareModel']->setFields('vendor,model,kernel,description,compatibility,distribution,comm_year,pci_id,driver,interface,subtype','sanitizeAll');
$argKeys = array(
'page:forceNat' => 1,