public function _getGroupsHTML($tmpGroups, $tmpPagination = NULL) { $config = CFactory::getConfig(); $tmpl = new CTemplate(); CFactory::load('helpers', 'owner'); CFactory::load('libraries', 'featured'); $featured = new CFeatured(FEATURED_GROUPS); $featuredList = $featured->getItemIds(); $groups = array(); if ($tmpGroups) { foreach ($tmpGroups as $row) { $group =& JTable::getInstance('Group', 'CTable'); $group->bind($row); $group->updateStats(); //ensure that stats are up-to-date $group->description = CStringHelper::clean(CStringHelper::truncate($group->description, $config->get('tips_desc_length'))); $groups[] = $group; } unset($tmpGroups); } $groupsHTML = $tmpl->set('showFeatured', $config->get('show_featured'))->set('featuredList', $featuredList)->set('isCommunityAdmin', COwnerHelper::isCommunityAdmin())->set('groups', $groups)->set('pagination', $tmpPagination)->fetch('groups.list'); unset($tmpl); return $groupsHTML; }
/** * Deprecated since 1.8 */ function cCleanString($string) { return CStringHelper::clean($string); }