本文整理汇总了PHP中CStringHelper::clean方法的典型用法代码示例。如果您正苦于以下问题:PHP CStringHelper::clean方法的具体用法?PHP CStringHelper::clean怎么用?PHP CStringHelper::clean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CStringHelper
的用法示例。
在下文中一共展示了CStringHelper::clean方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _getGroupsHTML
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;
}
示例2: cCleanString
/**
* Deprecated since 1.8
*/
function cCleanString($string)
{
return CStringHelper::clean($string);
}