GeneratorFrontend extends AbstractGenerator

FinalYes

Manage a page tree with all test / demo styleguide data

Internal
Attributes
#[Autoconfigure]
$public: true

Table of Contents

Methods

__construct()  : mixed
create()  : void
delete()  : void
injectConnectionPool()  : void
injectRecordFinder()  : void
addToFal()  : void
Add files to fileadmin/
createSiteConfiguration()  : void
Create a site configuration on new styleguide root page
deleteFalFolder()  : void
Delete files from fileadmin/
executeDataHandler()  : void
getElementContent()  : array<string|int, mixed>
Return array of all content elements to create
getUidOfLastTopLevelPage()  : int
Returns the uid of the last "top level" page (has pid 0) in the page tree. This is either a positive integer or 0 if no page exists in the page tree at all.
populateSysFileReference()  : void
Append file reference to existing content elements
populateTtContentPages()  : void
Append PIDs to tt_content field for menu_* ctype
populateTtContentRecords()  : void
Append content UID for ctype shortcut

Methods

create()

public create([string $basePath = '' ][, int $hidden = 1 ][, bool $useSiteSets = false ]) : void
Parameters
$basePath : string = ''
$hidden : int = 1
$useSiteSets : bool = false

addToFal()

Add files to fileadmin/

protected addToFal(array<string|int, mixed> $files, string $from, string $to) : void
Parameters
$files : array<string|int, mixed>
$from : string
$to : string

createSiteConfiguration()

Create a site configuration on new styleguide root page

protected createSiteConfiguration(int $topPageUid[, string $base = 'http://localhost/' ][, string $title = 'styleguide demo' ][, array<string|int, mixed> $sets = [] ]) : void
Parameters
$topPageUid : int
$base : string = 'http://localhost/'
$title : string = 'styleguide demo'
$sets : array<string|int, mixed> = []

deleteFalFolder()

Delete files from fileadmin/

protected deleteFalFolder(string $path) : void
Parameters
$path : string

executeDataHandler()

protected executeDataHandler([array<string|int, mixed> $data = [] ][, array<string|int, mixed> $commands = [] ]) : void
Parameters
$data : array<string|int, mixed> = []
$commands : array<string|int, mixed> = []

getElementContent()

Return array of all content elements to create

protected getElementContent() : array<string|int, mixed>
Return values
array<string|int, mixed>

getUidOfLastTopLevelPage()

Returns the uid of the last "top level" page (has pid 0) in the page tree. This is either a positive integer or 0 if no page exists in the page tree at all.

protected getUidOfLastTopLevelPage() : int
Return values
int

populateSysFileReference()

Append file reference to existing content elements

protected populateSysFileReference() : void

populateTtContentPages()

Append PIDs to tt_content field for menu_* ctype

protected populateTtContentPages([string $field = 'pages' ][, int $count = 5 ]) : void
Parameters
$field : string = 'pages'
$count : int = 5

populateTtContentRecords()

Append content UID for ctype shortcut

protected populateTtContentRecords([string $field = 'records' ]) : void
Parameters
$field : string = 'records'

        
On this page

Search results