RelationMap
FinalYes
A class to collect actual relations. Contains all information... -> what is the target of a relation of a field -> what is pointing to a specific schema
not part of TYPO3 API as it should not be exposed, although this is really cool and powerful.
Table of Contents
Methods
- __construct() : mixed
- add() : void
- getActiveRelations() : array<string|int, ActiveRelation>
- getPassiveRelations() : array<string|int, mixed>
- Passive relations can never be pointed to a field within a FlexSchema
Methods
__construct()
public
__construct([array<string|int, mixed> $relations = [] ]) : mixed
Parameters
- $relations : array<string|int, mixed> = []
add()
public
add(string $fromTable, string $fromFieldName, array<string|int, mixed> $fieldConfig[, string|null $flexPointer = null ]) : void
Parameters
- $fromTable : string
- $fromFieldName : string
- $fieldConfig : array<string|int, mixed>
- $flexPointer : string|null = null
getActiveRelations()
public
getActiveRelations(string $tableName, string $fieldName) : array<string|int, ActiveRelation>
Parameters
- $tableName : string
- $fieldName : string
Return values
array<string|int, ActiveRelation>getPassiveRelations()
Passive relations can never be pointed to a field within a FlexSchema
public
getPassiveRelations(string $tableName[, string|null $fieldName = null ]) : array<string|int, mixed>
Parameters
- $tableName : string
- $fieldName : string|null = null