Mage_Adminhtml_Block_Widget_Breadcrumbs Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Widget_Breadcrumbs:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 addLink ($label, $title=null, $url=null)

Protected Member Functions

 _beforeToHtml ()

Protected Attributes

 $_links = array()


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 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     }


Member Function Documentation

_beforeToHtml (  )  [protected]

Before rendering html, but after trying to load cache

Returns:
Mage_Core_Block_Abstract

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     }


Member Data Documentation

$_links = array() [protected]

Definition at line 41 of file Breadcrumbs.php.


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

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