TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend:
TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 injectDataMapper (DataMapper $dataMapper)
 
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectCacheService (CacheService $cacheService)
 
 injectCacheManager (CacheManager $cacheManager)
 
 injectEnvironmentService (EnvironmentService $environmentService)
 
 injectQueryParser (Typo3DbQueryParser $queryParser)
 
 __construct ()
 
 initializeObject ()
 
 addRow ($tableName, array $fieldValues, $isRelation=false)
 
 updateRow ($tableName, array $fieldValues, $isRelation=false)
 
 updateRelationTableRow ($tableName, array $fieldValues)
 
 removeRow ($tableName, array $where, $isRelation=false)
 
 getMaxValueFromTable ($tableName, array $where, $columnName)
 
 getRowByIdentifier ($tableName, array $where)
 
 getObjectDataByQuery (QueryInterface $query)
 
 getObjectCountByQuery (QueryInterface $query)
 
 quoteTextValueCallback ($value, $parameters)
 
 getUidOfAlreadyPersistedValueObject (AbstractValueObject $object)
 
- Public Member Functions inherited from TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface
 getObjectCountByQuery (\TYPO3\CMS\Extbase\Persistence\QueryInterface $query)
 
 getObjectDataByQuery (\TYPO3\CMS\Extbase\Persistence\QueryInterface $query)
 
 getUidOfAlreadyPersistedValueObject (\TYPO3\CMS\Extbase\DomainObject\AbstractValueObject $object)
 

Protected Member Functions

 resolveWhereStatement (array $where, $tableName='foo')
 
 createQueryCommandParametersFromStatementParts (array $statementParts)
 
 getRowsByStatementParts (QueryInterface $query)
 
 getRowsFromDatabase (array $statementParts)
 
 getRowsFromPreparedDatabase (array $statementParts, array $parameters)
 
 getObjectDataByRawQuery (Qom\Statement $statement)
 
 getStatementParts ($query, $resolveParameterPlaceholders=true)
 
 resolveParameterPlaceholders (array $statementParts, array $parameters)
 
 replacePlaceholders (&$sqlString, array $parameters, $tableName='foo')
 
 addVisibilityConstraintStatement (QuerySettingsInterface $querySettings, $tableName, array &$sql)
 
 getFrontendConstraintStatement ($tableName, $ignoreEnableFields, array $enableFieldsToBeIgnored=[], $includeDeleted)
 
 getBackendConstraintStatement ($tableName, $ignoreEnableFields, $includeDeleted)
 
 doLanguageAndWorkspaceOverlay (Qom\SourceInterface $source, array $rows, QuerySettingsInterface $querySettings, $workspaceUid=null)
 
 getPageRepository ()
 
 checkSqlErrors ($sql='')
 
 clearPageCache ($tableName, $uid)
 
 getQueryCacheEntry ($entryIdentifier)
 
 setQueryCacheEntry ($entryIdentifier, $variable)
 
 getTSFE ()
 
 getBeUser ()
 

Protected Attributes

 $databaseHandle
 
 $dataMapper
 
 $pageRepository
 
 $pageTSConfigCache = []
 
 $configurationManager
 
 $cacheService
 
 $cacheManager
 
 $queryCache
 
 $environmentService
 
 $queryParser
 
 $queryRuntimeCache = []
 

Detailed Description

A Storage backend

Definition at line 41 of file Typo3DbBackend.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::__construct ( )

Constructor. takes the database handle from $GLOBALS['TYPO3_DB']

Definition at line 157 of file Typo3DbBackend.php.

References $GLOBALS.

Member Function Documentation

◆ addRow()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::addRow (   $tableName,
array  $fieldValues,
  $isRelation = false 
)

Adds a row to the storage

Parameters
string$tableNameThe database table name
array$fieldValuesThe row to be inserted
bool$isRelationTRUE if we are currently inserting into a relation table, FALSE by default
Returns
int The uid of the inserted row

Implements TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface.

Definition at line 180 of file Typo3DbBackend.php.

References $uid, TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\checkSqlErrors(), and TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\clearPageCache().

◆ addVisibilityConstraintStatement()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::addVisibilityConstraintStatement ( QuerySettingsInterface  $querySettings,
  $tableName,
array &  $sql 
)
protected

◆ checkSqlErrors()

◆ clearPageCache()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::clearPageCache (   $tableName,
  $uid 
)
protected

