class RecordCommentSyncService implements RecordCommentSyncInterface (View source)

Keeps the comment on an A/AAAA record and its PTR counterpart in sync when either is created or edited.

Methods

__construct(RecordCommentService $commentService, PermissionService $permissions, RecordListingInterface|null $recordRepository = null, BackendCapabilitiesInterface|null $backendProvider = null, ChangeApprovalContext|null $approval = null)

No description

void
syncCommentsForPtrRecord(int $domainId, int $ptrZoneId, string $domainFullName, string $ptrName, string $comment, string $account)

No description

void
syncCommentsForDomainRecord(int $domainId, int $ptrZoneId, string $recordContent, string $ptrName, string $comment, string $account)

No description

void
updatePtrRecordComment(int $ptrZoneId, string $oldPtrName, string $newPtrName, string $comment, string $account)

No description

void
updateARecordComment(int $ptrZoneId, string $oldPtrName, string $newPtrName, string $comment, string $account, string $forwardType = RecordType::A)

No description

void
updateRelatedRecordComments(DomainRepositoryInterface $domainRepository, array $newRecordInfo, string $comment, string $userLogin, int $userId, Closure|null $zoneAllowed = null)

No description

Details

__construct(RecordCommentService $commentService, PermissionService $permissions, RecordListingInterface|null $recordRepository = null, BackendCapabilitiesInterface|null $backendProvider = null, ChangeApprovalContext|null $approval = null)

No description

Parameters

RecordCommentService $commentService
PermissionService $permissions
RecordListingInterface|null $recordRepository
BackendCapabilitiesInterface|null $backendProvider
ChangeApprovalContext|null $approval

void syncCommentsForPtrRecord(int $domainId, int $ptrZoneId, string $domainFullName, string $ptrName, string $comment, string $account)

No description

Parameters

int $domainId
int $ptrZoneId
string $domainFullName
string $ptrName
string $comment
string $account

Return Value

void

void syncCommentsForDomainRecord(int $domainId, int $ptrZoneId, string $recordContent, string $ptrName, string $comment, string $account)

No description

Parameters

int $domainId
int $ptrZoneId
string $recordContent
string $ptrName
string $comment
string $account

Return Value

void

void updatePtrRecordComment(int $ptrZoneId, string $oldPtrName, string $newPtrName, string $comment, string $account)

No description

Parameters

int $ptrZoneId
string $oldPtrName
string $newPtrName
string $comment
string $account

Return Value

void

void updateARecordComment(int $ptrZoneId, string $oldPtrName, string $newPtrName, string $comment, string $account, string $forwardType = RecordType::A)

No description

Parameters

int $ptrZoneId
string $oldPtrName
string $newPtrName
string $comment
string $account
string $forwardType

Return Value

void

void updateRelatedRecordComments(DomainRepositoryInterface $domainRepository, array $newRecordInfo, string $comment, string $userLogin, int $userId, Closure|null $zoneAllowed = null)

No description

Parameters

DomainRepositoryInterface $domainRepository
array $newRecordInfo

Record row after the edit (type, name, content)

string $comment
string $userLogin
int $userId

The acting user; a related record is updated only in a zone this user may edit

Closure|null $zoneAllowed

Whether the comment may reach the related zone (an API key's zone scope)

Return Value

void