Public Member Functions | |
__construct ($attributes=array()) | |
getHtmlAttributes () | |
getElementHtml () |
Definition at line 34 of file Textarea.php.
__construct | ( | $ | attributes = array() |
) |
Enter description here...
array | $attributes |
Reimplemented from Varien_Data_Form_Element_Abstract.
Reimplemented in Varien_Data_Form_Element_Editor.
Definition at line 36 of file Textarea.php.
00037 { 00038 parent::__construct($attributes); 00039 $this->setType('textarea'); 00040 $this->setExtType('textarea'); 00041 $this->setRows(2); 00042 $this->setCols(15); 00043 }
getElementHtml | ( | ) |
Reimplemented from Varien_Data_Form_Element_Abstract.
Reimplemented in Varien_Data_Form_Element_Editor.
Definition at line 50 of file Textarea.php.
00051 { 00052 $this->addClass('textarea'); 00053 $html = '<textarea id="'.$this->getHtmlId().'" name="'.$this->getName().'" '.$this->serialize($this->getHtmlAttributes()).' >'; 00054 $html .= $this->getEscapedValue(); 00055 $html .= "</textarea>"; 00056 $html .= $this->getAfterElementHtml(); 00057 return $html; 00058 }
getHtmlAttributes | ( | ) |
Reimplemented from Varien_Data_Form_Element_Abstract.
Definition at line 45 of file Textarea.php.
00046 { 00047 return array('title', 'class', 'style', 'onclick', 'onchange', 'rows', 'cols', 'readonly', 'disabled', 'onkeyup'); 00048 }