PHP Class FluidTYPO3\Flux\Service\ContentService

Main API Service for interacting with Flux-based FlexForms
Inheritance: implements TYPO3\CMS\Core\SingletonInterface
Afficher le fichier Open project: fluidtypo3/flux Class Usage Examples

Protected Properties

Свойство Type Description
$recordService FluidTYPO3\Flux\Service\RecordService
$workspacesAwareRecordService FluidTYPO3\Flux\Service\WorkspacesAwareRecordService

Méthodes publiques

Méthode Description
affectRecordByRequestParameters ( mixed $id, array &$row, array $parameters, TYPO3\CMS\Core\DataHandling\DataHandler $tceMain ) : void
fixPositionInLocalization ( integer $uid, integer $languageUid, array &$defaultLanguageRecord, TYPO3\CMS\Core\DataHandling\DataHandler $reference )
initializeRecord ( String $id, array &$row, TYPO3\CMS\Core\DataHandling\DataHandler $tceMain ) : void
injectRecordService ( FluidTYPO3\Flux\Service\RecordService $recordService ) : void
injectWorkspacesAwareRecordService ( FluidTYPO3\Flux\Service\WorkspacesAwareRecordService $workspacesAwareRecordService ) : void
moveRecord ( array &$row, string &$relativeTo, array $parameters, TYPO3\CMS\Core\DataHandling\DataHandler $tceMain ) : void Move the content element depending on various request/row parameters.
pasteAfter ( string $command, array &$row, array $parameters, TYPO3\CMS\Core\DataHandling\DataHandler $tceMain ) : void Paste one record after another record.

Méthodes protégées

Méthode Description
applyMappingArray ( array $mappingArray, integer $pid, integer $colPos, string $area, integer $parentUid, string $table, integer $relativeUid, array | null $relativeRecord, TYPO3\CMS\Core\DataHandling\DataHandler $tceMain ) : void
createMappingArray ( string $command, string $subCommand, integer $id, array $row, TYPO3\CMS\Core\DataHandling\DataHandler $tceMain ) : array
getMovePlaceholder ( integer $recordUid ) : array
getPreviousLocalizedRecordUid ( integer $uid, integer $language, TYPO3\CMS\Core\DataHandling\DataHandler $reference ) : integer Returning uid of previous localized record, if any, for tables with a "sortby" column Used when new localized records are created so that localized records are sorted in the same order as the default language records
getTargetAreaStoredInSession ( integer $relativeTo ) : array
initializeRecordByNewAndOldAndLanguageUids ( array $row, integer $newUid, integer $oldUid, integer $newLanguageUid, string $languageFieldName, TYPO3\CMS\Core\DataHandling\DataHandler $tceMain )
loadRecordFromDatabase ( integer $uid, integer $languageUid ) : array | null
loadRecordsFromDatabase ( integer $parentUid ) : array | null
updateMovePlaceholder ( array $row ) : void
updateRecordInDatabase ( array $row, integer $uid = NULL ) : void

Method Details

affectRecordByRequestParameters() public méthode

public affectRecordByRequestParameters ( mixed $id, array &$row, array $parameters, TYPO3\CMS\Core\DataHandling\DataHandler $tceMain ) : void
$id mixed
$row array
$parameters array
$tceMain TYPO3\CMS\Core\DataHandling\DataHandler
Résultat void

applyMappingArray() protected méthode

protected applyMappingArray ( array $mappingArray, integer $pid, integer $colPos, string $area, integer $parentUid, string $table, integer $relativeUid, array | null $relativeRecord, TYPO3\CMS\Core\DataHandling\DataHandler $tceMain ) : void
$mappingArray array
$pid integer
$colPos integer
$area string
$parentUid integer
$table string
$relativeUid integer
$relativeRecord array | null
$tceMain TYPO3\CMS\Core\DataHandling\DataHandler
Résultat void

createMappingArray() protected méthode

protected createMappingArray ( string $command, string $subCommand, integer $id, array $row, TYPO3\CMS\Core\DataHandling\DataHandler $tceMain ) : array
$command string
$subCommand string
$id integer
$row array
$tceMain TYPO3\CMS\Core\DataHandling\DataHandler
Résultat array

fixPositionInLocalization() public méthode

