本文整理匯總了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) {