InitRenderTrait
Table of Contents
Methods
- initRender() : void
Methods
initRender()
private
initRender([int $maxNumber = 5 ][, array<string|int, mixed> $orderBy = ['id' => false] ][, array<string|int, int> $showOnlyCategoryIds = [] ][, array<string, object> $extraFilters = [] ]) : void
Parameters
- $maxNumber : int = 5
- $orderBy : array<string|int, mixed> = ['id' => false]
- $showOnlyCategoryIds : array<string|int, int> = []
-
limits the list to articles in any of these categories (
categories.id IN (...), same path shape astags.idinTaggedArticleList); empty = all categories. It overrides acategoryIdkey of$extraFilters. - $extraFilters : array<string, object> = []
-
filters on top of the base visibility. They are assigned first and the visibility filters (
activated,published) after them, so the same key in$extraFiltersis overwritten and cannot override visibility. The front end must never list an inactive or unpublished article, not even by mistake of the calling component.