CleanFlexFormsCommand extends Command

Checks if TCA records with a FlexForm includes values that don't match the connected FlexForm value

Table of Contents

Methods

__construct()  : mixed
configure()  : mixed
Configure the command by defining the name, options and arguments
cleanFlexFormRecords()  : mixed
Actually cleans the database record fields with a new FlexForm as chosen currently for this record
compareAllFlexFormsInRecord()  : array<string|int, mixed>
Check a specific record on all TCA columns if they are FlexForms and if the FlexForm values don't match to the newly defined ones.
execute()  : int
Executes the command to find and update records with FlexForms where the values do not match the datastructures
findAllDirtyFlexformsInPage()  : array<string|int, mixed>
Recursive traversal of page tree

Methods

configure()

Configure the command by defining the name, options and arguments

public configure() : mixed

cleanFlexFormRecords()

Actually cleans the database record fields with a new FlexForm as chosen currently for this record

protected cleanFlexFormRecords(array<string|int, mixed> $records, bool $dryRun, SymfonyStyle $io) : mixed
Parameters
$records : array<string|int, mixed>
$dryRun : bool
$io : SymfonyStyle

compareAllFlexFormsInRecord()

Check a specific record on all TCA columns if they are FlexForms and if the FlexForm values don't match to the newly defined ones.

protected compareAllFlexFormsInRecord(string $tableName, int $uid[, array<string|int, mixed> $dirtyFlexFormFields = [] ]) : array<string|int, mixed>
Parameters
$tableName : string

Table name

$uid : int

UID of record in processing

$dirtyFlexFormFields : array<string|int, mixed> = []

the existing FlexForm fields

Return values
array<string|int, mixed>

the updated list of dirty FlexForm fields

execute()

Executes the command to find and update records with FlexForms where the values do not match the datastructures

protected execute(InputInterface $input, OutputInterface $output) : int
Parameters
$input : InputInterface
$output : OutputInterface
Return values
int

findAllDirtyFlexformsInPage()

Recursive traversal of page tree

protected findAllDirtyFlexformsInPage(int $pageId, int $depth[, array<string|int, mixed> $dirtyFlexFormFields = [] ]) : array<string|int, mixed>
Parameters
$pageId : int

Page root id

$depth : int

Depth

$dirtyFlexFormFields : array<string|int, mixed> = []

the list of all previously found flexform fields

Return values
array<string|int, mixed>

        
On this page

Search results