CoolCMS API

TreeStructure
in package

FinalYes

{@see TreeConfig} translated through the Doctrine metadata to DB names: the table, the tree bound columns and the scope filter. Built in the mapper `TreeTrait` and passed straight to the repository; as `mixed` in `Result::getData()` the types were lost.

Table of Contents

Properties

$columns  : array<string|int, mixed>
$scope  : array<string|int, mixed>
$table  : string

Methods

__construct()  : mixed
columnsWithLevel()  : array{id: string, left: string, right: string, parent: string, level: string}
Columns including the level (subtree move, node insert).

Properties

Methods

__construct()

public __construct(string $table, array{id: string, left: string, right: string, parent: string} $columns, array<string, scalar|null> $scope) : mixed
Parameters
$table : string
$columns : array{id: string, left: string, right: string, parent: string}
$scope : array<string, scalar|null>

column => value

columnsWithLevel()

Columns including the level (subtree move, node insert).

public columnsWithLevel(string $levelColumn) : array{id: string, left: string, right: string, parent: string, level: string}
Parameters
$levelColumn : string
Return values
array{id: string, left: string, right: string, parent: string, level: string}
On this page

Search results