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
Properties
- $relations : array<string|int, mixed>
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
- addActiveRelationToTable() : void
- addActiveRelationWithField() : void
- addMMRelation() : void
- makeActiveRelation() : ActiveRelation
Properties
$relations
protected
array<string|int, mixed>
$relations
= []
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
Return values
array<string|int, mixed>addActiveRelationToTable()
protected
addActiveRelationToTable(string $fromTable, string $fromField, string $toTable[, string|null $flexPointer = null ]) : void
Parameters
- $fromTable : string
- $fromField : string
- $toTable : string
- $flexPointer : string|null = null
addActiveRelationWithField()
protected
addActiveRelationWithField(string $fromTable, string $fromField, string $toTable, string $toField[, string|null $flexPointer = null ]) : void
Parameters
- $fromTable : string
- $fromField : string
- $toTable : string
- $toField : string
- $flexPointer : string|null = null
addMMRelation()
protected
addMMRelation(string $fromTable, string $fromField, string $toTable, string $mm[, string|null $mmOppositeField = null ][, string|null $flexPointer = null ]) : void
Parameters
- $fromTable : string
- $fromField : string
- $toTable : string
- $mm : string
- $mmOppositeField : string|null = null
- $flexPointer : string|null = null
makeActiveRelation()
protected
makeActiveRelation(array<string|int, mixed> $relation) : ActiveRelation
Parameters
- $relation : array<string|int, mixed>