class RRSetReplaceService (View source)

Replaces every record of one name and type with a new set: validate all, delete the old set, insert the new one.

Methods

__construct(TransactionInterface $transaction, ConfigurationInterface $config, BackendCapabilitiesInterface $backend, DnsRecordValidationServiceInterface $validationService, RecordListingInterface $recordRepository, RecordManagerInterface $recordManager, SOARecordManagerInterface $soaRecordManager, AuditLoggerInterface $audit)

No description

array
replace(int $zoneId, string $zoneName, string $fqdn, string $type, int $ttl, array $records)

Validation runs before the old set is touched so a refused record never costs the caller its RRSet.

Details

__construct(TransactionInterface $transaction, ConfigurationInterface $config, BackendCapabilitiesInterface $backend, DnsRecordValidationServiceInterface $validationService, RecordListingInterface $recordRepository, RecordManagerInterface $recordManager, SOARecordManagerInterface $soaRecordManager, AuditLoggerInterface $audit)

No description

array replace(int $zoneId, string $zoneName, string $fqdn, string $type, int $ttl, array $records)

Validation runs before the old set is touched so a refused record never costs the caller its RRSet.

The serial bump shares the transaction; the rectify runs after the commit.

Parameters

int $zoneId
string $zoneName
string $fqdn
string $type
int $ttl
array $records

Parsed and content-formatted input records

Return Value

array

On failure 'write' carries the refused record write and 'content' the record it was for, so the caller can word the refusal.