EditZonePresenter
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
array
recordTypes()
The record types the add form offers for this zone.
array
toTemplateVariables()
No description