DatabaseRecord

class \TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord

Database record class

Table of Contents

Properties

$row  : array|null
$table  : string
$uid  : int

Methods

__construct()  : mixed
create()  : DatabaseRecord
Creates database record object just by id of database record.
createFromArray()  : DatabaseRecord
Creates database record object by relevant database record row.
getIdentifier()  : string
Gets the record identifier (table:id).
getRow()  : array
Gets the database record row.
getTable()  : string
Gets the name of the database table.
getUid()  : int
Gets the id of the database record row.
setRow()  : void
Sets the database record row.
setTable()  : void
Sets the name of the database table.
setUid()  : void
Sets the id of the database record row.
loadRow()  : void
Loads the database record row (if not available yet).

Properties

Methods

__construct()

public __construct(string $table, int $uid[, array|null $row = null ]) : mixed

Parameters

$table : string
$uid : int
$row : array|null = null

create()

Creates database record object just by id of database record.

public static create(string $table, int $uid) : DatabaseRecord

Parameters

$table : string

Name of the database table

$uid : int

Id of the database record row

Return values

DatabaseRecord

createFromArray()

Creates database record object by relevant database record row.

public static createFromArray(string $table, array $row) : DatabaseRecord

Parameters

$table : string

Name of the database table

$row : array

The relevant database record row

Return values

DatabaseRecord

getIdentifier()

Gets the record identifier (table:id).

public getIdentifier() : string

Return values

string

getRow()

Gets the database record row.

public getRow() : array

Return values

array

getTable()

Gets the name of the database table.

public getTable() : string

Return values

string

getUid()

Gets the id of the database record row.

public getUid() : int

Return values

int

setRow()

Sets the database record row.

public setRow(array $row) : void

Parameters

$row : array

setTable()

Sets the name of the database table.

public setTable(string $table) : void

Parameters

$table : string

setUid()

Sets the id of the database record row.

public setUid(int $uid) : void

Parameters

$uid : int

loadRow()

Loads the database record row (if not available yet).

protected loadRow() : void
On this page