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 Typo3DbBackend.
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 Typo3DbBackend.
Returns the number of items matching the query.
- Parameters
-
\TYPO3\CMS\Extbase\Persistence\QueryInterface | $query | |
- Returns
- int
Returns the object data matching the $query.
- Parameters
-
\TYPO3\CMS\Extbase\Persistence\QueryInterface | $query | |
- Returns
- array
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!
Implemented in Typo3DbBackend.
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 Typo3DbBackend.
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 Typo3DbBackend.
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 Typo3DbBackend.