CoolCMS API

RenderInitTrait

Table of Contents

Methods

intilializeRender()  : void
prepareHighlightedAdvertIds()  : void
Fills {@see \App\UI\Front\Comcat\Components\AdvertListRendererComponent\AdvertListRenderer::$highlightedAdvertIds} with profiles that have an active valid "Highlighting" tariff item (`AdvertHighlightConfig`, default 2). One query per render over payment items (as in Bazaar/Discussion); the card then gets the class `highlighted` (background by the token `--list-item-highlighted-bg`).

Methods

intilializeRender()

private intilializeRender([array<string|int, mixed> $items = [] ]) : void
Parameters
$items : array<string|int, mixed> = []

prepareHighlightedAdvertIds()

Fills {@see \App\UI\Front\Comcat\Components\AdvertListRendererComponent\AdvertListRenderer::$highlightedAdvertIds} with profiles that have an active valid "Highlighting" tariff item (`AdvertHighlightConfig`, default 2). One query per render over payment items (as in Bazaar/Discussion); the card then gets the class `highlighted` (background by the token `--list-item-highlighted-bg`).

private prepareHighlightedAdvertIds(array<int, int> $advertIds) : void
Parameters
$advertIds : array<int, int>
On this page

Search results