TcaJson
class \
- Extends
- AbstractDatabaseRecordProvider
- Implements
- FormDataProviderInterface
Resolve and prepare json data.
Table of Contents
Interfaces
- FormDataProviderInterface
- Interface must be implemented by form data provider classes.
Methods
- addData() : array
- Add form data to result array
- injectConnectionPool() : void
- getDatabaseRow() : array
- Retrieve the requested row from the database
- getRecordFromDatabase() : array
- Fetch a record from database. Deleted records will NOT be fetched.
Methods
addData()
Add form data to result array
public
addData(array $result) : array
Parameters
- $result : array
-
Initialized result array
Return values
array —Result filled with more data
injectConnectionPool()
public
injectConnectionPool(ConnectionPool $connectionPool) : void
Parameters
- $connectionPool : ConnectionPool
getDatabaseRow()
Retrieve the requested row from the database
protected
getDatabaseRow(string $tableName, int $uid) : array
Parameters
- $tableName : string
- $uid : int
Return values
arraygetRecordFromDatabase()
Fetch a record from database. Deleted records will NOT be fetched.
protected
getRecordFromDatabase(string $tableName, int $uid) : array
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 —Fetched record row