CollectionService implements SingletonInterface

Service to collect dependent elements.

Internal

Table of Contents

Interfaces

SingletonInterface
"empty" interface for singletons (marker interface pattern)

Properties

$dataArray  : array<string|int, mixed>
$dependencyResolver  : DependencyResolver|null
$elementEntityProcessor  : ElementEntityProcessor
$nestedDataArray  : array<string|int, mixed>

Methods

__construct()  : mixed
getDependencyResolver()  : DependencyResolver
process()  : array<string|int, mixed>
Processes the data array
finalize()  : array<string|int, mixed>
Applies structures to instance data array and ensures children are added below accordant parent
getBackendUser()  : BackendUserAuthentication
getCollectionChildrenCount()  : int
Return count of children, present in the data array
resolveDataArrayChildDependencies()  : void
Resolves nested child dependencies.

Properties

$dataArray

protected array<string|int, mixed> $dataArray

$nestedDataArray

protected array<string|int, mixed> $nestedDataArray

Methods

process()

Processes the data array

public process(array<string|int, mixed> $dataArray) : array<string|int, mixed>
Parameters
$dataArray : array<string|int, mixed>
Return values
array<string|int, mixed>

finalize()

Applies structures to instance data array and ensures children are added below accordant parent

protected finalize(array<string|int, mixed> $dataArray) : array<string|int, mixed>
Parameters
$dataArray : array<string|int, mixed>
Return values
array<string|int, mixed>

getCollectionChildrenCount()

Return count of children, present in the data array

protected getCollectionChildrenCount(array<string|int, ReferenceEntity$children) : int
Parameters
$children : array<string|int, ReferenceEntity>
Return values
int

resolveDataArrayChildDependencies()

Resolves nested child dependencies.

protected resolveDataArrayChildDependencies(ElementEntity $parent, int $collection[, string $nextParentIdentifier = '' ][, int $collectionLevel = 0 ]) : void
Parameters
$parent : ElementEntity
$collection : int
$nextParentIdentifier : string = ''
$collectionLevel : int = 0

        
On this page

Search results