| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: helper.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla 5 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 6 * @license GNU/GPL, see LICENSE.php 7 * Joomla! is free software. This version may have been modified pursuant 8 * to the GNU General Public License, and as distributed it includes or 9 * is derivative of works licensed under the GNU General Public License or 10 * other free or open source software licenses. 11 * See COPYRIGHT.php for copyright notices and details. 12 */ 13 14 // no direct access 15 defined('_JEXEC') or die('Restricted access'); 16 17 class modBreadCrumbsHelper 18 { 19 function getList(&$params) 20 { 21 global $mainframe; 22 23 // Get the PathWay object from the application 24 $pathway =& $mainframe->getPathway(); 25 $items = $pathway->getPathWay(); 26 27 $count = count($items); 28 for ($i = 0; $i < $count; $i ++) 29 { 30 $items[$i]->name = stripslashes(htmlspecialchars($items[$i]->name)); 31 $items[$i]->link = JRoute::_($items[$i]->link); 32 } 33 34 if ($params->get('showHome', 1)) 35 { 36 $item = new stdClass(); 37 $item->name = $params->get('homeText', JText::_('Home')); 38 $item->link = JURI::base(); 39 array_unshift($items, $item); 40 } 41 42 return $items; 43 } 44 45 /** 46 * Set the breadcrumbs separator for the breadcrumbs display. 47 * 48 * @param string $custom Custom xhtml complient string to separate the 49 * items of the breadcrumbs 50 * @return string Separator string 51 * @since 1.5 52 */ 53 function setSeparator($custom = null) 54 { 55 global $mainframe; 56 57 $lang =& JFactory::getLanguage(); 58 59 /** 60 * If a custom separator has not been provided we try to load a template 61 * specific one first, and if that is not present we load the default separator 62 */ 63 if ($custom == null) { 64 if($lang->isRTL()){ 65 $_separator = JHTML::_('image.site', 'arrow_rtl.png'); 66 } 67 else{ 68 $_separator = JHTML::_('image.site', 'arrow.png'); 69 } 70 } else { 71 $_separator = $custom; 72 } 73 return $_separator; 74 } 75 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |