RecordManagerService
class RecordManagerService (View source)
Creates a record through RecordManager, then logs it, stores its comment and syncs the PTR comment.
Methods
__construct(DomainRepositoryInterface $domainRepository, RecordRepositoryInterface $recordRepository, RecordManagerInterface $recordManager, RecordCommentService $recordCommentService, AuditService $audit, ConfigurationInterface $config, PermissionService $permissions, ChangeApprovalContext|null $approval = null)
No description
createRecord(int $zone_id, string $name, string $type, string $content, int $ttl, int $prio, string $comment, string $userlogin, int $disabled = 0, string $origin = AuditLoggerInterface::ORIGIN_WEB, int|null $userId = null, bool $finalizeZone = true, Closure|null $syncZoneAllowed = null)
Creates the record and, on success, logs, rectifies and stores the comment.
void
syncCompanionComment(int $zoneId, string $name, string $type, string $content, string $comment, string $userLogin, int $userId, Closure|null $zoneAllowed = null)
Copy a new record's comment to the companion A or PTR record created right after it.
Details
__construct(DomainRepositoryInterface $domainRepository, RecordRepositoryInterface $recordRepository, RecordManagerInterface $recordManager, RecordCommentService $recordCommentService, AuditService $audit, ConfigurationInterface $config, PermissionService $permissions, ChangeApprovalContext|null $approval = null)
No description
RecordWriteResult
createRecord(int $zone_id, string $name, string $type, string $content, int $ttl, int $prio, string $comment, string $userlogin, int $disabled = 0, string $origin = AuditLoggerInterface::ORIGIN_WEB, int|null $userId = null, bool $finalizeZone = true, Closure|null $syncZoneAllowed = null)
Creates the record and, on success, logs, rectifies and stores the comment.
Failures come back as the result; nothing is written to MessageService.
void
syncCompanionComment(int $zoneId, string $name, string $type, string $content, string $comment, string $userLogin, int $userId, Closure|null $zoneAllowed = null)
Copy a new record's comment to the companion A or PTR record created right after it.
createRecord() syncs before the companion exists, so the add flow calls this once it does.