Source code for file /joomla/utilities/functions.php
Documentation is available at functions.php
* @version $Id: functions.php 6634 2007-02-15 18:27:18Z Jinx $
* @package Joomla.Framework
* @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant to the
* GNU General Public License, and as distributed it includes or is derivative
* of works licensed under the GNU General Public License or other free or open
* source software licenses. See COPYRIGHT.php for copyright notices and
// Check to ensure this file is within the rest of the framework
// Include library dependencies
* Replaces & with & for xhtml compliance
* Needed to handle unicode conflicts due to unicode conflicts
function mosTreeRecurse( $id, $indent, $list, &$children, $maxlevel=
9999, $level=
0, $type=
1 ) {
if (@$children[$id] &&
$level <=
$maxlevel) {
foreach ($children[$id] as $v) {
$pre =
'<sup>L</sup> ';
$spacer =
'. ';
$spacer =
' ';
$list[$id]->treename =
"$indent$txt";
$list[$id]->children =
count( @$children[$id] );
$list =
mosTreeRecurse( $id, $indent .
$spacer, $list, $children, $maxlevel, $level+
1, $type );