CoreFiles by mySites.guru
helper.php35 lines, 684 bytes, from Joomla_2.5.13-Stable-Full_Package.zip
Raw History Compare with 2.5.11
md5
056fd09581e48cd138152cc969ec9001
sha1
c0a1fb2f27f6b65036c49bbb18fa71a443c30a42
sha256
580d5d50b3082a51a153965d645f1435cecd100658f269341019e2f33b0088b2
<?php
/**
 * @copyright	Copyright (C) 2005 - 2013 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 8 releases, Joomla 2.5.9 to 2.5.17. See them all, or every version of this file.