‪TYPO3CMS  ‪main
TYPO3\CMS\Core\DataHandling\PageDoktypeRegistry Class Reference
Inheritance diagram for TYPO3\CMS\Core\DataHandling\PageDoktypeRegistry:

Public Member Functions

 add (int $dokType, array $configuration)
 addAllowedRecordTypes (array $recordTypes, ?int $doktype=null)
 isRecordTypeAllowedForDoktype (string $type, ?int $doktype)
 getRegisteredDoktypes ()
 doesDoktypeOnlyAllowSpecifiedRecordTypes (int $doktype=null)
 getAllowedTypesForDoktype (int $doktype)
 exportConfiguration ()

Protected Attributes

array $pageTypes

Detailed Description

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).

Definition at line 34 of file PageDoktypeRegistry.php.

Member Function Documentation

◆ add()

TYPO3\CMS\Core\DataHandling\PageDoktypeRegistry::add ( int  $dokType,
array  $configuration 

Adds a specific configuration for a doktype. By default, it is NOT restricted to only allow tables that have been explicitly added via addAllowedRecordTypes().

Definition at line 59 of file PageDoktypeRegistry.php.

◆ addAllowedRecordTypes()

TYPO3\CMS\Core\DataHandling\PageDoktypeRegistry::addAllowedRecordTypes ( array  $recordTypes,
?int  $doktype = null 

Definition at line 64 of file PageDoktypeRegistry.php.

◆ doesDoktypeOnlyAllowSpecifiedRecordTypes()

TYPO3\CMS\Core\DataHandling\PageDoktypeRegistry::doesDoktypeOnlyAllowSpecifiedRecordTypes ( int  $doktype = null)

Used to find out if a specific doktype is restricted to only allow a certain list of tables. This list can be checked against via 'isRecordTypeAllowedForDoktype()'

Definition at line 100 of file PageDoktypeRegistry.php.

◆ exportConfiguration()

TYPO3\CMS\Core\DataHandling\PageDoktypeRegistry::exportConfiguration ( )

only to be used within TYPO3 Core

Definition at line 118 of file PageDoktypeRegistry.php.

References TYPO3\CMS\Core\DataHandling\PageDoktypeRegistry\$pageTypes.

◆ getAllowedTypesForDoktype()

TYPO3\CMS\Core\DataHandling\PageDoktypeRegistry::getAllowedTypesForDoktype ( int  $doktype)

only to be used within TYPO3 Core

Definition at line 109 of file PageDoktypeRegistry.php.

◆ getRegisteredDoktypes()

TYPO3\CMS\Core\DataHandling\PageDoktypeRegistry::getRegisteredDoktypes ( )

◆ isRecordTypeAllowedForDoktype()

TYPO3\CMS\Core\DataHandling\PageDoktypeRegistry::isRecordTypeAllowedForDoktype ( string  $type,
?int  $doktype 

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

Definition at line 79 of file PageDoktypeRegistry.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\inList().

Member Data Documentation

◆ $pageTypes

array TYPO3\CMS\Core\DataHandling\PageDoktypeRegistry::$pageTypes
Initial value:
= [
'allowedTables' => '*',
'allowedTables' => '*',
'default' => [
'allowedTables' => 'pages,sys_category,sys_file_reference,sys_file_collection',
'onlyAllowedTables' => false,

Definition at line 36 of file PageDoktypeRegistry.php.

Referenced by TYPO3\CMS\Core\DataHandling\PageDoktypeRegistry\exportConfiguration(), and TYPO3\CMS\Core\DataHandling\PageDoktypeRegistry\getRegisteredDoktypes().

Definition: PageRepository.php:112
Definition: PageRepository.php:111
Definition: PageRepository.php:114