RelationMap

final class \TYPO3\CMS\Core\Schema\RelationMap

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

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

Return values

array
On this page