SchemaTypeInformation

Read onlyYes
FinalYes

It is possible to use a DB field in TCA for referencing the actual type of record, by dividing the schema in subschema by a type. For example, "pages" has a "type" field which references the "doktype" field of the "pages" table. This is defined in TCA[ctrl][type] property.

However, it is also possible to use a field of a foreign table to define the type of record - for example - the "sys_file_reference" table has type "uid_foreign:title". The uid_foreign DB field of "sys_file_reference" references the "uid" field of the "sys_file" table (as defined in the "uid_foreign" field of "sys_file_reference", and the "title" field is then pointing to the related references' schema

Table of Contents

Methods

__construct()  : mixed
getFieldName()  : string
getForeignFieldName()  : string|null
getForeignSchemaName()  : string|null
getSchemaName()  : string
isPointerToForeignFieldInForeignSchema()  : bool

Methods

__construct()

public __construct(string $schemaName, string $fieldName[, string|null $foreignFieldName = null ][, string|null $foreignSchemaName = null ]) : mixed
Parameters
$schemaName : string
$fieldName : string
$foreignFieldName : string|null = null
$foreignSchemaName : string|null = null

getFieldName()

public getFieldName() : string
Return values
string

getForeignFieldName()

public getForeignFieldName() : string|null
Return values
string|null

getForeignSchemaName()

public getForeignSchemaName() : string|null
Return values
string|null

getSchemaName()

public getSchemaName() : string
Return values
string

isPointerToForeignFieldInForeignSchema()

public isPointerToForeignFieldInForeignSchema() : bool
Return values
bool

        
On this page

Search results