Retrieve values for use in filter options, that will be understood by DC_ filter
panels and frontend filter select boxes.
One can influence the amount of returned entries with the two parameters.
For the id list, the value "null" represents (as everywhere in MetaModels) all entries.
An empty array will return no entries at all.
The parameter "used only" determines, if only really attached values shall be returned.
This is only relevant, when using "null" as id list for attributes that have pre configured
values like select lists and tags i.e.
public getFilterOptions ( string[] | null $idList, boolean $usedOnly, array | null &$arrCount = null ) : array | ||
$idList | string[] | null | The ids of items that the values shall be fetched from (If empty or null, all items). |
$usedOnly | boolean | Determines if only "used" values shall be returned. |
$arrCount | array | null | Array for the counted values. |
return | array | All options matching the given conditions as name => value. |