Clear the TYPO3 page cache for the given record. If the record lies on a page, then we clear the cache of this page. If the record has no PID column, we clear the cache of the current page as best-effort.

Much of this functionality is taken from DataHandler::clear_cache() which unfortunately only works with logged-in BE user.

Parameters
string$tableNameTable name of the record
int$uidUID of the record
Returns
void

Definition at line 911 of file Typo3DbBackend.php.

References $uid, TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface\CONFIGURATION_TYPE_FRAMEWORK, TYPO3\CMS\Backend\Utility\BackendUtility\getPagesTSconfig(), TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getTSFE(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\addRow(), TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\removeRow(), and TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\updateRow().

◆ createQueryCommandParametersFromStatementParts()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::createQueryCommandParametersFromStatementParts ( array  $statementParts)
protected

Creates the parameters for the query methods of the database methods in the TYPO3 core, from an array that came from a parsed query.

Parameters
array$statementParts
Exceptions

Definition at line 375 of file Typo3DbBackend.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getObjectCountByQuery(), TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getRowsFromDatabase(), and TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getRowsFromPreparedDatabase().

◆ doLanguageAndWorkspaceOverlay()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::doLanguageAndWorkspaceOverlay ( Qom\SourceInterface  $source,
array  $rows,
QuerySettingsInterface  $querySettings,
  $workspaceUid = null 
)
protected

Performs workspace and language overlay on the given row array. The language and workspace id is automatically detected (depending on FE or BE context). You can also explicitly set the language/workspace id.

Parameters
Qom\SourceInterface$sourceThe source (selector od join)
array$rows
QuerySettingsInterface$querySettingsThe TYPO3 CMS specific query settings
null | int$workspaceUid
Returns
array

Definition at line 787 of file Typo3DbBackend.php.

References $GLOBALS, TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\$pageRepository, TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getBeUser(), TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface\getLanguageMode(), TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface\getLanguageUid(), TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getPageRepository(), TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getTSFE(), and TYPO3\CMS\Backend\Utility\BackendUtility\isTableWorkspaceEnabled().

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getObjectDataByQuery().

◆ getBackendConstraintStatement()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::getBackendConstraintStatement (   $tableName,
  $ignoreEnableFields,
  $includeDeleted 
)
protected

Returns constraint statement for backend context

Parameters
string$tableName
bool$ignoreEnableFieldsA flag indicating whether the enable fields should be ignored
bool$includeDeletedA flag indicating whether deleted records should be included
Returns
string
Todo:
remove after getUidOfAlreadyPersistedValueObject is adjusted, this was moved to queryParser

Definition at line 765 of file Typo3DbBackend.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\BEenableFields(), and TYPO3\CMS\Backend\Utility\BackendUtility\deleteClause().

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\addVisibilityConstraintStatement().

◆ getBeUser()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::getBeUser ( )
protected
Returns
BackendUserAuthentication|null

Definition at line 993 of file Typo3DbBackend.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\doLanguageAndWorkspaceOverlay().

◆ getFrontendConstraintStatement()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::getFrontendConstraintStatement (   $tableName,
  $ignoreEnableFields,
array  $enableFieldsToBeIgnored = [],
  $includeDeleted 
)
protected

Returns constraint statement for frontend context

Parameters
string$tableName
bool$ignoreEnableFieldsA flag indicating whether the enable fields should be ignored
array$enableFieldsToBeIgnoredIf $ignoreEnableFields is true, this array specifies enable fields to be ignored. If it is NULL or an empty array (default) all enable fields are ignored.
bool$includeDeletedA flag indicating whether deleted records should be included
Returns
string
Exceptions
Exception

Definition at line 738 of file Typo3DbBackend.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getPageRepository().

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\addVisibilityConstraintStatement().

◆ getMaxValueFromTable()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::getMaxValueFromTable (   $tableName,
array  $where,
  $columnName 
)

Fetches maximal value for given table column from database.

Parameters
string$tableNameThe database table name
array$whereAn array of where array('fieldname' => value).
string$columnNamecolumn name to get the max value from
Returns
mixed the max value

Implements TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface.

Definition at line 295 of file Typo3DbBackend.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\checkSqlErrors(), and TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\resolveWhereStatement().

◆ getObjectCountByQuery()

◆ getObjectDataByQuery()

◆ getObjectDataByRawQuery()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::getObjectDataByRawQuery ( Qom\Statement  $statement)
protected

Returns the object data using a custom statement

Parameters
Qom\Statement$statement
Returns
array

Definition at line 470 of file Typo3DbBackend.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\checkSqlErrors().

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getObjectDataByQuery().

◆ getPageRepository()

◆ getQueryCacheEntry()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::getQueryCacheEntry (   $entryIdentifier)
protected

Finds and returns a variable value from the query cache.

Parameters
string$entryIdentifierIdentifier of the cache entry to fetch
Returns
mixed The value

Definition at line 961 of file Typo3DbBackend.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getStatementParts().

◆ getRowByIdentifier()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::getRowByIdentifier (   $tableName,
array  $where 
)

Fetches row data from the database

Parameters
string$tableName
array$whereAn array of where array('fieldname' => value).
Returns
array|bool

Definition at line 317 of file Typo3DbBackend.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\checkSqlErrors(), and TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\resolveWhereStatement().

◆ getRowsByStatementParts()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::getRowsByStatementParts ( QueryInterface  $query)
protected

◆ getRowsFromDatabase()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::getRowsFromDatabase ( array  $statementParts)
protected

Fetches the rows directly from the database, not using prepared statement

Parameters
array$statementParts
Returns
array the result

Definition at line 422 of file Typo3DbBackend.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\checkSqlErrors(), and TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\createQueryCommandParametersFromStatementParts().

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getRowsByStatementParts().

◆ getRowsFromPreparedDatabase()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::getRowsFromPreparedDatabase ( array  $statementParts,
array  $parameters 
)
protected

Fetches the rows from the database, using prepared statement

Parameters
array$statementParts
array$parameters
Returns
array the result

Definition at line 445 of file Typo3DbBackend.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\createQueryCommandParametersFromStatementParts().

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getRowsByStatementParts().

◆ getStatementParts()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::getStatementParts (   $query,
  $resolveParameterPlaceholders = true 
)
protected

Looks for the query in cache or builds it up otherwise

Parameters
QueryInterface$query
bool$resolveParameterPlaceholderswhether to resolve the parameters or leave the placeholders
Returns
array
Exceptions

The queryParser will preparse the query to get the query's hash and parameters. If the hash is found in the cache and useQueryCaching is enabled, extbase will then take the string representation from cache and build a prepared query with the parameters found.

Otherwise extbase will parse the complete query, build the string representation and run a usual query.

Definition at line 543 of file Typo3DbBackend.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getQueryCacheEntry(), TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\resolveParameterPlaceholders(), and TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\setQueryCacheEntry().

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getObjectCountByQuery(), and TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getRowsByStatementParts().

◆ getTSFE()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::getTSFE ( )
protected

◆ getUidOfAlreadyPersistedValueObject()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::getUidOfAlreadyPersistedValueObject ( AbstractValueObject  $object)

Checks if a Value Object equal to the given Object exists in the data base

Parameters
AbstractValueObject$objectThe Value Object
Returns
mixed The matching uid if an object was found, else FALSE
Todo:
this is the last monster in this persistence series. refactor!

Definition at line 621 of file Typo3DbBackend.php.

References $sql, TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject\_getProperties(), TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\addVisibilityConstraintStatement(), TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\checkSqlErrors(), and TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\replacePlaceholders().

◆ initializeObject()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::initializeObject ( )

Lifecycle method

Returns
void

Definition at line 167 of file Typo3DbBackend.php.

◆ injectCacheManager()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::injectCacheManager ( CacheManager  $cacheManager)
Parameters
CacheManager$cacheManager

Definition at line 133 of file Typo3DbBackend.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\$cacheManager.

◆ injectCacheService()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::injectCacheService ( CacheService  $cacheService)
Parameters
CacheService$cacheService

Definition at line 125 of file Typo3DbBackend.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\$cacheService.

◆ injectConfigurationManager()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::injectConfigurationManager ( ConfigurationManagerInterface  $configurationManager)
Parameters
ConfigurationManagerInterface$configurationManager

Definition at line 117 of file Typo3DbBackend.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\$configurationManager.

◆ injectDataMapper()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::injectDataMapper ( DataMapper  $dataMapper)
Parameters
DataMapper$dataMapper

Definition at line 109 of file Typo3DbBackend.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\$dataMapper.

◆ injectEnvironmentService()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::injectEnvironmentService ( EnvironmentService  $environmentService)
Parameters
EnvironmentService$environmentService

Definition at line 141 of file Typo3DbBackend.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\$environmentService.

◆ injectQueryParser()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::injectQueryParser ( Typo3DbQueryParser  $queryParser)

◆ quoteTextValueCallback()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::quoteTextValueCallback (   $value,
  $parameters 
)

Will be called by the data mapper to quote string values.

Parameters
string$valueThe value to be quoted.
array$parametersAdditional parameters array currently containing the "tablename" key.
Returns
string The quoted string.

Definition at line 609 of file Typo3DbBackend.php.

◆ removeRow()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::removeRow (   $tableName,
array  $where,
  $isRelation = false 
)

Deletes a row in the storage

Parameters
string$tableNameThe database table name
array$whereAn array of where array('fieldname' => value).
bool$isRelationTRUE if we are currently manipulating a relation table, FALSE by default
Returns
bool

Implements TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface.

Definition at line 272 of file Typo3DbBackend.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\checkSqlErrors(), TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\clearPageCache(), and TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\resolveWhereStatement().

◆ replacePlaceholders()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::replacePlaceholders ( $sqlString,
array  $parameters,
  $tableName = 'foo' 
)
protected

Replace query placeholders in a query part by the given parameters.

Parameters
string&$sqlStringThe query part with placeholders
array$parametersThe parameters
string$tableName
Exceptions
Exception
Deprecated:
since 6.2, will be removed two versions later
Todo:
add deprecation notice after getUidOfAlreadyPersistedValueObject is adjusted

Definition at line 671 of file Typo3DbBackend.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getUidOfAlreadyPersistedValueObject().

◆ resolveParameterPlaceholders()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::resolveParameterPlaceholders ( array  $statementParts,
array  $parameters 
)
protected

Replaces the parameters in the queryStructure with given values

Parameters
array$statementParts
array$parameters
Returns
array

Definition at line 590 of file Typo3DbBackend.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getStatementParts().

◆ resolveWhereStatement()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::resolveWhereStatement ( array  $where,
  $tableName = 'foo' 
)
protected

Converts an array to an AND concatenated where statement

Parameters
array$wherearray('fieldName' => 'fieldValue')
string$tableNametable to use for escaping config
Returns
string

Definition at line 337 of file Typo3DbBackend.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getMaxValueFromTable(), TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getRowByIdentifier(), TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\removeRow(), and TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\updateRelationTableRow().

◆ setQueryCacheEntry()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::setQueryCacheEntry (   $entryIdentifier,
  $variable 
)
protected

Saves the value of a PHP variable in the query cache.

Parameters
string$entryIdentifierAn identifier used for this cache entry
mixed$variableThe query to cache
Returns
void

Definition at line 976 of file Typo3DbBackend.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\getStatementParts().

◆ updateRelationTableRow()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::updateRelationTableRow (   $tableName,
array  $fieldValues 
)

Updates a relation row in the storage.

Parameters
string$tableNameThe database relation table name
array$fieldValuesThe row to be updated
Returns
bool
Exceptions

Implements TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface.

Definition at line 232 of file Typo3DbBackend.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\checkSqlErrors(), and TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\resolveWhereStatement().

◆ updateRow()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::updateRow (   $tableName,
array  $fieldValues,
  $isRelation = false 
)

Updates a row in the storage

Parameters
string$tableNameThe database table name
array$fieldValuesThe row to be updated
bool$isRelationTRUE if we are currently inserting into a relation table, FALSE by default
Returns
bool
Exceptions

Implements TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface.

Definition at line 205 of file Typo3DbBackend.php.

References $uid, TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\checkSqlErrors(), and TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend\clearPageCache().

Member Data Documentation

◆ $cacheManager

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::$cacheManager
protected

◆ $cacheService

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::$cacheService
protected

◆ $configurationManager

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::$configurationManager
protected

◆ $databaseHandle

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::$databaseHandle
protected

Definition at line 48 of file Typo3DbBackend.php.

◆ $dataMapper

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::$dataMapper
protected

◆ $environmentService

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::$environmentService
protected

◆ $pageRepository

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::$pageRepository
protected

◆ $pageTSConfigCache

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::$pageTSConfigCache = []
protected

Definition at line 67 of file Typo3DbBackend.php.

◆ $queryCache

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::$queryCache
protected

Definition at line 87 of file Typo3DbBackend.php.

◆ $queryParser

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::$queryParser
protected

◆ $queryRuntimeCache

TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend::$queryRuntimeCache = []
protected

Definition at line 104 of file Typo3DbBackend.php.