Public Member Functions | |
__construct () | |
addLink ($label, $title=null, $url=null) | |
Protected Member Functions | |
_beforeToHtml () | |
Protected Attributes | |
$_links = array() |
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 43 of file Breadcrumbs.php.
00044 { 00045 $this->setTemplate('widget/breadcrumbs.phtml'); 00046 $this->addLink(Mage::helper('adminhtml')->__('Home'), Mage::helper('adminhtml')->__('Home'), $this->getUrl('*')); 00047 }
_beforeToHtml | ( | ) | [protected] |
Before rendering html, but after trying to load cache
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 62 of file Breadcrumbs.php.
00063 { 00064 // TODO - Moved to Beta 2, no breadcrumbs displaying in Beta 1 00065 // $this->assign('links', $this->_links); 00066 return parent::_beforeToHtml(); 00067 }
addLink | ( | $ | label, | |
$ | title = null , |
|||
$ | url = null | |||
) |
Definition at line 49 of file Breadcrumbs.php.
00050 { 00051 if (empty($title)) { 00052 $title = $label; 00053 } 00054 $this->_links[] = array( 00055 'label' => $label, 00056 'title' => $title, 00057 'url' => $url 00058 ); 00059 return $this; 00060 }
$_links = array() [protected] |
Definition at line 41 of file Breadcrumbs.php.