DatabaseEditRow extends AbstractDatabaseRecordProvider implements FormDataProviderInterface
Fetch existing database row on edit
Table of Contents
Interfaces
- FormDataProviderInterface
- Interface must be implemented by form data provider classes.
Methods
- addData() : array<string|int, mixed>
- Fetch existing record from database
- injectConnectionPool() : void
- getDatabaseRow() : array<string|int, mixed>
- Retrieve the requested row from the database
- getRecordFromDatabase() : array<string|int, mixed>
- Fetch a record from database. Deleted records will NOT be fetched.
Methods
addData()
Fetch existing record from database
public
addData(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
- $result : array<string|int, mixed>
-
Initialized result array
Tags
Return values
array<string|int, mixed>injectConnectionPool()
public
injectConnectionPool(ConnectionPool $connectionPool) : void
Parameters
- $connectionPool : ConnectionPool
getDatabaseRow()
Retrieve the requested row from the database
protected
getDatabaseRow(string $tableName, int $uid) : array<string|int, mixed>
Parameters
- $tableName : string
- $uid : int
Return values
array<string|int, mixed>getRecordFromDatabase()
Fetch a record from database. Deleted records will NOT be fetched.
protected
getRecordFromDatabase(string $tableName, int $uid) : array<string|int, mixed>
Method is similar to BackendUtility::getRecord, but is more picky about input and result.
Parameters
- $tableName : string
-
The table name to fetch record from
- $uid : int
-
Uid of record to fetch
Tags
Return values
array<string|int, mixed> —Fetched record row