‪TYPO3CMS  11.5
TYPO3\CMS\Workspaces\Service\Dependency\CollectionService Class Reference
Inheritance diagram for TYPO3\CMS\Workspaces\Service\Dependency\CollectionService:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

Dependency DependencyResolver getDependencyResolver ()
 
array process (array $dataArray)
 

Protected Member Functions

Dependency EventCallback getDependencyCallback ($method, array $targetArguments=[])
 
Dependency ElementEntityProcessor getElementEntityProcessor ()
 
int getWorkspace ()
 
array finalize (array $dataArray)
 
 resolveDataArrayChildDependencies (ElementEntity $parent, $collection, $nextParentIdentifier='', $collectionLevel=0)
 
int getCollectionChildrenCount (array $children)
 

Protected Attributes

TYPO3 CMS Core DataHandling DataHandler $dataHandler
 
Dependency ElementEntityProcessor null $elementEntityProcessor
 
Dependency DependencyResolver null $dependencyResolver
 
array $dataArray
 
array $nestedDataArray
 

Detailed Description

Service to collect dependent elements.

Definition at line 31 of file CollectionService.php.

Member Function Documentation

◆ finalize()

array TYPO3\CMS\Workspaces\Service\Dependency\CollectionService::finalize ( array  $dataArray)
protected

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

Parameters
array$dataArray
Returns
‪array

Definition at line 164 of file CollectionService.php.

References TYPO3\CMS\Workspaces\Service\Dependency\CollectionService\$dataArray.

Referenced by TYPO3\CMS\Workspaces\Service\Dependency\CollectionService\process().

◆ getCollectionChildrenCount()

int TYPO3\CMS\Workspaces\Service\Dependency\CollectionService::getCollectionChildrenCount ( array  $children)
protected

Return count of children, present in the data array

Parameters
ReferenceEntity[]$children
Returns
‪int

Definition at line 230 of file CollectionService.php.

References TYPO3\CMS\Workspaces\Dependency\ElementEntity\__toString(), and TYPO3\CMS\Workspaces\Dependency\ReferenceEntity\getElement().

Referenced by TYPO3\CMS\Workspaces\Service\Dependency\CollectionService\resolveDataArrayChildDependencies().

◆ getDependencyCallback()

Dependency EventCallback TYPO3\CMS\Workspaces\Service\Dependency\CollectionService::getDependencyCallback (   $method,
array  $targetArguments = [] 
)
protected

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

Parameters
string$method
array$targetArguments
Returns
Dependency\EventCallback

Definition at line 89 of file CollectionService.php.

References TYPO3\CMS\Workspaces\Service\Dependency\CollectionService\getElementEntityProcessor().

Referenced by TYPO3\CMS\Workspaces\Service\Dependency\CollectionService\getDependencyResolver().

◆ getDependencyResolver()

◆ getElementEntityProcessor()

Dependency ElementEntityProcessor TYPO3\CMS\Workspaces\Service\Dependency\CollectionService::getElementEntityProcessor ( )
protected

◆ getWorkspace()

int TYPO3\CMS\Workspaces\Service\Dependency\CollectionService::getWorkspace ( )
protected

◆ process()

◆ resolveDataArrayChildDependencies()

Member Data Documentation

◆ $dataArray

array TYPO3\CMS\Workspaces\Service\Dependency\CollectionService::$dataArray
protected

◆ $dataHandler

TYPO3 CMS Core DataHandling DataHandler TYPO3\CMS\Workspaces\Service\Dependency\CollectionService::$dataHandler
protected

Definition at line 35 of file CollectionService.php.

◆ $dependencyResolver

Dependency DependencyResolver null TYPO3\CMS\Workspaces\Service\Dependency\CollectionService::$dependencyResolver
protected

◆ $elementEntityProcessor

Dependency ElementEntityProcessor null TYPO3\CMS\Workspaces\Service\Dependency\CollectionService::$elementEntityProcessor
protected

◆ $nestedDataArray

array TYPO3\CMS\Workspaces\Service\Dependency\CollectionService::$nestedDataArray
protected

Definition at line 51 of file CollectionService.php.