CollectionService

class \TYPO3\CMS\Workspaces\Service\Dependency\CollectionService

Implements
SingletonInterface

Service to collect dependent elements.

Table of Contents

Interfaces

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

Properties

$dataArray  : array
$dataHandler  : DataHandler
$dependencyResolver  : DependencyResolver|null
$elementEntityProcessor  : ElementEntityProcessor|null
$nestedDataArray  : array

Methods

getDependencyResolver()  : DependencyResolver
process()  : array
Processes the data array
finalize()  : array
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
getDependencyCallback()  : EventCallback
Gets a new callback to be used in the dependency resolver utility.
getElementEntityProcessor()  : ElementEntityProcessor
Gets the element entity processor.
resolveDataArrayChildDependencies()  : mixed
Resolves nested child dependencies.

Properties

$nestedDataArray

protected array $nestedDataArray

Methods

process()

Processes the data array

public process(array $dataArray) : array

Parameters

$dataArray : array

Return values

array

finalize()

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

protected finalize(array $dataArray) : array

Parameters

$dataArray : array

Return values

array

getCollectionChildrenCount()

Return count of children, present in the data array

protected getCollectionChildrenCount(ReferenceEntity[] $children) : int

Parameters

$children : ReferenceEntity[]

Return values

int

getDependencyCallback()

Gets a new callback to be used in the dependency resolver utility.

protected getDependencyCallback(string $method[, array $targetArguments = [] ]) : EventCallback

Parameters

$method : string
$targetArguments : array = []

Return values

EventCallback

resolveDataArrayChildDependencies()

Resolves nested child dependencies.

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

Parameters

$parent : ElementEntity
$collection : int
$nextParentIdentifier : string = ''
$collectionLevel : int = 0
On this page