RecordLinkedCommentRepositoryInterface
interface RecordLinkedCommentRepositoryInterface (View source)
Comments linked to individual records through record_comment_links.
Only the SQL backend has the linking table; the API backend keeps one comment per RRset and offers no implementation of this port.
Methods
Find the comment linked to a record.
Delete the comment linked to a record, and the link.
Link a record to a comment.
Unlink a record from its comment.
Copy a legacy RRset comment to per-record links for every record of the RRset that has none yet, except the given one.
Details
RecordComment|null
findByRecordId(int|string $recordId)
Find the comment linked to a record.
bool
deleteByRecordId(int|string $recordId)
Delete the comment linked to a record, and the link.
bool
linkRecordToComment(int|string $recordId, int $commentId)
Link a record to a comment.
bool
unlinkRecord(int|string $recordId)
Unlink a record from its comment.
bool
migrateLegacyComments(int $domainId, string $name, string $type, int|string $excludeRecordId)
Copy a legacy RRset comment to per-record links for every record of the RRset that has none yet, except the given one.