summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/classes
diff options
context:
space:
mode:
authorSjon Hortensius <sjon@hortensius.net>2016-01-17 14:01:29 +0100
committerStephen Beaver <sbeaver@netgate.com>2016-01-17 08:09:13 -0500
commitd8a88826827233f8e9a00786c07f4242ae0a48e9 (patch)
tree2d7d2b5786c87171396f76389810256374cc572c /src/usr/local/www/classes
parente163952f29d1b9bc68731985c14caa3129ce49ce (diff)
downloadpfsense-d8a88826827233f8e9a00786c07f4242ae0a48e9.zip
pfsense-d8a88826827233f8e9a00786c07f4242ae0a48e9.tar.gz
Fix inconsistencies in Form_Input
renamed get_type to getType fix capitalisation in getTagName
Diffstat (limited to 'src/usr/local/www/classes')
-rw-r--r--src/usr/local/www/classes/Form/Group.class.php4
-rw-r--r--src/usr/local/www/classes/Form/Input.class.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/classes/Form/Group.class.php b/src/usr/local/www/classes/Form/Group.class.php
index 64d1db3..e1ddaac 100644
--- a/src/usr/local/www/classes/Form/Group.class.php
+++ b/src/usr/local/www/classes/Form/Group.class.php
@@ -132,11 +132,11 @@ EOT;
foreach ($missingWidth as $input)
$input->setWidth($spaceLeft / count($missingWidth));
- if (strtolower($this->_labelTarget->get_Type()) == 'hidden')
+ if (strtolower($this->_labelTarget->getType()) == 'hidden')
$hidden = true;
$form_controls = array('input', 'select', 'button', 'textarea', 'option', 'optgroup', 'fieldset', 'label');
- if (in_array(strtolower($this->_labelTarget->gettagName()), $form_controls) && !$hidden)
+ if (in_array(strtolower($this->_labelTarget->getTagName()), $form_controls) && !$hidden)
$target = $this->_labelTarget->getId();
$inputs = implode('', $this->_inputs);
diff --git a/src/usr/local/www/classes/Form/Input.class.php b/src/usr/local/www/classes/Form/Input.class.php
index 836251d..4cdfb28 100644
--- a/src/usr/local/www/classes/Form/Input.class.php
+++ b/src/usr/local/www/classes/Form/Input.class.php
@@ -106,12 +106,12 @@ class Form_Input extends Form_Element
return $this->_attributes['id'];
}
- public function get_Type()
+ public function getType()
{
return $this->_attributes['type'];
}
- public function gettagName()
+ public function getTagName()
{
return $this->_tagName;
}
OpenPOWER on IntegriCloud