RecordFinder

Read onlyYes
FinalYes

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

Internal

Table of Contents

Methods

__construct()  : mixed
findDemoFileObjects()  : array<string|int, File>
Find the object representation of the demo images in fileadmin/styleguide
findDemoFolderObject()  : Folder
Find the demo folder
findFeUserGroups()  : array<string|int, mixed>
findFeUsers()  : array<string|int, mixed>
findHighestLanguageId()  : int
Returns the highest language id from all sites
findIdsOfDemoLanguages()  : array<string|int, mixed>
Find ids of styleguide demo languages
findPidOfMainTableRecord()  : int
"Main" tables have a single page they are located on with their possible children.
findTtContent()  : array<string|int, mixed>
Find tt_content by ctype and identifier
findUidsOfDemoBeGroups()  : array<string|int, mixed>
Find uids of styleguide demo be_groups
findUidsOfDemoBeUsers()  : array<string|int, mixed>
Find uids of styleguide demo be_users
findUidsOfFrontendPages()  : array<string|int, mixed>
Get all styleguide frontend page UIDs
findUidsOfStaticdata()  : array<string|int, mixed>
Find uids of styleguide static data records
findUidsOfStyleguideEntryPages()  : array<string|int, mixed>
Returns an uid list of existing styleguide demo top level pages.

Methods

findDemoFileObjects()

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

public findDemoFileObjects([string $path = 'styleguide' ]) : array<string|int, File>
Parameters
$path : string = 'styleguide'
Return values
array<string|int, File>

findDemoFolderObject()

Find the demo folder

public findDemoFolderObject() : Folder
Return values
Folder

findFeUserGroups()

public findFeUserGroups() : array<string|int, mixed>
Return values
array<string|int, mixed>

findFeUsers()

public findFeUsers() : array<string|int, mixed>
Return values
array<string|int, mixed>

findHighestLanguageId()

Returns the highest language id from all sites

public findHighestLanguageId() : int
Return values
int

findIdsOfDemoLanguages()

Find ids of styleguide demo languages

public findIdsOfDemoLanguages() : array<string|int, mixed>
Return values
array<string|int, mixed>

List of language ids

findPidOfMainTableRecord()

"Main" tables have a single page they are located on with their possible children.

public findPidOfMainTableRecord(string $tableName) : int

The methods find this page by getting the highest uid of a page where field tx_styleguide_containsdemo is set to given table name.

Parameters
$tableName : string
Tags
throws
Exception
Return values
int

findTtContent()

Find tt_content by ctype and identifier

public findTtContent([array<string|int, mixed> $types = ['textmedia', 'textpic', 'image', 'uploads'] ][, string $identifier = 'tx_styleguide_frontend' ]) : array<string|int, mixed>
Parameters
$types : array<string|int, mixed> = ['textmedia', 'textpic', 'image', 'uploads']
$identifier : string = 'tx_styleguide_frontend'
Return values
array<string|int, mixed>

findUidsOfDemoBeGroups()

Find uids of styleguide demo be_groups

public findUidsOfDemoBeGroups() : array<string|int, mixed>
Return values
array<string|int, mixed>

List of uids

findUidsOfDemoBeUsers()

Find uids of styleguide demo be_users

public findUidsOfDemoBeUsers() : array<string|int, mixed>
Return values
array<string|int, mixed>

List of uids

findUidsOfFrontendPages()

Get all styleguide frontend page UIDs

public findUidsOfFrontendPages([array<string|int, mixed> $types = ['tx_styleguide_frontend_root', 'tx_styleguide_frontend'] ][, array<string|int, mixed> $doktype = [] ]) : array<string|int, mixed>
Parameters
$types : array<string|int, mixed> = ['tx_styleguide_frontend_root', 'tx_styleguide_frontend']
$doktype : array<string|int, mixed> = []
Return values
array<string|int, mixed>

findUidsOfStaticdata()

Find uids of styleguide static data records

public findUidsOfStaticdata() : array<string|int, mixed>
Return values
array<string|int, mixed>

List of uids

findUidsOfStyleguideEntryPages()

Returns an uid list of existing styleguide demo top level pages.

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

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.

Return values
array<string|int, mixed>

        
On this page

Search results