final class ZoneChangeRequest (View source)

A filed change request: the actions a requester wants applied to a zone, who filed it, and how a reviewer decided it.

Constants

KIND_RECORDS

KIND_ZONE_DELETE

STATUS_PENDING

STATUS_APPROVED

STATUS_REJECTED

STATUS_CANCELLED

STATUS_FAILED

OP_ADD

OP_EDIT

OP_DELETE

OP_ZONE_DELETE

Methods

__construct(int $id, int $zoneId, string $zoneName, string $kind, string $status, int|null $requesterId, string $requesterName, string|null $requestComment, string|null $baseSerial, array $actions, string|null $zoneComment, int|null $reviewerId, string|null $reviewerName, string|null $reviewComment, string $createdAt, string|null $reviewedAt, string|null $appliedAt, string|null $error, string|null $snapshot = null)

No description

bool
isPending()

No description

bool
canBeApplied()

Pending requests are applied on approval; a failed one may be tried again.

bool
isDecided()

No description

bool
isZoneDelete()

No description

int
actionCount()

No description

static string
encodePayload(array $actions, string|null $zoneComment)

The stored payload shape: {"actions": [...], "zone_comment": null|string}.

static array
decodePayload(string $payload)

No description

Details

__construct(int $id, int $zoneId, string $zoneName, string $kind, string $status, int|null $requesterId, string $requesterName, string|null $requestComment, string|null $baseSerial, array $actions, string|null $zoneComment, int|null $reviewerId, string|null $reviewerName, string|null $reviewComment, string $createdAt, string|null $reviewedAt, string|null $appliedAt, string|null $error, string|null $snapshot = null)

No description

Parameters

int $id
int $zoneId
string $zoneName
string $kind
string $status
int|null $requesterId
string $requesterName
string|null $requestComment
string|null $baseSerial
array $actions

The decoded payload actions, each with an "op" key

string|null $zoneComment

The zone comment to set, or null when it is left alone

int|null $reviewerId
string|null $reviewerName
string|null $reviewComment
string $createdAt
string|null $reviewedAt
string|null $appliedAt
string|null $error
string|null $snapshot

bool isPending()

No description

Return Value

bool

bool canBeApplied()

Pending requests are applied on approval; a failed one may be tried again.

Return Value

bool

bool isDecided()

No description

Return Value

bool

bool isZoneDelete()

No description

Return Value

bool

int actionCount()

No description

Return Value

int

static string encodePayload(array $actions, string|null $zoneComment)

The stored payload shape: {"actions": [...], "zone_comment": null|string}.

Parameters

array $actions
string|null $zoneComment

Return Value

string

static array decodePayload(string $payload)

No description

Parameters

string $payload

Return Value

array