final class RecordAddResult (View source)

Outcome of adding one record from a form, with the companion PTR or A record the operator asked for alongside it.

Constants

COMPANION_PTR

COMPANION_A

Methods

__construct(RecordWriteResult $record, string|null $companion = null, bool $companionCreated = false, bool $companionWarning = false, string|null $companionMessage = null)

No description

static string
companionFrom(array $fields)

Which companion a form asked for: the "reverse" box wants a PTR for the address, "create_domain_record" wants an A record for a PTR in a reverse zone.

static RecordAddResult
refused(RecordWriteResult $record)

No description

bool
isOk()

No description

Details

__construct(RecordWriteResult $record, string|null $companion = null, bool $companionCreated = false, bool $companionWarning = false, string|null $companionMessage = null)

No description

Parameters

RecordWriteResult $record
string|null $companion

Which companion was requested, if any

bool $companionCreated

Whether the companion write went through

bool $companionWarning

The companion was created but the creator raised a warning

string|null $companionMessage

The creator's own wording for a warning or failure

static string companionFrom(array $fields)

Which companion a form asked for: the "reverse" box wants a PTR for the address, "create_domain_record" wants an A record for a PTR in a reverse zone.

Parameters

array $fields

The submitted record fields

Return Value

string

static RecordAddResult refused(RecordWriteResult $record)

No description

Parameters

RecordWriteResult $record

Return Value

RecordAddResult

bool isOk()

No description

Return Value

bool