diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-09-25 14:49:26 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-09-25 14:50:18 -0400 |
commit | 23f6cdd72757350d8c25cf9536c7d7dafc6fca16 (patch) | |
tree | 601a90f2111ca81d01a3842505f6a8ba5cb8d46f /src/usr/local/www/classes/Form | |
parent | fdf35e233a04182e9c7c8600d298dd6ed401048c (diff) | |
download | pfsense-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/Form')
-rw-r--r-- | src/usr/local/www/classes/Form/Input.class.php | 17 |
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(); |