Public Member Functions | |
__construct ($attributes=array()) | |
getElementHtml () | |
getChildrenHtml () | |
getSubFieldsetHtml () | |
getDefaultHtml () | |
addField ($elementId, $type, $config, $after=false) |
Definition at line 35 of file Fieldset.php.
__construct | ( | $ | attributes = array() |
) |
Enter description here...
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 }
addField | ( | $ | elementId, | |
$ | type, | |||
$ | config, | |||
$ | after = false | |||
) |
Enter description here...
string | $elementId | |
string | $type | |
array | $config | |
boolean | $after |
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...
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...
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...
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...
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 }