CombinedRecord

Combined record class

Table of Contents

Properties

$liveRecord  : DatabaseRecord
$table  : string
$versionRecord  : DatabaseRecord

Methods

__construct()  : mixed
Creates this object.
create()  : CombinedRecord
Creates combined record object just by live-id and version-id of database record rows.
createFromArrays()  : CombinedRecord
Creates combined record object by relevant database live-record and version-record rows.
getLiveId()  : int
Gets the id of the live-record.
getLiveRecord()  : DatabaseRecord
Gets the live-record object.
getTable()  : string
Gets the name of the database table.
getVersiondId()  : int
Gets the id of version-record.
getVersionRecord()  : DatabaseRecord
Gets the version-record object.
setLiveRecord()  : mixed
Sets the live-record object.
setTable()  : mixed
Sets the name of the database table.
setVersionRecord()  : mixed
Sets the version-record object.

Properties

Methods

create()

Creates combined record object just by live-id and version-id of database record rows.

public static create(string $table, int $liveId, int $versionId) : CombinedRecord
Parameters
$table : string

Name of the database table

$liveId : int

Id of the database live-record row

$versionId : int

Id of the database version-record row

Return values
CombinedRecord

createFromArrays()

Creates combined record object by relevant database live-record and version-record rows.

public static createFromArrays(string $table, array<string|int, mixed> $liveRow, array<string|int, mixed> $versionRow) : CombinedRecord
Parameters
$table : string

Name of the database table

$liveRow : array<string|int, mixed>

The relevant database live-record row

$versionRow : array<string|int, mixed>

The relevant database version-record row

Return values
CombinedRecord

getLiveId()

Gets the id of the live-record.

public getLiveId() : int
Return values
int

getTable()

Gets the name of the database table.

public getTable() : string
Return values
string

getVersiondId()

Gets the id of version-record.

public getVersiondId() : int
Return values
int

setTable()

Sets the name of the database table.

public setTable(string $table) : mixed
Parameters
$table : string

        
On this page

Search results