RelationMap
final class \
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
Internal
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() : ActiveRelation[]
- getPassiveRelations() : array
- Passive relations can never be pointed to a field within a FlexSchema
Methods
__construct()
public
__construct([array $relations = [] ]) : mixed
Parameters
- $relations : array = []
add()
public
add(string $fromTable, string $fromFieldName, array $fieldConfig[, string|null $flexPointer = null ]) : void
Parameters
- $fromTable : string
- $fromFieldName : string
- $fieldConfig : array
- $flexPointer : string|null = null
getActiveRelations()
public
getActiveRelations(string $tableName, string $fieldName) : ActiveRelation[]
Parameters
- $tableName : string
- $fieldName : string
Return values
ActiveRelation[]getPassiveRelations()
Passive relations can never be pointed to a field within a FlexSchema
public
getPassiveRelations(string $tableName[, string|null $fieldName = null ]) : array
Parameters
- $tableName : string
- $fieldName : string|null = null