‪TYPO3CMS  9.5
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

int addRow ($tableName, array $fieldValues, $isRelation=false)
 
mixed void updateRow ($tableName, array $fieldValues, $isRelation=false)
 
bool updateRelationTableRow ($tableName, array $fieldValues)
 
mixed void removeRow ($tableName, array $where, $isRelation=false)
 
mixed getMaxValueFromTable ($tableName, array $where, $columnName)
 
int getObjectCountByQuery (\TYPO3\CMS\Extbase\Persistence\QueryInterface $query)
 
array getObjectDataByQuery (\TYPO3\CMS\Extbase\Persistence\QueryInterface $query)
 
mixed getUidOfAlreadyPersistedValueObject (\TYPO3\CMS\Extbase\DomainObject\AbstractValueObject $object)
 

Detailed Description

Storage backend interface

Definition at line 20 of file BackendInterface.php.

Member Function Documentation

◆ addRow()

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

Adds a row to the storage

Parameters
string$tableName‪The database table name
array$fieldValues‪The fieldValues to insert
bool$isRelation‪TRUE 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()

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

Fetches maximal value for given table column

Parameters
string$tableName‪The database table name
array$where‪An array of where array('fieldname' => value). This array will be transformed to a WHERE clause
string$columnName‪column name to get the max value from
Returns
‪mixed the max value

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

◆ getObjectCountByQuery()

int 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()

array 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()

mixed 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$object‪The 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()

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

Deletes a row in the storage

Parameters
string$tableName‪The database table name
array$where‪An array of where array('fieldname' => value). This array will be transformed to a WHERE clause
bool$isRelation‪TRUE 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()

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

Updates a relation row in the storage

Parameters
string$tableName‪The database relation table name
array$fieldValues‪The fieldValues to be updated
Returns
‪bool

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

◆ updateRow()

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

Updates a row in the storage

Parameters
string$tableName‪The database table name
array$fieldValues‪The fieldValues to update
bool$isRelation‪TRUE if we are currently inserting into a relation table, FALSE by default
Returns
‪mixed|void

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