OpenDocument implements JsonSerializable

Read onlyYes

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.

Internal

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<string|int, mixed>
toArray()  : array<string|int, mixed>

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<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

fromLegacyArray()

Create from the legacy array format stored in session.

public static fromLegacyArray(array<string|int, mixed> $data) : self

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

Parameters
$data : array<string|int, mixed>
Return values
self

getIdentifier()

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

public getIdentifier() : string
Return values
string

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results