StaticData extends AbstractTableHandler implements TableHandlerInterface
FinalYes
Generate data for table tx_styleguide_staticdata
Table of Contents
Interfaces
- TableHandlerInterface
- Interface for table handlers
Properties
- $tableName : string
Methods
- __construct() : mixed
- handle() : void
- Adds rows
- injectRecordFinder() : void
- match() : bool
- Match if given table name is registered table name
- copyRecordToLanguage() : array<string|int, mixed>
- Create a 'copy / free mode' localization
- generateTranslatedRecords() : void
- localizeRecord() : array<string|int, mixed>
- Create a 'translate / connected mode' localization
Properties
$tableName
protected
string
$tableName
= 'tx_styleguide_staticdata'
Table name to match
Methods
__construct()
public
__construct(ConnectionPool $connectionPool, RecordFinder $recordFinder) : mixed
Parameters
- $connectionPool : ConnectionPool
- $recordFinder : RecordFinder
handle()
Adds rows
public
handle(string $tableName) : void
Parameters
- $tableName : string
injectRecordFinder()
public
injectRecordFinder(RecordFinder $recordFinder) : void
Parameters
- $recordFinder : RecordFinder
match()
Match if given table name is registered table name
public
match(string $tableName) : bool
Parameters
- $tableName : string
Return values
boolcopyRecordToLanguage()
Create a 'copy / free mode' localization
protected
copyRecordToLanguage(string $tableName, int $uid, int $languageId) : array<string|int, mixed>
Parameters
- $tableName : string
- $uid : int
- $languageId : int
Return values
array<string|int, mixed>generateTranslatedRecords()
protected
generateTranslatedRecords(string $tableName, array<string|int, mixed> $fieldValues) : void
Parameters
- $tableName : string
- $fieldValues : array<string|int, mixed>
localizeRecord()
Create a 'translate / connected mode' localization
protected
localizeRecord(string $tableName, int $uid, int $languageId) : array<string|int, mixed>
Parameters
- $tableName : string
- $uid : int
- $languageId : int