OpenDocument

readonly class \TYPO3\CMS\Opendocs\Domain\Model\OpenDocument

Implements
JsonSerializable

Value object representing an open document in the backend.

An open document represents a record being edited in the FormEngine, displayed in the "open documents" toolbar.

Identified uniquely by table:uid combination.

Table of Contents

Interfaces

JsonSerializable

Properties

$table  : string
$uid  : int
$updatedAt  : DateTimeImmutable

Methods

__construct()  : mixed
fromArray()  : self
fromLegacyArray()  : self
Create from the legacy array format stored in session.
getIdentifier()  : string
Get the identifier for this document (table:uid).
jsonSerialize()  : array
toArray()  : array

Properties

$updatedAt

public DateTimeImmutable $updatedAt

Methods

__construct()

public __construct(string $table, int $uid, DateTimeImmutable $updatedAt) : mixed

Parameters

$table : string
$uid : int
$updatedAt : DateTimeImmutable

fromArray()

public static fromArray(array $data) : self

Parameters

$data : array

Return values

self

fromLegacyArray()

Create from the legacy array format stored in session.

public static fromLegacyArray(array $data) : self

Legacy format: [0 => title, 1 => params, 2 => queryString, 3 => metadata, 4 => returnUrl]

Parameters

$data : array

Return values

self

getIdentifier()

Get the identifier for this document (table:uid).

public getIdentifier() : string

Return values

string

jsonSerialize()

public jsonSerialize() : array

Return values

array

toArray()

public toArray() : array

Return values

array
On this page