Varien_Data_Form_Element_Textarea Class Reference

Inheritance diagram for Varien_Data_Form_Element_Textarea:

Varien_Data_Form_Element_Abstract Varien_Data_Form_Abstract Varien_Object Varien_Data_Form_Element_Editor

List of all members.

Public Member Functions

 __construct ($attributes=array())
 getHtmlAttributes ()
 getElementHtml ()


Detailed Description

Definition at line 34 of file Textarea.php.


Constructor & Destructor Documentation

__construct ( attributes = array()  ) 

Enter description here...

Parameters:
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     }


Member Function Documentation

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     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:25:00 2009 for Magento by  doxygen 1.5.8