Mage_Core_Block_Text_Tag Class Reference

Inheritance diagram for Mage_Core_Block_Text_Tag:

Mage_Core_Block_Text Mage_Core_Block_Abstract Varien_Object Mage_Core_Block_Text_Tag_Css Mage_Core_Block_Text_Tag_Debug Mage_Core_Block_Text_Tag_Js Mage_Core_Block_Text_Tag_Css_Admin

List of all members.

Public Member Functions

 setTagParam ($param, $value=null)
 setContents ($text)

Protected Member Functions

 _construct ()
 _toHtml ()


Detailed Description

Base html block

Author:
Magento Core Team <core@magentocommerce.com>

Definition at line 33 of file Tag.php.


Member Function Documentation

_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

Returns:
string

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  ) 

Definition at line 56 of file Tag.php.

00057     {
00058         $this->setTagContents($text);
00059         return $this;
00060     }

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     }


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

Generated on Sat Jul 4 17:23:54 2009 for Magento by  doxygen 1.5.8