Varien_Data_Form_Element_Fieldset Class Reference

Inheritance diagram for Varien_Data_Form_Element_Fieldset:

Varien_Data_Form_Element_Abstract Varien_Data_Form_Abstract Varien_Object Mage_Adminhtml_Block_Tax_Rate_Title_Fieldset

List of all members.

Public Member Functions

 __construct ($attributes=array())
 getElementHtml ()
 getChildrenHtml ()
 getSubFieldsetHtml ()
 getDefaultHtml ()
 addField ($elementId, $type, $config, $after=false)


Detailed Description

Definition at line 35 of file Fieldset.php.


Constructor & Destructor Documentation

__construct ( attributes = array()  ) 

Enter description here...

Parameters:
array $attributes

Reimplemented from Varien_Data_Form_Element_Abstract.

Definition at line 43 of file Fieldset.php.

00044     {
00045         parent::__construct($attributes);
00046         $this->_renderer = Varien_Data_Form::getFieldsetRenderer();
00047         $this->setType('fieldset');
00048     }


Member Function Documentation

addField ( elementId,
type,
config,
after = false 
)

Enter description here...

Parameters:
string $elementId
string $type
array $config
boolean $after
Returns:
Varien_Data_Form_Element_Abstract

Reimplemented from Varien_Data_Form_Abstract.

Definition at line 120 of file Fieldset.php.

00121     {
00122         $element = parent::addField($elementId, $type, $config, $after);
00123         if ($renderer = Varien_Data_Form::getFieldsetElementRenderer()) {
00124             $element->setRenderer($renderer);
00125         }
00126         return $element;
00127     }

getChildrenHtml (  ) 

Enter description here...

Returns:
string

Reimplemented in Mage_Adminhtml_Block_Tax_Rate_Title_Fieldset.

Definition at line 72 of file Fieldset.php.

00073     {
00074         $html = '';
00075         foreach ($this->getElements() as $element) {
00076             if ($element->getType() != 'fieldset') {
00077                 $html.= $element->toHtml();
00078             }
00079         }
00080         return $html;
00081     }

getDefaultHtml (  ) 

Enter description here...

Returns:
string

Reimplemented from Varien_Data_Form_Element_Abstract.

Definition at line 104 of file Fieldset.php.

00105     {
00106         $html = '<div><h4 class="icon-head head-edit-form fieldset-legend">'.$this->getLegend().'</h4>'."\n";
00107         $html.= $this->getElementHtml();
00108         return $html;
00109     }

getElementHtml (  ) 

Enter description here...

Returns:
string

Reimplemented from Varien_Data_Form_Element_Abstract.

Definition at line 55 of file Fieldset.php.

00056     {
00057         $html = '<fieldset id="'.$this->getHtmlId().'"'.$this->serialize(array('class')).'>'."\n";
00058         if ($this->getLegend()) {
00059             $html.= '<legend>'.$this->getLegend().'</legend>'."\n";
00060         }
00061         $html.= $this->getChildrenHtml();
00062         $html.= '</fieldset></div>'."\n";
00063         $html.= $this->getAfterElementHtml();
00064         return $html;
00065     }

getSubFieldsetHtml (  ) 

Enter description here...

Returns:
string

Definition at line 88 of file Fieldset.php.

00089     {
00090         $html = '';
00091         foreach ($this->getElements() as $element) {
00092             if ($element->getType() == 'fieldset') {
00093                 $html.= $element->toHtml();
00094             }
00095         }
00096         return $html;
00097     }


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

Generated on Sat Jul 4 17:24:59 2009 for Magento by  doxygen 1.5.8