CoreFiles by mySites.guru
helper.php35 lines, 684 bytes, from Joomla_2.5.21-Stable-Full_Package.zip
Raw History Compare with 2.5.20
md5
0afef068fbb7b4588ed07d0c4fc14435
sha1
45d3abe5975abdeb4e5bc92f5fb7fb4f9f13e802
sha256
6f20c39f85c06922f795af2669c0af446d53baf4f310f6fd61e526e787b57c88
<?php
/**
 * @copyright	Copyright (C) 2005 - 2014 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 11 releases, Joomla 2.5.18 to 2.5.28. See them all, or every version of this file.