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
Methods
- __construct() : mixed
- columnsWithLevel() : array{id: string, left: string, right: string, parent: string, level: string}
- Columns including the level (subtree move, node insert).
Properties
$columns read-only
public
array<string|int, mixed>
$columns
$scope read-only
public
array<string|int, mixed>
$scope
$table read-only
public
string
$table
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