
Public Member Functions | |
| setTagParam ($param, $value=null) | |
| setContents ($text) | |
Protected Member Functions | |
| _construct () | |
| _toHtml () | |
Definition at line 33 of file Tag.php.
| _construct | ( | ) | [protected] |
Internal constructor, that is called from real constructor
Please override this one instead of overriding real __construct constructor
Please override this one instead of overriding real __construct constructor
Reimplemented from Mage_Core_Block_Abstract.
Reimplemented in Mage_Core_Block_Text_Tag_Css_Admin, Mage_Core_Block_Text_Tag_Css, Mage_Core_Block_Text_Tag_Debug, and Mage_Core_Block_Text_Tag_Js.
Definition at line 36 of file Tag.php.
00037 { 00038 parent::_construct(); 00039 $this->setTagParams(array()); 00040 }
| _toHtml | ( | ) | [protected] |
Override this method in descendants to produce html
Reimplemented from Mage_Core_Block_Text.
Definition at line 62 of file Tag.php.
00063 { 00064 $this->setText('<'.$this->getTagName().' '); 00065 if ($this->getTagParams()) { 00066 foreach ($this->getTagParams() as $k=>$v) { 00067 $this->addText($k.'="'.$v.'" '); 00068 } 00069 } 00070 00071 $this->addText('>'.$this->getTagContents().'</'.$this->getTagName().'>'."\r\n"); 00072 return parent::_toHtml(); 00073 }
| setContents | ( | $ | text | ) |
| setTagParam | ( | $ | param, | |
| $ | value = null | |||
| ) |
Definition at line 42 of file Tag.php.
00043 { 00044 if (is_array($param) && is_null($value)) { 00045 foreach ($param as $k=>$v) { 00046 $this->setTagParam($k, $v); 00047 } 00048 } else { 00049 $params = $this->getTagParams(); 00050 $params[$param] = $value; 00051 $this->setTagParams($params); 00052 } 00053 return $this; 00054 }
1.5.8