summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/classes
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-25 14:49:26 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-25 14:50:18 -0400
commit23f6cdd72757350d8c25cf9536c7d7dafc6fca16 (patch)
tree601a90f2111ca81d01a3842505f6a8ba5cb8d46f /src/usr/local/www/classes
parentfdf35e233a04182e9c7c8600d298dd6ed401048c (diff)
downloadpfsense-23f6cdd72757350d8c25cf9536c7d7dafc6fca16.zip
pfsense-23f6cdd72757350d8c25cf9536c7d7dafc6fca16.tar.gz
Initial conversion of the file. Most functions completed and tested, but more testing remains
Diffstat (limited to 'src/usr/local/www/classes')
-rw-r--r--src/usr/local/www/classes/Form/Input.class.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/usr/local/www/classes/Form/Input.class.php b/src/usr/local/www/classes/Form/Input.class.php
index ec1cdca..e1fe31f 100644
--- a/src/usr/local/www/classes/Form/Input.class.php
+++ b/src/usr/local/www/classes/Form/Input.class.php
@@ -165,6 +165,23 @@ class Form_Input extends Form_Element
return $this;
}
+ // These methods required by pkg_edit and the wizards that map xml element definitions to Form elements
+ public function setOnclick($text)
+ {
+ if($text)
+ $this->_attributes['onclick'] = $text;
+
+ return $this;
+ }
+
+ public function setOnchange($text)
+ {
+ if($text)
+ $this->_attributes['onchange'] = $text;
+
+ return $this;
+ }
+
protected function _getInput()
{
return parent::__toString();
OpenPOWER on IntegriCloud