Beispiel #1
0
 /**
  * get list k2 items
  */
 public static function getList($params, $categories, $totalItems = 0)
 {
     $my =& JFactory::getUser();
     self::$AID = $my->get('aid', 0);
     self::setCacheImagePath('mod_lofk2news2');
     // if the cache option is enabed ?
     if ($params->get('enable_cache')) {
         $cache =& JFactory::getCache('mod_lofk2news2');
         $cache->setCaching(true);
         $cache->setLifeTime($params->get('cache_time', 30) * 60);
         return $cache->get(array('modLofK2News', '_getList'), array($params, $categories, $totalItems));
     } else {
         return self::_getList($params, $categories, $totalItems);
     }
 }