Mage_Catalog_Block_Breadcrumbs Class Reference

Inheritance diagram for Mage_Catalog_Block_Breadcrumbs:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getTitleSeparator ($store=null)

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 35 of file Breadcrumbs.php.


Member Function Documentation

_prepareLayout (  )  [protected]

Preparing layout

Returns:
Mage_Catalog_Block_Breadcrumbs

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 54 of file Breadcrumbs.php.

00055     {
00056         if ($breadcrumbsBlock = $this->getLayout()->getBlock('breadcrumbs')) {
00057             $breadcrumbsBlock->addCrumb('home', array(
00058                 'label'=>Mage::helper('catalog')->__('Home'),
00059                 'title'=>Mage::helper('catalog')->__('Go to Home Page'),
00060                 'link'=>Mage::getBaseUrl()
00061             ));
00062 
00063             $title = array();
00064             $path  = Mage::helper('catalog')->getBreadcrumbPath();
00065 
00066             foreach ($path as $name => $breadcrumb) {
00067                 $breadcrumbsBlock->addCrumb($name, $breadcrumb);
00068                 $title[] = $breadcrumb['label'];
00069             }
00070 
00071             if ($headBlock = $this->getLayout()->getBlock('head')) {
00072                 $headBlock->setTitle(join($this->getTitleSeparator(), array_reverse($title)));
00073             }
00074         }
00075         return parent::_prepareLayout();
00076     }

getTitleSeparator ( store = null  ) 

Retrieve HTML title value separator (with space)

Parameters:
mixed $store
Returns:
string

Definition at line 43 of file Breadcrumbs.php.

00044     {
00045         $separator = (string)Mage::getStoreConfig('catalog/seo/title_separator', $store);
00046         return ' ' . $separator . ' ';
00047     }


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

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