Mage_Core_Block_Text Class Reference

Inheritance diagram for Mage_Core_Block_Text:

Mage_Core_Block_Abstract Varien_Object Mage_Core_Block_Text_List Mage_Core_Block_Text_List_Item Mage_Core_Block_Text_List_Link Mage_Core_Block_Text_Tag Mage_Core_Block_Text_Tag_Meta Mage_GoogleAnalytics_Block_Ga Mage_Adminhtml_Block_Text_List Mage_Core_Block_Text_Tag_Css Mage_Core_Block_Text_Tag_Debug Mage_Core_Block_Text_Tag_Js Mage_Adminhtml_Block_Poll_Edit_Tab_Answers Mage_Adminhtml_Block_Sales_Order_Creditmemo_View_Comments Mage_Adminhtml_Block_Sales_Order_Invoice_View_Comments Mage_Adminhtml_Block_Sales_Order_Shipment_View_Comments Mage_Core_Block_Text_Tag_Css_Admin

List of all members.

Public Member Functions

 setText ($text)
 getText ()
 addText ($text, $before=false)

Protected Member Functions

 _toHtml ()


Detailed Description

Base html block

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

Definition at line 33 of file Text.php.


Member Function Documentation

_toHtml (  )  [protected]

Override this method in descendants to produce html

Returns:
string

Reimplemented from Mage_Core_Block_Abstract.

Reimplemented in Mage_Core_Block_Text_List_Item, Mage_Core_Block_Text_List_Link, Mage_Core_Block_Text_List, Mage_Core_Block_Text_Tag_Meta, Mage_Core_Block_Text_Tag, and Mage_GoogleAnalytics_Block_Ga.

Definition at line 56 of file Text.php.

00057     {
00058         if (!$this->_beforeToHtml()) {
00059             return '';
00060         }
00061 
00062         return $this->getText();
00063     }

addText ( text,
before = false 
)

Definition at line 47 of file Text.php.

00048     {
00049         if ($before) {
00050             $this->setText($text.$this->getText());
00051         } else {
00052             $this->setText($this->getText().$text);
00053         }
00054     }

getText (  ) 

Definition at line 42 of file Text.php.

00043     {
00044         return $this->getData('text');
00045     }

setText ( text  ) 

Definition at line 36 of file Text.php.

00037     {
00038         $this->setData('text', $text);
00039         return $this;
00040     }


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