public fixPositionInLocalization ( integer $uid, integer $languageUid, array &$defaultLanguageRecord, TYPO3\CMS\Core\DataHandling\DataHandler $reference )
$uid integer uid of record in default language
$languageUid integer sys_language_uid of language for the localized record
$defaultLanguageRecord array record in default language (from table tt_content)
$reference TYPO3\CMS\Core\DataHandling\DataHandler

getMovePlaceholder() protected méthode

protected getMovePlaceholder ( integer $recordUid ) : array
$recordUid integer
Résultat array

getPreviousLocalizedRecordUid() protected méthode

This is a port from DataHandler::getPreviousLocalizedRecordUid that respects tx_flux_parent and tx_flux_column!
protected getPreviousLocalizedRecordUid ( integer $uid, integer $language, TYPO3\CMS\Core\DataHandling\DataHandler $reference ) : integer
$uid integer Uid of default language record
$language integer Language of localization
$reference TYPO3\CMS\Core\DataHandling\DataHandler
Résultat integer uid of record after which the localized record should be inserted

getTargetAreaStoredInSession() protected méthode

protected getTargetAreaStoredInSession ( integer $relativeTo ) : array
$relativeTo integer
Résultat array

initializeRecord() public méthode

public initializeRecord ( String $id, array &$row, TYPO3\CMS\Core\DataHandling\DataHandler $tceMain ) : void
$id String
$row array
$tceMain TYPO3\CMS\Core\DataHandling\DataHandler
Résultat void

initializeRecordByNewAndOldAndLanguageUids() protected méthode

protected initializeRecordByNewAndOldAndLanguageUids ( array $row, integer $newUid, integer $oldUid, integer $newLanguageUid, string $languageFieldName, TYPO3\CMS\Core\DataHandling\DataHandler $tceMain )
$row array
$newUid integer
$oldUid integer
$newLanguageUid integer
$languageFieldName string
$tceMain TYPO3\CMS\Core\DataHandling\DataHandler

injectRecordService() public méthode

public injectRecordService ( FluidTYPO3\Flux\Service\RecordService $recordService ) : void
$recordService FluidTYPO3\Flux\Service\RecordService
Résultat void

injectWorkspacesAwareRecordService() public méthode

public injectWorkspacesAwareRecordService ( FluidTYPO3\Flux\Service\WorkspacesAwareRecordService $workspacesAwareRecordService ) : void
$workspacesAwareRecordService FluidTYPO3\Flux\Service\WorkspacesAwareRecordService
Résultat void

loadRecordFromDatabase() protected méthode

protected loadRecordFromDatabase ( integer $uid, integer $languageUid ) : array | null
$uid integer
$languageUid integer
Résultat array | null

loadRecordsFromDatabase() protected méthode

protected loadRecordsFromDatabase ( integer $parentUid ) : array | null
$parentUid integer
Résultat array | null

moveRecord() public méthode

Move the content element depending on various request/row parameters.
public moveRecord ( array &$row, string &$relativeTo, array $parameters, TYPO3\CMS\Core\DataHandling\DataHandler $tceMain ) : void
$row array The row which may, may not, trigger moving.
$relativeTo string If not-zero moves record to after this UID (negative) or top of this colPos (positive)
$parameters array List of parameters defining the move operation target
$tceMain TYPO3\CMS\Core\DataHandling\DataHandler
Résultat void

pasteAfter() public méthode

Paste one record after another record.
public pasteAfter ( string $command, array &$row, array $parameters, TYPO3\CMS\Core\DataHandling\DataHandler $tceMain ) : void
$command string The command which caused pasting - "copy" is targeted in order to determine "reference" pasting.
$row array The record to be pasted, by reference. Changes original $row
$parameters array List of parameters defining the paste operation target
$tceMain TYPO3\CMS\Core\DataHandling\DataHandler
Résultat void

updateMovePlaceholder() protected méthode

protected updateMovePlaceholder ( array $row ) : void
$row array
Résultat void

updateRecordInDatabase() protected méthode

protected updateRecordInDatabase ( array $row, integer $uid = NULL ) : void
$row array
$uid integer
Résultat void

Property Details

$recordService protected_oe property

protected RecordService,FluidTYPO3\Flux\Service $recordService
Résultat FluidTYPO3\Flux\Service\RecordService

$workspacesAwareRecordService protected_oe property

protected WorkspacesAwareRecordService,FluidTYPO3\Flux\Service $workspacesAwareRecordService
Résultat FluidTYPO3\Flux\Service\WorkspacesAwareRecordService