本文整理汇总了PHP中FlexicontentFields::getFilters方法的典型用法代码示例。如果您正苦于以下问题:PHP FlexicontentFields::getFilters方法的具体用法?PHP FlexicontentFields::getFilters怎么用?PHP FlexicontentFields::getFilters使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FlexicontentFields
的用法示例。
在下文中一共展示了FlexicontentFields::getFilters方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
/**
* Method to get the visible category filters according to category parameters
*
* @access private
* @return array
*/
function &getFilters()
{
return FlexicontentFields::getFilters('filters', 'use_filters', $this->_params, $check_access = true);
}
示例2: array
$filters = !$params->get('use_filters', 0) ? array() : FlexicontentFields::getFilters('filters', '__ALL_FILTERS__', $catparams);
} else {
if ($display_filter_list == 1) {
// ... $params->set('filters_order', 1); // respect filters ordering if so configured in category
$filters = FlexicontentFields::getFilters('filters', 'use_filters', $catparams);
} else {
if ($display_filter_list == 2) {
$params->set('filters_order', 1);
// respect filters ordering
$filters = FlexicontentFields::getFilters('filters', 'use_filters', $params);
} else {
if ($display_filter_list) {
// ==3
$params->set('filters_order', 1);
// respect filters ordering
$cat_filters = FlexicontentFields::getFilters('filters', 'use_filters', $params);
// Intersection of selected filters and of category assigned filters
$filters = array();
$filter_ids_indexed = array_flip($filter_ids);
foreach ($cat_filters as $filter_name => $filter) {
if (isset($filter_ids_indexed[$filter->id])) {
$filters[] = $filter;
}
}
}
}
}
}
// Remove categories filter
if ($display_cat_list || $catid) {
foreach ($filters as $i => $filter) {