Source for file helper.php

Documentation is available at helper.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Site
  4.  * @subpackage  mod_articles_categories
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('_JEXEC'or die;
  11.  
  12. require_once JPATH_SITE.'/components/com_content/helpers/route.php';
  13.  
  14. /**
  15.  * Helper for mod_articles_categories
  16.  *
  17.  * @package     Joomla.Site
  18.  * @subpackage  mod_articles_categories
  19.  */
  20. {
  21.     public static function getList(&$params)
  22.     {
  23.         $options array();
  24.         $options['countItems'$params->get('numitems'0);
  25.  
  26.         $categories JCategories::getInstance('Content'$options);
  27.         $category $categories->get($params->get('parent''root'));
  28.  
  29.         if ($category != null)
  30.         {
  31.             $items $category->getChildren();
  32.             if ($params->get('count'0&& count($items$params->get('count'0))
  33.             {
  34.                 $items array_slice($items0$params->get('count'0));
  35.             }
  36.             return $items;
  37.         }
  38.     }
  39.  
  40. }

Documentation generated on Tue, 19 Nov 2013 15:04:32 +0100 by phpDocumentor 1.4.3