PageDoktypeRegistry

Read onlyYes

This object defines the various types of pages (field: doktype) the system can handle and what restrictions may apply to them when adding records.

Here you can define which tables are allowed on a certain pagetype (doktype).

NOTE: The 'default' entry array is the 'base' for all types, and for every type the entries simply overrides the entries in the 'default' type!

You can fully use this once TCA is properly loaded (e.g. in ext_tables.php).

Attributes
#[Autoconfigure]
$public: true

Table of Contents

Properties

$tcaSchemaFactory  : TcaSchemaFactory

Methods

__construct()  : mixed
exportConfiguration()  : array<string|int, mixed>
getAllDoktypes()  : array<string|int, SelectItem>
getAllowedTypesForDoktype()  : array<string|int, mixed>
getNonViewableDoktypes()  : array<string|int, int>
Returns array of non-viewable doktype integers based on TCA only.
isPageTypeViewable()  : bool
Check if a page type is viewable based on TCA configuration only.
isPageViewable()  : bool
Check if a page is viewable, considering both TCA and pageTsConfig.
isRecordTypeAllowedForDoktype()  : bool
Check if a record can be added on a page with a given $doktype.

Properties

Methods

exportConfiguration()

public exportConfiguration() : array<string|int, mixed>
Internal

only to be used within TYPO3 Core

Return values
array<string|int, mixed>

getAllowedTypesForDoktype()

public getAllowedTypesForDoktype(int $doktype) : array<string|int, mixed>
Parameters
$doktype : int
Internal

only to be used within TYPO3 Core

Return values
array<string|int, mixed>

getNonViewableDoktypes()

Returns array of non-viewable doktype integers based on TCA only.

public getNonViewableDoktypes() : array<string|int, int>

Used for JavaScript tree configuration.

Return values
array<string|int, int>

isPageTypeViewable()

Check if a page type is viewable based on TCA configuration only.

public isPageTypeViewable(int $doktype) : bool

Does NOT consider pageTsConfig overrides.

By default, all page types are viewable unless explicitly set to false via the TCA option "isViewable".

Parameters
$doktype : int
Return values
bool

isPageViewable()

Check if a page is viewable, considering both TCA and pageTsConfig.

public isPageViewable(int $doktype, int $pageId) : bool

Respects TCEMAIN.preview.disableButtonForDokType TSconfig.

Parameters
$doktype : int
$pageId : int
Return values
bool

isRecordTypeAllowedForDoktype()

Check if a record can be added on a page with a given $doktype.

public isRecordTypeAllowedForDoktype(string $type, int $doktype) : bool
Parameters
$type : string
$doktype : int
Return values
bool

        
On this page

Search results