‪TYPO3CMS  ‪main
TYPO3\CMS\Styleguide\TcaDataGenerator\Generator Class Reference
Inheritance diagram for TYPO3\CMS\Styleguide\TcaDataGenerator\Generator:
TYPO3\CMS\Styleguide\TcaDataGenerator\AbstractGenerator

Public Member Functions

 create ()
 
 delete ()
 

Protected Member Functions

 populateRowsOfThirdPartyTables ()
 
array getListOfStyleguideMainTables ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Styleguide\TcaDataGenerator\AbstractGenerator
 createSiteConfiguration (int $topPageUid, string $base='http://localhost/', string $title='styleguide demo')
 
int getUidOfLastTopLevelPage ()
 
 addToFal (array $files, string $from, string $to)
 
 deleteFalFolder (string $path)
 
 executeDataHandler (array $data=[], array $commands=[])
 

Protected Attributes

array $tableHandler
 

Detailed Description

Manage a page tree with all test / demo styleguide data

Definition at line 33 of file Generator.php.

Member Function Documentation

◆ create()

◆ delete()

TYPO3\CMS\Styleguide\TcaDataGenerator\Generator::delete ( )

Delete all pages and their records that belong to the tx_styleguide demo pages

Definition at line 163 of file Generator.php.

References TYPO3\CMS\Styleguide\TcaDataGenerator\AbstractGenerator\deleteFalFolder(), and TYPO3\CMS\Styleguide\TcaDataGenerator\AbstractGenerator\executeDataHandler().

◆ getListOfStyleguideMainTables()

array TYPO3\CMS\Styleguide\TcaDataGenerator\Generator::getListOfStyleguideMainTables ( )
protected

List of styleguide "main" pages.

A styleguide table is either a "main" entry table or a "child" table that belongs to a main table. Each "main" table is located at an own page with all its children.

The difference is a naming thing, styleguide tables have a "prefix"_"identifier"_"childidentifier" structure.

Example: prefix = tx_styleguide_inline, identifier = 1n -> "tx_styleguide_inline_1n" is a "main" table -> "tx_styleguide_inline_1n1n" is a "child" table

In general the list of prefixes is hard coded. If a specific table name is a concatenation of a prefix plus a single word, then the table is considered a "main" table, if there are more than one words after prefix, it is a "child" table.

This method return the list of "main" tables.

Returns
‪array

Definition at line 285 of file Generator.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Styleguide\TcaDataGenerator\Generator\create().

◆ populateRowsOfThirdPartyTables()

TYPO3\CMS\Styleguide\TcaDataGenerator\Generator::populateRowsOfThirdPartyTables ( )
protected

Add rows for third party tables like be_users or FAL

Definition at line 209 of file Generator.php.

References $fields, and TYPO3\CMS\Styleguide\TcaDataGenerator\AbstractGenerator\addToFal().

Referenced by TYPO3\CMS\Styleguide\TcaDataGenerator\Generator\create().

Member Data Documentation

◆ $tableHandler

array TYPO3\CMS\Styleguide\TcaDataGenerator\Generator::$tableHandler
protected
Initial value:
= array(
TableHandler\StaticData::class,
TableHandler\InlineMn::class,
TableHandler\InlineMnGroup::class,
TableHandler\InlineMnSymmetric::class,
TableHandler\InlineMnSymmetricGroup::class,
TableHandler\General::class,
)

List of handlers to create full table data. There is a "default" handler for casual tables, but some $mainTables like several inline scenarios need more sophisticated handlers.

Definition at line 42 of file Generator.php.