final class RecordEditResult (View source)

Outcome of editing one record: the write itself, the row as it is stored afterwards, and how the PTR sync went when one was asked for.

Methods

__construct(RecordWriteResult $write, int|string|null $recordId = null, array $record = [], bool|null $ptrUpdated = null, string|null $ptrMessage = null)

No description

refused(RecordWriteResult $write)

No description

bool
isOk()

No description

bool
ptrFailed()

No description

Details

__construct(RecordWriteResult $write, int|string|null $recordId = null, array $record = [], bool|null $ptrUpdated = null, string|null $ptrMessage = null)

No description

Parameters

RecordWriteResult $write
int|string|null $recordId

The id the record has after the write; the API backend re-keys a record whose name, type, content or prio changed

array $record

The stored row after the write, or the submitted values when the backend no longer resolves the old id

bool|null $ptrUpdated

Null when no sync was attempted, otherwise whether it succeeded

string|null $ptrMessage

The reverse creator's own wording for the sync outcome

static RecordEditResult refused(RecordWriteResult $write)

No description

Parameters

RecordWriteResult $write

Return Value

RecordEditResult

bool isOk()

No description

Return Value

bool

bool ptrFailed()

No description

Return Value

bool