CoreFiles by mySites.guru
helper.php35 lines, 684 bytes, from Joomla_2.5.1-Stable-Full_Package.zip
Raw History Compare with 2.5.0
md5
eeddd94adb897a9bb624587d412aa65d
sha1
7afbd729190641b227c14e4eb1f1af61a41a3e07
sha256
8b8c83613c55ef78dcc3e5f2cc3b875773fd84757b28371032a83df712abdf17
<?php
/**
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;

/**
 * @package		Joomla.Administrator
 * @subpackage	mod_submenu
 * @since		1.6
 */
abstract class modSubmenuHelper
{
	/**
	 * Get the member items of the submenu.
	 *
	 * @return	mixed	An arry of menu items, or false on error.
	 */
	public static function getItems()
	{
		// Initialise variables.
		$menu = JToolBar::getInstance('submenu');

		$list = $menu->getItems();

		if (!is_array($list) || !count($list)) {
			return false;
		}

		return $list;
	}
}

The same content is in 9 releases, Joomla 2.5.0 to 2.5.8. See them all, or every version of this file.