Project

General

Profile

« Previous | Next » 

Revision b53f53be

Added by Sjon Hortensius over 9 years ago

Fix inconsistencies in Form_Input

renamed get_type to getType
fix capitalisation in getTagName

View differences:

src/usr/local/www/classes/Form/Group.class.php
132 132
		foreach ($missingWidth as $input)
133 133
			$input->setWidth($spaceLeft / count($missingWidth));
134 134

  
135
		if (strtolower($this->_labelTarget->get_Type()) == 'hidden')
135
		if (strtolower($this->_labelTarget->getType()) == 'hidden')
136 136
			$hidden = true;
137 137

  
138 138
		$form_controls = array('input', 'select', 'button', 'textarea', 'option', 'optgroup', 'fieldset', 'label');
139
		if (in_array(strtolower($this->_labelTarget->gettagName()), $form_controls) && !$hidden)
139
		if (in_array(strtolower($this->_labelTarget->getTagName()), $form_controls) && !$hidden)
140 140
			$target = $this->_labelTarget->getId();
141 141

  
142 142
		$inputs = implode('', $this->_inputs);
src/usr/local/www/classes/Form/Input.class.php
106 106
		return $this->_attributes['id'];
107 107
	}
108 108

  
109
	public function get_Type()
109
	public function getType()
110 110
	{
111 111
		return $this->_attributes['type'];
112 112
	}
113 113

  
114
	public function gettagName()
114
	public function getTagName()
115 115
	{
116 116
		return $this->_tagName;
117 117
	}

Also available in: Unified diff