CoreFiles by mySites.guru
helper.php30 lines, 888 bytes, from Joomla_1.7.2-Stable-Full_Package.zip
Raw History Compare with 1.7.1
md5
f704a856c3c5e75d2f053cb8803e0bfa
sha1
a68ac541b3efcb9e865be3b580fe3d82205f79ae
sha256
a453a82a2b5219e0226ce307001a3069430506ee1c0eae1495968806c4f20077
<?php
/**
 * @version		$Id: helper.php 20806 2011-02-21 19:44:59Z dextercowley $
 * @package		Joomla.Site
 * @subpackage	mod_articles_categories
 * @copyright	Copyright (C) 2005 - 2011 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;

require_once JPATH_SITE.'/components/com_content/helpers/route.php';
jimport('joomla.application.categories');

abstract class modArticlesCategoriesHelper
{
	public static function getList(&$params)
	{
		$categories = JCategories::getInstance('Content');
		$category = $categories->get($params->get('parent', 'root'));
		$items = $category->getChildren();
		if($params->get('count', 0) > 0 && count($items) > $params->get('count', 0))
		{
			$items = array_slice($items, 0, $params->get('count', 0));
		}
		return $items;
	}

}

The same content is in 12 releases, Joomla 1.6.1 to 1.7.5. See them all, or every version of this file.