RecordDeletionService
class RecordDeletionService (View source)
Deletes a record and, when asked and when reverse handling is on, the PTR of an A/AAAA record or the A/AAAA of a PTR record. A selection of records is deleted the same way, with each affected zone finalized once.
Methods
__construct(RecordLookupInterface $recordRepository, RecordManagerInterface $recordManager, ReverseRecordCreator $reverseRecordCreator, AuditLoggerInterface $audit, bool $reverseHandling)
No description
deleteWithReverse(int $zoneId, int|string $recordId, bool $deletePtr, bool $deleteForward, Closure|null $companionZoneAllowed = null)
No description
deleteMany(array $recordIds, bool $deletePtr, Closure|null $companionZoneAllowed = null)
Deletes a selection that may span zones, then bumps and rectifies each affected zone once. A refused row is reported and the rest still go.
Details
__construct(RecordLookupInterface $recordRepository, RecordManagerInterface $recordManager, ReverseRecordCreator $reverseRecordCreator, AuditLoggerInterface $audit, bool $reverseHandling)
No description
RecordDeletionOutcome
deleteWithReverse(int $zoneId, int|string $recordId, bool $deletePtr, bool $deleteForward, Closure|null $companionZoneAllowed = null)
No description
RecordBatchDeletionOutcome
deleteMany(array $recordIds, bool $deletePtr, Closure|null $companionZoneAllowed = null)
Deletes a selection that may span zones, then bumps and rectifies each affected zone once. A refused row is reported and the rest still go.