|
|
@ -34,8 +34,6 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
class HTML_QuickForm_textarea extends HTML_QuickForm_element |
|
|
|
class HTML_QuickForm_textarea extends HTML_QuickForm_element |
|
|
|
{ |
|
|
|
{ |
|
|
|
// {{{ properties |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Field value |
|
|
|
* Field value |
|
|
|
* @var string |
|
|
|
* @var string |
|
|
@ -43,8 +41,6 @@ class HTML_QuickForm_textarea extends HTML_QuickForm_element |
|
|
|
* @access private |
|
|
|
* @access private |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public $_value = null; |
|
|
|
public $_value = null; |
|
|
|
// }}} |
|
|
|
|
|
|
|
// {{{ constructor |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Class constructor |
|
|
|
* Class constructor |
|
|
@ -54,20 +50,19 @@ class HTML_QuickForm_textarea extends HTML_QuickForm_element |
|
|
|
* @param mixed Either a typical HTML attribute string or an associative array |
|
|
|
* @param mixed Either a typical HTML attribute string or an associative array |
|
|
|
* @since 1.0 |
|
|
|
* @since 1.0 |
|
|
|
* @access public |
|
|
|
* @access public |
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function __construct($elementName=null, $elementLabel=null, $attributes=null) |
|
|
|
public function __construct( |
|
|
|
{ |
|
|
|
$elementName = null, |
|
|
|
|
|
|
|
$elementLabel = null, |
|
|
|
|
|
|
|
$attributes = null |
|
|
|
|
|
|
|
) { |
|
|
|
$attributes['class'] = isset($attributes['class']) ? $attributes['class'] : 'form-control'; |
|
|
|
$attributes['class'] = isset($attributes['class']) ? $attributes['class'] : 'form-control'; |
|
|
|
$columnsSize = isset($attributes['cols-size']) ? $attributes['cols-size'] : null; |
|
|
|
$columnsSize = isset($attributes['cols-size']) ? $attributes['cols-size'] : null; |
|
|
|
$this->setColumnsSize($columnsSize); |
|
|
|
$this->setColumnsSize($columnsSize); |
|
|
|
parent::__construct($elementName, $elementLabel, $attributes); |
|
|
|
parent::__construct($elementName, $elementLabel, $attributes); |
|
|
|
$this->_persistantFreeze = true; |
|
|
|
$this->_persistantFreeze = true; |
|
|
|
$this->_type = 'textarea'; |
|
|
|
$this->_type = 'textarea'; |
|
|
|
} //end constructor |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// }}} |
|
|
|
|
|
|
|
// {{{ setName() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Sets the input field name |
|
|
|
* Sets the input field name |
|
|
|