JHelperTags::getTagItemsQuery
Method to get a query to retrieve a detailed list of items for a tag.
Signature
public function getTagItemsQuery(mixed
$tagId,
[mixed
$typesr = null,
[boolean
$includeChildren = false,
[string
$orderByOption = 'c.core_title',
[string
$orderDir = 'ASC',
[boolean
$anyOrAll = true,
[string
$languageFilter = 'all',
[string
$stateFilter = '0,1']]]]]]] )
Parameters
-
$tagId
- Tag or array of tags to be matched
-
$typesr
- Null, type or array of type aliases for content types to be included in the results
-
$includeChildren
- True to include the results from child tags
-
$orderByOption
- Column to order the results by
-
$orderDir
- Direction to sort the results in
-
$anyOrAll
- True to include items matching at least one tag, false to include
-
$languageFilter
- Optional filter on language. Options are 'all', 'current' or any string.
-
$stateFilter
- Optional filtering on publication state, defaults to published or unpublished.
Returns
- JDatabaseQuery
- Query to retrieve a list of tags