Public Member Functions | |
__construct () | |
addCrumb ($crumbName, $crumbInfo, $after=false) | |
Protected Member Functions | |
_toHtml () | |
Protected Attributes | |
$_crumbs = null |
Definition at line 34 of file Breadcrumbs.php.
__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 }
_toHtml | ( | ) | [protected] |
Render block HTML
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 }
$_crumbs = null [protected] |
Definition at line 51 of file Breadcrumbs.php.