ZoneChangeRequestRepositoryInterface
interface ZoneChangeRequestRepositoryInterface (View source)
Persistence for zone change requests. Lists come back newest first.
Filters accepted by list() and count(): "status" (string), "zoneIds"
(list
Methods
No description
No description
No description
No description
No description
No description
False until the 4.6.0 schema update has created the requests table.
No description
Pending requests per zone, for the zones that have any, counting only the requests the user may list: those in the zones they review or their own.
No description
No description
Keeps a copy of the zone (a BIND zone file) taken before an approved deletion.
No description
No description
Cancels the zone's pending and failed requests once the zone is deleted, since a later zone can be given the same id and would inherit them.
Details
int
create(int $zoneId, string $zoneName, string $kind, int|null $requesterId, string $requesterName, string|null $requestComment, string|null $baseSerial, array $actions, string|null $zoneComment)
No description
ZoneChangeRequest|null
find(int $id)
No description
array
list(array $filters, int $offset, int $limit)
No description
int
count(array $filters)
No description
array
listPending(array|null $zoneIds, int $offset, int $limit)
No description
array
listPendingForZone(int $zoneId)
No description
bool
isAvailable()
False until the 4.6.0 schema update has created the requests table.
int
countPending(array|null $zoneIds)
No description
array
countPendingByZone(array $zoneIds, array|null $reviewableZoneIds, int $requesterId)
Pending requests per zone, for the zones that have any, counting only the requests the user may list: those in the zones they review or their own.
bool
markReviewed(int $id, string $status, int $reviewerId, string $reviewerName, string|null $comment, array $fromStatuses = [ZoneChangeRequest::STATUS_PENDING])
No description
void
markApplied(int $id)
No description
void
storeSnapshot(int $id, string $snapshot)
Keeps a copy of the zone (a BIND zone file) taken before an approved deletion.
void
markFailed(int $id, string $error)
No description
bool
cancel(int $id)
No description
int
cancelOpenForDeletedZone(int $zoneId, string $reason)
Cancels the zone's pending and failed requests once the zone is deleted, since a later zone can be given the same id and would inherit them.