PHP 클래스 FluidTYPO3\Flux\Service\ContentService

Main API Service for interacting with Flux-based FlexForms
상속: implements TYPO3\CMS\Core\SingletonInterface
파일 보기 프로젝트 열기: fluidtypo3/flux 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$recordService FluidTYPO3\Flux\Service\RecordService
$workspacesAwareRecordService FluidTYPO3\Flux\Service\WorkspacesAwareRecordService

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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

메소드 상세

affectRecordByRequestParameters() 공개 메소드

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
리턴 void

applyMappingArray() 보호된 메소드

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
리턴 void

createMappingArray() 보호된 메소드

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
리턴 array

fixPositionInLocalization() 공개 메소드

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 getMovePlaceholder ( integer $recordUid ) : array
$recordUid integer
리턴 array

getPreviousLocalizedRecordUid() 보호된 메소드

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
리턴 integer uid of record after which the localized record should be inserted

getTargetAreaStoredInSession() 보호된 메소드

protected getTargetAreaStoredInSession ( integer $relativeTo ) : array
$relativeTo integer
리턴 array

initializeRecord() 공개 메소드

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

initializeRecordByNewAndOldAndLanguageUids() 보호된 메소드

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 injectRecordService ( FluidTYPO3\Flux\Service\RecordService $recordService ) : void
$recordService FluidTYPO3\Flux\Service\RecordService
리턴 void

injectWorkspacesAwareRecordService() 공개 메소드

public injectWorkspacesAwareRecordService ( FluidTYPO3\Flux\Service\WorkspacesAwareRecordService $workspacesAwareRecordService ) : void
$workspacesAwareRecordService FluidTYPO3\Flux\Service\WorkspacesAwareRecordService
리턴 void

loadRecordFromDatabase() 보호된 메소드

protected loadRecordFromDatabase ( integer $uid, integer $languageUid ) : array | null
$uid integer
$languageUid integer
리턴 array | null

loadRecordsFromDatabase() 보호된 메소드

protected loadRecordsFromDatabase ( integer $parentUid ) : array | null
$parentUid integer
리턴 array | null

moveRecord() 공개 메소드

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
리턴 void

pasteAfter() 공개 메소드

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
리턴 void

updateMovePlaceholder() 보호된 메소드

protected updateMovePlaceholder ( array $row ) : void
$row array
리턴 void

updateRecordInDatabase() 보호된 메소드

protected updateRecordInDatabase ( array $row, integer $uid = NULL ) : void
$row array
$uid integer
리턴 void

프로퍼티 상세

$recordService 보호되어 있는 프로퍼티

protected RecordService,FluidTYPO3\Flux\Service $recordService
리턴 FluidTYPO3\Flux\Service\RecordService

$workspacesAwareRecordService 보호되어 있는 프로퍼티

protected WorkspacesAwareRecordService,FluidTYPO3\Flux\Service $workspacesAwareRecordService
리턴 FluidTYPO3\Flux\Service\WorkspacesAwareRecordService