‪TYPO3CMS  ‪main
TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder Class Reference

Public Member Functions

 findUidsOfStyleguideEntryPages ()
int findPidOfMainTableRecord (string $tableName)
array findIdsOfDemoLanguages ()
int findHighestLanguageId ()
array findUidsOfDemoBeGroups ()
array findUidsOfDemoBeUsers ()
array findUidsOfStaticdata ()
File[] findDemoFileObjects (string $path='styleguide')
Folder findDemoFolderObject ()
array findUidsOfFrontendPages (array $types=['tx_styleguide_frontend_root', 'tx_styleguide_frontend'], array $doktype=[])
array findTtContent (array $types=['textmedia', 'textpic', 'image', 'uploads'], string $identifier='tx_styleguide_frontend')
 findFeUserGroups ()
 findFeUsers ()

Detailed Description

Class contains helper methods to locate uids or pids of specific records in the system.

Definition at line 37 of file RecordFinder.php.

Member Function Documentation

◆ findDemoFileObjects()

File [] TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder::findDemoFileObjects ( string  $path = 'styleguide')

Find the object representation of the demo images in fileadmin/styleguide


Definition at line 239 of file RecordFinder.php.

◆ findDemoFolderObject()

Folder TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder::findDemoFolderObject ( )

Find the demo folder


Definition at line 253 of file RecordFinder.php.

◆ findFeUserGroups()

TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder::findFeUserGroups ( )

Definition at line 346 of file RecordFinder.php.

◆ findFeUsers()

TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder::findFeUsers ( )

Definition at line 362 of file RecordFinder.php.

◆ findHighestLanguageId()

int TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder::findHighestLanguageId ( )

Returns the highest language id from all sites


Definition at line 136 of file RecordFinder.php.

◆ findIdsOfDemoLanguages()

array TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder::findIdsOfDemoLanguages ( )

Find ids of styleguide demo languages

‪array List of language ids

Definition at line 113 of file RecordFinder.php.

References TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder\findUidsOfStyleguideEntryPages().

◆ findPidOfMainTableRecord()

int TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder::findPidOfMainTableRecord ( string  $tableName)

"Main" tables have a single page they are located on with their possible children. The methods find this page by getting the highest uid of a page where field tx_styleguide_containsdemo is set to given table name.


Definition at line 77 of file RecordFinder.php.

References TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder\findUidsOfStaticdata().

◆ findTtContent()

array TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder::findTtContent ( array  $types = ['textmedia',
'textpic'  ,
'image'  ,
'uploads']  ,
string  $identifier = 'tx_styleguide_frontend' 

Find tt_content by ctype and identifier

array | string[]$types

Definition at line 322 of file RecordFinder.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ findUidsOfDemoBeGroups()

array TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder::findUidsOfDemoBeGroups ( )

Find uids of styleguide demo be_groups

‪array List of uids

Definition at line 154 of file RecordFinder.php.

References TYPO3\CMS\Core\Database\Connection\PARAM_INT.

◆ findUidsOfDemoBeUsers()

array TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder::findUidsOfDemoBeUsers ( )

Find uids of styleguide demo be_users

‪array List of uids

Definition at line 182 of file RecordFinder.php.

References TYPO3\CMS\Core\Database\Connection\PARAM_INT.

◆ findUidsOfFrontendPages()

array TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder::findUidsOfFrontendPages ( array  $types = ['tx_styleguide_frontend_root',
'tx_styleguide_frontend']  ,
array  $doktype = [] 

Get all styleguide frontend page UIDs

array | string[]$types

Definition at line 267 of file RecordFinder.php.

◆ findUidsOfStaticdata()

array TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder::findUidsOfStaticdata ( )

Find uids of styleguide static data records

‪array List of uids

Definition at line 210 of file RecordFinder.php.

References TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder\findPidOfMainTableRecord(), and TYPO3\CMS\Core\Database\Connection\PARAM_INT.

◆ findUidsOfStyleguideEntryPages()

TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder::findUidsOfStyleguideEntryPages ( )

Returns a uid list of existing styleguide demo top level pages. These are pages with pid=0 and tx_styleguide_containsdemo set to 'tx_styleguide'. This can be multiple pages if "create" button was clicked multiple times without "delete" in between.

Definition at line 44 of file RecordFinder.php.

References TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder\findIdsOfDemoLanguages().