DependencyResolver

class \TYPO3\CMS\Workspaces\Dependency\DependencyResolver

Object to handle and determine dependent references of elements.

Table of Contents

Properties

$action  : DependencyCollectionAction|null
$elements  : array
$eventDispatcher  : EventDispatcherInterface|null
$factory  : DependencyEntityFactory|null
$outerMostParents  : array|null
$workspace  : int

Methods

addElement()  : ElementEntity
Adds an element to be checked for dependent references.
getAction()  : DependencyCollectionAction|null
getElements()  : array
Gets the registered elements.
getEventDispatcher()  : EventDispatcherInterface|null
getFactory()  : DependencyEntityFactory
Gets an instance of the factory to keep track of element or reference entities.
getNestedElements()  : array
Gets all nested elements (including the parent) of a particular outermost parent element.
getOuterMostParents()  : ElementEntity[]
Gets the outermost parents that define complete dependent structure each.
getWorkspace()  : int
setAction()  : void
setEventDispatcher()  : void
setWorkspace()  : void
processOuterMostParent()  : void
Processes and registers the outermost parents accordant to the registered elements.

Properties

$eventDispatcher

protected EventDispatcherInterface|null $eventDispatcher = null

$outerMostParents

protected array|null $outerMostParents

Methods

addElement()

Adds an element to be checked for dependent references.

public addElement(string $table, int $id[, array $data = [] ]) : ElementEntity

Parameters

$table : string
$id : int
$data : array = []

Return values

ElementEntity

getElements()

Gets the registered elements.

public getElements() : array

Return values

array

getEventDispatcher()

public getEventDispatcher() : EventDispatcherInterface|null

Return values

EventDispatcherInterface|null

getNestedElements()

Gets all nested elements (including the parent) of a particular outermost parent element.

public getNestedElements(ElementEntity $outerMostParent) : array

Parameters

$outerMostParent : ElementEntity

Return values

array

getWorkspace()

public getWorkspace() : int

Return values

int

setEventDispatcher()

public setEventDispatcher(EventDispatcherInterface $eventDispatcher) : void

Parameters

$eventDispatcher : EventDispatcherInterface

setWorkspace()

public setWorkspace(int $workspace) : void

Parameters

$workspace : int

processOuterMostParent()

Processes and registers the outermost parents accordant to the registered elements.

protected processOuterMostParent(ElementEntity $element) : void

Parameters

$element : ElementEntity
On this page