CoolCMS API

InitializationTrait

Table of Contents

Properties

$categoryTree  : array<int, array<string, mixed>>|null
Tree from {@see TreeStructure::prepareForTemplate()}; never mutated, assigned to the template by value.
$loadedCategories  : array<int, object>|null
Categories loaded once per component instance (the query does not depend on render arguments).

Methods

getCurrentCategory()  : Category|null
intilializeRender()  : void

Properties

$categoryTree

Tree from {@see TreeStructure::prepareForTemplate()}; never mutated, assigned to the template by value.

private array<int, array<string, mixed>>|null $categoryTree = null

$loadedCategories

Categories loaded once per component instance (the query does not depend on render arguments).

private array<int, object>|null $loadedCategories = null

Methods

intilializeRender()

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

Search results