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

Public Member Functions

 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)
 
 getObjectCountByQuery (\TYPO3\CMS\Extbase\Persistence\QueryInterface $query)
 
 getObjectDataByQuery (\TYPO3\CMS\Extbase\Persistence\QueryInterface $query)
 
 getUidOfAlreadyPersistedValueObject (\TYPO3\CMS\Extbase\DomainObject\AbstractValueObject $object)
 

Detailed Description

Storage backend interface

Definition at line 20 of file BackendInterface.php.

Member Function Documentation

◆ addRow()

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

Adds a row to the storage

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

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend.

◆ getMaxValueFromTable()

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

Fetches maximal value for given table column

Parameters
string$tableNameThe database table name
array$whereAn array of where array('fieldname' => value). This array will be transformed to a WHERE clause
string$columnNamecolumn name to get the max value from
Returns
mixed the max value

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend.

◆ getObjectCountByQuery()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface::getObjectCountByQuery ( \TYPO3\CMS\Extbase\Persistence\QueryInterface  $query)

Returns the number of items matching the query.

Parameters
\TYPO3\CMS\Extbase\Persistence\QueryInterface$query
Returns
int

◆ getObjectDataByQuery()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface::getObjectDataByQuery ( \TYPO3\CMS\Extbase\Persistence\QueryInterface  $query)

Returns the object data matching the $query.

Parameters
\TYPO3\CMS\Extbase\Persistence\QueryInterface$query
Returns
array

◆ getUidOfAlreadyPersistedValueObject()

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

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

Parameters
\TYPO3\CMS\Extbase\DomainObject\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!

◆ removeRow()

TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface::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). This array will be transformed to a WHERE clause
bool$isRelationTRUE if we are currently inserting into a relation table, FALSE by default
Returns
mixed|void

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend.

◆ updateRelationTableRow()

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

Updates a relation row in the storage

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

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend.

◆ updateRow()

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

Updates a row in the storage

Parameters
string$tableNameThe database table name
array$fieldValuesThe fieldValues to update
bool$isRelationTRUE if we are currently inserting into a relation table, FALSE by default
Returns
mixed|void

Implemented in TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend.