Source for file site.php
Documentation is available at site.php
* @package Joomla.Libraries
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Class to manage the site application pathway.
* @package Joomla.Libraries
* @param array $options The class options.
if ($item =
$menu->getActive())
$menus =
$menu->getMenu();
$home =
$menu->getDefault();
if (is_object($home) &&
($item->id !=
$home->id))
foreach ($item->tree as $menupath)
$link =
$menu->getItem($menupath);
if ((strpos($link->link, 'index.php?') ===
0) &&
(strpos($link->link, 'Itemid=') ===
false))
// If this is an internal Joomla link, ensure the Itemid is set.
$url =
$link->link .
'&Itemid=' .
$link->id;
// If this is an alias use the item id stored in the parameters to make the link.
$url =
'index.php?Itemid=' .
$link->params->get('aliasoptions');
$router =
$app::getRouter();
if ($router->getMode() ==
JROUTER_MODE_SEF)
$url =
'index.php?Itemid=' .
$link->id;
$url .=
$link->link .
'&Itemid=' .
$link->id;
$this->addItem($menus[$menupath]->title, $url);
Documentation generated on Tue, 19 Nov 2013 15:13:56 +0100 by phpDocumentor 1.4.3