Mage_Page_Block_Html_Breadcrumbs Class Reference

Inheritance diagram for Mage_Page_Block_Html_Breadcrumbs:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 addCrumb ($crumbName, $crumbInfo, $after=false)

Protected Member Functions

 _toHtml ()

Protected Attributes

 $_crumbs = null


Detailed Description

Definition at line 34 of file Breadcrumbs.php.


Constructor & Destructor Documentation

__construct (  ) 

Constructor

By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes

Reimplemented from Varien_Object.

Definition at line 53 of file Breadcrumbs.php.

00054     {
00055         parent::__construct();
00056         $this->setTemplate('page/html/breadcrumbs.phtml');
00057     }


Member Function Documentation

_toHtml (  )  [protected]

Render block HTML

Returns:
string

Reimplemented from Mage_Core_Block_Template.

Definition at line 68 of file Breadcrumbs.php.

00069     {
00070         if (is_array($this->_crumbs)) {
00071             reset($this->_crumbs);
00072             $this->_crumbs[key($this->_crumbs)]['first'] = true;
00073             end($this->_crumbs);
00074             $this->_crumbs[key($this->_crumbs)]['last'] = true;
00075         }
00076         $this->assign('crumbs', $this->_crumbs);
00077         return parent::_toHtml();
00078     }

addCrumb ( crumbName,
crumbInfo,
after = false 
)

Definition at line 59 of file Breadcrumbs.php.

00060     {
00061         $this->_prepareArray($crumbInfo, array('label', 'title', 'link', 'first', 'last', 'readonly'));
00062         if ((!isset($this->_crumbs[$crumbName])) || (!$this->_crumbs[$crumbName]['readonly'])) {
00063            $this->_crumbs[$crumbName] = $crumbInfo;
00064         }
00065         return $this;
00066     }


Member Data Documentation

$_crumbs = null [protected]

Definition at line 51 of file Breadcrumbs.php.


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

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