TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\DataHandling\PlainDataResolver Class Reference

Public Member Functions

 __construct ($tableName, array $liveIds, $sortingStatement=null)
 
 setWorkspaceId ($workspaceId)
 
 setKeepLiveIds ($keepLiveIds)
 
 setKeepDeletePlaceholder ($keepDeletePlaceholder)
 
 setKeepMovePlaceholder ($keepMovePlaceholder)
 
 get ()
 
 processVersionOverlays (array $ids)
 
 processVersionMovePlaceholders (array $ids)
 
 processSorting (array $ids)
 
 applyLiveIds (array $ids)
 

Protected Member Functions

 reindex (array $ids)
 
 isWorkspaceEnabled ()
 
 isLocalizationEnabled ()
 
 intImplode ($delimiter, array $values)
 
 getDatabaseConnection ()
 

Protected Attributes

 $tableName
 
 $liveIds
 
 $sortingStatement
 
 $workspaceId
 
 $keepLiveIds = false
 
 $keepDeletePlaceholder = false
 
 $keepMovePlaceholder = true
 
 $resolvedIds
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\DataHandling\PlainDataResolver::__construct (   $tableName,
array  $liveIds,
  $sortingStatement = null 
)

Member Function Documentation

◆ applyLiveIds()

TYPO3\CMS\Core\DataHandling\PlainDataResolver::applyLiveIds ( array  $ids)

Applies live IDs to the final result set, if the current table is enabled for workspaces and the keepLiveIds class member is enabled.

Parameters
int[]$ids
Returns
int[]

Definition at line 276 of file PlainDataResolver.php.

References TYPO3\CMS\Core\DataHandling\PlainDataResolver\getDatabaseConnection(), TYPO3\CMS\Core\DataHandling\PlainDataResolver\intImplode(), and TYPO3\CMS\Core\DataHandling\PlainDataResolver\isWorkspaceEnabled().

Referenced by TYPO3\CMS\Core\DataHandling\PlainDataResolver\get().

◆ get()

◆ getDatabaseConnection()

◆ intImplode()

TYPO3\CMS\Core\DataHandling\PlainDataResolver::intImplode (   $delimiter,
array  $values 
)
protected

◆ isLocalizationEnabled()

TYPO3\CMS\Core\DataHandling\PlainDataResolver::isLocalizationEnabled ( )
protected

◆ isWorkspaceEnabled()

◆ processSorting()

TYPO3\CMS\Core\DataHandling\PlainDataResolver::processSorting ( array  $ids)

Processes sorting of the final result set, if a sorting statement (table column/expression) is given.

Parameters
int[]$ids
Returns
int[]

Definition at line 242 of file PlainDataResolver.php.

References TYPO3\CMS\Core\DataHandling\PlainDataResolver\getDatabaseConnection(), and TYPO3\CMS\Core\DataHandling\PlainDataResolver\intImplode().

Referenced by TYPO3\CMS\Core\DataHandling\PlainDataResolver\get().

◆ processVersionMovePlaceholders()

TYPO3\CMS\Core\DataHandling\PlainDataResolver::processVersionMovePlaceholders ( array  $ids)

◆ processVersionOverlays()

◆ reindex()

TYPO3\CMS\Core\DataHandling\PlainDataResolver::reindex ( array  $ids)
protected

◆ setKeepDeletePlaceholder()

TYPO3\CMS\Core\DataHandling\PlainDataResolver::setKeepDeletePlaceholder (   $keepDeletePlaceholder)

Sets whether delete placeholders shall be kept in the final result set.

Parameters
bool$keepDeletePlaceholder
Returns
PlainDataResolver

Definition at line 109 of file PlainDataResolver.php.

References TYPO3\CMS\Core\DataHandling\PlainDataResolver\$keepDeletePlaceholder.

◆ setKeepLiveIds()

TYPO3\CMS\Core\DataHandling\PlainDataResolver::setKeepLiveIds (   $keepLiveIds)

Sets whether live IDs shall be kept in the final result set.

Parameters
bool$keepLiveIds
Returns
PlainDataResolver

Definition at line 97 of file PlainDataResolver.php.

References TYPO3\CMS\Core\DataHandling\PlainDataResolver\$keepLiveIds.

◆ setKeepMovePlaceholder()

TYPO3\CMS\Core\DataHandling\PlainDataResolver::setKeepMovePlaceholder (   $keepMovePlaceholder)

Sets whether move placeholders shall be kept in case they cannot be substituted.

Parameters
bool$keepMovePlaceholder
Returns
PlainDataResolver

Definition at line 121 of file PlainDataResolver.php.

References TYPO3\CMS\Core\DataHandling\PlainDataResolver\$keepMovePlaceholder.

◆ setWorkspaceId()

TYPO3\CMS\Core\DataHandling\PlainDataResolver::setWorkspaceId (   $workspaceId)

Sets the target workspace ID the final result shall use.

Parameters
int$workspaceId

Definition at line 86 of file PlainDataResolver.php.

References TYPO3\CMS\Core\DataHandling\PlainDataResolver\$workspaceId.

Member Data Documentation

◆ $keepDeletePlaceholder

TYPO3\CMS\Core\DataHandling\PlainDataResolver::$keepDeletePlaceholder = false
protected

◆ $keepLiveIds

TYPO3\CMS\Core\DataHandling\PlainDataResolver::$keepLiveIds = false
protected

◆ $keepMovePlaceholder

TYPO3\CMS\Core\DataHandling\PlainDataResolver::$keepMovePlaceholder = true
protected

◆ $liveIds

TYPO3\CMS\Core\DataHandling\PlainDataResolver::$liveIds
protected

Definition at line 37 of file PlainDataResolver.php.

◆ $resolvedIds

TYPO3\CMS\Core\DataHandling\PlainDataResolver::$resolvedIds
protected

◆ $sortingStatement

TYPO3\CMS\Core\DataHandling\PlainDataResolver::$sortingStatement
protected

◆ $tableName

TYPO3\CMS\Core\DataHandling\PlainDataResolver::$tableName
protected

◆ $workspaceId

TYPO3\CMS\Core\DataHandling\PlainDataResolver::$workspaceId
protected