final class EditZonePresenter (View source)

The zone editor's view model: maps the facts the controller has already resolved (zone, permissions, preferences, listing) onto the variables edit.html reads. Everything derived for the page - editability flags, record locks, the comment conflict, the offered record types - is computed here from those inputs alone.

Methods

__construct(int $zoneId, string $zoneName, string $storedZoneComment, string|null $rejectedZoneComment, string $domainType, string|null $slaveMaster, array $zoneTemplates, int $zoneTemplateId, array $zoneTemplateDetails, int $recordCount, int $filteredRecordCount, array $records, array $rejectedRecords, string $soaRecord, bool $isReverseZone, bool $supportsCatalogZones, bool $catalogSelectorView, array $catalogProducers, int|null $catalogProducerId, string $catalogName, int $userId, bool $userIsZoneOwner, string $permView, string $permEdit, bool $requestsOnly, bool $permEditNsSubzone, string $permMetaEdit, bool $metaEdit, string $permMetadataView, string $permOwnershipView, string $logPermission, bool $canManageDnssec, bool $permZoneTemplAdd, bool $permIsGodlike, bool $permViewZoneOwn, bool $permViewZoneOther, string $editMode, array $pendingChangeRequests, bool $canReviewChangeRequests, bool $dnssecEnabled, bool $isSecured, bool $isPresigned, int|null $signedSerial, RecordTypeService $recordTypeService, PdnsCapabilities|null $recordTypeCapabilities, int $forwardTtl, int|null $ptrDefaultTtl, array $typeDefaultTtls, bool $supportsZoneRetrieve, bool $supportsZoneNotify, bool $recordIdsAreNumeric, bool $showRecordId, bool $showAddRecordForm, bool $showRecordEditButton, bool $showRecordDeleteButton, bool $addRecordFormTop, bool $saveChangesTop, bool $displayHostnameOnly, bool $recordComments, bool $zoneComments, bool $requireChangeComment, bool $dblogUse, bool $addReverseRecord, bool $addDomainRecord, int $rowStart, int $rowAmount, string $recordSortBy, string $sortDirection, string $pagination, string $searchTerm, string $recordTypeFilter, string $contentFilter, string $formToken, array|null $formData, array $whoisActions, array $rdapActions, array $dnsWizardActions, array $exportFormats, bool $importEnabled)

No description

array
recordTypes()

The record types the add form offers for this zone.

array
toTemplateVariables()

No description

Details

__construct(int $zoneId, string $zoneName, string $storedZoneComment, string|null $rejectedZoneComment, string $domainType, string|null $slaveMaster, array $zoneTemplates, int $zoneTemplateId, array $zoneTemplateDetails, int $recordCount, int $filteredRecordCount, array $records, array $rejectedRecords, string $soaRecord, bool $isReverseZone, bool $supportsCatalogZones, bool $catalogSelectorView, array $catalogProducers, int|null $catalogProducerId, string $catalogName, int $userId, bool $userIsZoneOwner, string $permView, string $permEdit, bool $requestsOnly, bool $permEditNsSubzone, string $permMetaEdit, bool $metaEdit, string $permMetadataView, string $permOwnershipView, string $logPermission, bool $canManageDnssec, bool $permZoneTemplAdd, bool $permIsGodlike, bool $permViewZoneOwn, bool $permViewZoneOther, string $editMode, array $pendingChangeRequests, bool $canReviewChangeRequests, bool $dnssecEnabled, bool $isSecured, bool $isPresigned, int|null $signedSerial, RecordTypeService $recordTypeService, PdnsCapabilities|null $recordTypeCapabilities, int $forwardTtl, int|null $ptrDefaultTtl, array $typeDefaultTtls, bool $supportsZoneRetrieve, bool $supportsZoneNotify, bool $recordIdsAreNumeric, bool $showRecordId, bool $showAddRecordForm, bool $showRecordEditButton, bool $showRecordDeleteButton, bool $addRecordFormTop, bool $saveChangesTop, bool $displayHostnameOnly, bool $recordComments, bool $zoneComments, bool $requireChangeComment, bool $dblogUse, bool $addReverseRecord, bool $addDomainRecord, int $rowStart, int $rowAmount, string $recordSortBy, string $sortDirection, string $pagination, string $searchTerm, string $recordTypeFilter, string $contentFilter, string $formToken, array|null $formData, array $whoisActions, array $rdapActions, array $dnsWizardActions, array $exportFormats, bool $importEnabled)

No description

Parameters

int $zoneId
string $zoneName
string $storedZoneComment

The comment as the zone holds it now

string|null $rejectedZoneComment

The comment a stale submission carried, when one was refused

string $domainType
string|null $slaveMaster
array $zoneTemplates
int $zoneTemplateId
array $zoneTemplateDetails
int $recordCount
int $filteredRecordCount
array $records

Rows as the display service produced them

array $rejectedRecords

Rows a stale submission carried, when one was refused

string $soaRecord
bool $isReverseZone
bool $supportsCatalogZones
bool $catalogSelectorView
array $catalogProducers
int|null $catalogProducerId
string $catalogName
int $userId
bool $userIsZoneOwner
string $permView
string $permEdit
bool $requestsOnly

The caller may only file change requests, and $permEdit is their request level

bool $permEditNsSubzone
string $permMetaEdit
bool $metaEdit
string $permMetadataView
string $permOwnershipView
string $logPermission
bool $canManageDnssec
bool $permZoneTemplAdd
bool $permIsGodlike
bool $permViewZoneOwn
bool $permViewZoneOther
string $editMode

One of the ChangeApprovalPolicy::MODE_* values

array $pendingChangeRequests

Summaries of the zone's open requests

bool $canReviewChangeRequests
bool $dnssecEnabled
bool $isSecured
bool $isPresigned
int|null $signedSerial
RecordTypeService $recordTypeService
PdnsCapabilities|null $recordTypeCapabilities
int $forwardTtl
int|null $ptrDefaultTtl

The configured dns.ttl_reverse, null when unset

array $typeDefaultTtls

Admin-configured per-type TTLs keyed by uppercase type

bool $supportsZoneRetrieve
bool $supportsZoneNotify
bool $recordIdsAreNumeric
bool $showRecordId
bool $showAddRecordForm
bool $showRecordEditButton
bool $showRecordDeleteButton
bool $addRecordFormTop
bool $saveChangesTop
bool $displayHostnameOnly
bool $recordComments
bool $zoneComments
bool $requireChangeComment
bool $dblogUse
bool $addReverseRecord
bool $addDomainRecord
int $rowStart
int $rowAmount
string $recordSortBy
string $sortDirection
string $pagination
string $searchTerm
string $recordTypeFilter
string $contentFilter
string $formToken
array|null $formData
array $whoisActions
array $rdapActions
array $dnsWizardActions
array $exportFormats
bool $importEnabled

array recordTypes()

The record types the add form offers for this zone.

Return Value

array

array toTemplateVariables()

No description

Return Value

array

The variables edit.html reads