Poweradmin\Application\Service\Zone
Classes
Answers what the change-approval feature means for one user: whether it is on, how their edits to a zone are handled, which zones they review, and how many requests are waiting.
Words a ZoneChangeRequestService outcome for the web flash messages.
Writes the zone audit line for each change request event, then emails the reviewers of the zone when a request is filed and the requester when it is decided. Mail failures are logged and reported as false; nothing here throws to the caller, so a mail problem never blocks a request.
Emails a user when they gain or lose access to a zone.
What ZoneCreateService made of a batch: either a refusal that stopped the batch before any zone was tried, or one outcome per submitted name.
Words a refused ZoneManagementService::createZone() for the add-zone forms, and the warning about parent-zone records a created zone hides.
What ZoneCreateService made of one request: the created zone, or the refusal worded for the form.
What a zone creation form submitted, as ZoneCreateService takes it: the name as typed, the owner controls as posted, and the kind-specific options.
The zone creation flow shared by the add-zone forms, bulk registration and the secondary zone import: the name is normalised the same way, the owner controls are resolved by the same rules, the zone is created and audited the same way, and every refusal is worded for the form.
Assigns zones to groups and removes them; the group-based half of zone ownership.
Reads a submitted zone limit: empty clears the own limit (the configured default applies), a whole number of 0 or more sets it.
Web wording for zone limits on the user, group and add-zone pages.
Words a refused ZoneMetadataService write for the metadata editor.
Reads the owner and group fields of the add-zone forms and applies the shared ownership rules. The forms drop what the ownership mode disallows instead of rejecting it, and word the refusals in the user's language.
Reads the owner fields of a decoded zone creation body into the typed input ZoneCreateOwnershipResolver takes; a value of the wrong shape is refused with the same wording and status the resolver used to give.
Words a ZoneOwnershipGuard refusal for the zone ownership page.
Words a ZoneEditService save for the zone editor's flash message.
Words a ZoneSigningService outcome for the web pages that sign or unsign an existing zone.
Resolves the zone list's sort column, direction and reverse-zone filter from submitted values and the session.