TYPO3
7.6
|
Public Member Functions | |
__construct ($tableName, array $liveIds, $sortingStatement=null) | |
setWorkspaceId ($workspaceId) | |
setKeepLiveIds ($keepLiveIds) | |
setKeepDeletePlaceholder ($keepDeletePlaceholder) | |
get () | |
Protected Member Functions | |
processVersionOverlays (array $ids) | |
processVersionMovePlaceholders (array $ids) | |
processSorting (array $ids) | |
applyLiveIds (array $ids) | |
reindex (array $ids) | |
isWorkspaceEnabled () | |
isLocalizationEnabled () | |
intImplode ($delimiter, array $values) | |
getDatabaseConnection () | |
Protected Attributes | |
$tableName | |
$liveIds | |
$sortingStatement | |
$workspaceId | |
$keepLiveIds = false | |
$keepDeletePlaceholder = false | |
$resolvedIds | |
Plain data resolving.
This component resolves data constraints for given IDs of a particular table on a plain/raw database level. Thus, workspaces placeholders and overlay related resorting is applied automatically.
Definition at line 27 of file PlainDataResolver.php.
__construct | ( | $tableName, | |
array | $liveIds, | ||
$sortingStatement = null |
|||
) |
string | $tableName | |
int[] | $liveIds | |
NULL | string | $sortingStatement |
Definition at line 69 of file PlainDataResolver.php.
References PlainDataResolver\$sortingStatement, PlainDataResolver\$tableName, and PlainDataResolver\reindex().
|
protected |
Applies live IDs to the final result set, if the current table is enabled for workspaces and the keepLiveIds class member is enabled.
int[] | $ids |
Definition at line 238 of file PlainDataResolver.php.
References PlainDataResolver\getDatabaseConnection(), PlainDataResolver\intImplode(), PlainDataResolver\isWorkspaceEnabled(), and PlainDataResolver\reindex().
Referenced by PlainDataResolver\get().
get | ( | ) |
Definition at line 109 of file PlainDataResolver.php.
References PlainDataResolver\$resolvedIds, PlainDataResolver\applyLiveIds(), PlainDataResolver\processSorting(), and PlainDataResolver\processVersionOverlays().
|
protected |
Definition at line 315 of file PlainDataResolver.php.
References $GLOBALS.
Referenced by PlainDataResolver\applyLiveIds(), PlainDataResolver\intImplode(), PlainDataResolver\processSorting(), PlainDataResolver\processVersionMovePlaceholders(), and PlainDataResolver\processVersionOverlays().
|
protected |
Implodes an array of casted integer values.
string | $delimiter | |
array | $values |
Definition at line 307 of file PlainDataResolver.php.
References PlainDataResolver\getDatabaseConnection().
Referenced by PlainDataResolver\applyLiveIds(), PlainDataResolver\processSorting(), PlainDataResolver\processVersionMovePlaceholders(), and PlainDataResolver\processVersionOverlays().
|
protected |
Definition at line 295 of file PlainDataResolver.php.
References BackendUtility\isTableLocalizable().
|
protected |
Definition at line 287 of file PlainDataResolver.php.
References BackendUtility\isTableWorkspaceEnabled().
Referenced by PlainDataResolver\applyLiveIds(), PlainDataResolver\processVersionMovePlaceholders(), and PlainDataResolver\processVersionOverlays().
|
protected |
Processes sorting of the final result set, if a sorting statement (table column/expression) is given.
int[] | $ids |
Definition at line 205 of file PlainDataResolver.php.
References PlainDataResolver\getDatabaseConnection(), PlainDataResolver\intImplode(), and PlainDataResolver\reindex().
Referenced by PlainDataResolver\get().
|
protected |
Processes and resolves move placeholders on the final result set.
int[] | $ids |
Definition at line 167 of file PlainDataResolver.php.
References PlainDataResolver\getDatabaseConnection(), PlainDataResolver\intImplode(), PlainDataResolver\isWorkspaceEnabled(), VersionState\MOVE_PLACEHOLDER, and PlainDataResolver\reindex().
Referenced by PlainDataResolver\processVersionOverlays().
|
protected |
Processes version overlays on the final result set.
int[] | $ids |
Definition at line 129 of file PlainDataResolver.php.
References Enumeration\cast(), VersionState\DELETE_PLACEHOLDER, PlainDataResolver\getDatabaseConnection(), PlainDataResolver\intImplode(), PlainDataResolver\isWorkspaceEnabled(), PlainDataResolver\processVersionMovePlaceholders(), and PlainDataResolver\reindex().
Referenced by PlainDataResolver\get().
|
protected |
Re-indexes the given IDs.
int[] | $ids |
Definition at line 274 of file PlainDataResolver.php.
Referenced by PlainDataResolver\__construct(), PlainDataResolver\applyLiveIds(), PlainDataResolver\processSorting(), PlainDataResolver\processVersionMovePlaceholders(), and PlainDataResolver\processVersionOverlays().
setKeepDeletePlaceholder | ( | $keepDeletePlaceholder | ) |
Sets whether delete placeholders shall be kept in the final result set.
bool | $keepDeletePlaceholder |
Definition at line 101 of file PlainDataResolver.php.
References PlainDataResolver\$keepDeletePlaceholder.
setKeepLiveIds | ( | $keepLiveIds | ) |
Sets whether live IDs shall be kept in the final result set.
bool | $keepLiveIds |
Definition at line 91 of file PlainDataResolver.php.
References PlainDataResolver\$keepLiveIds.
setWorkspaceId | ( | $workspaceId | ) |
Sets the target workspace ID the final result shall use.
int | $workspaceId |
Definition at line 81 of file PlainDataResolver.php.
References PlainDataResolver\$workspaceId.
|
protected |
Definition at line 57 of file PlainDataResolver.php.
Referenced by PlainDataResolver\setKeepDeletePlaceholder().
|
protected |
Definition at line 52 of file PlainDataResolver.php.
Referenced by PlainDataResolver\setKeepLiveIds().
|
protected |
Definition at line 37 of file PlainDataResolver.php.
|
protected |
Definition at line 62 of file PlainDataResolver.php.
Referenced by PlainDataResolver\get().
|
protected |
Definition at line 42 of file PlainDataResolver.php.
Referenced by PlainDataResolver\__construct().
|
protected |
Definition at line 32 of file PlainDataResolver.php.
Referenced by PlainDataResolver\__construct().
|
protected |
Definition at line 47 of file PlainDataResolver.php.
Referenced by PlainDataResolver\setWorkspaceId().