interface RecordCommentEditorInterface (View source)

The per-record comment reads and writes the zone editor needs; the Application layer owns the storage.

Methods

updateCommentForRecord(int $domainId, string $name, string $type, string $comment, int|string $recordId, string|null $account = null)

Update a comment for a specific record.

findComment(int $domainId, string $name, string $type)

Find a comment for an RRset.

findCommentByRecordId(int|string $recordId)

Find a comment for a specific record.

Details

RecordComment|null updateCommentForRecord(int $domainId, string $name, string $type, string $comment, int|string $recordId, string|null $account = null)

Update a comment for a specific record.

Uses the linking table for per-record comment storage.

Parameters

int $domainId

Domain/zone ID

string $name

Record name

string $type

Record type

string $comment

Comment text

int|string $recordId

Record ID for per-record comment linking

string|null $account

Optional account/username

Return Value

RecordComment|null

RecordComment|null findComment(int $domainId, string $name, string $type)

Find a comment for an RRset.

Parameters

int $domainId

Domain/zone ID

string $name

Record name

string $type

Record type

Return Value

RecordComment|null

RecordComment|null findCommentByRecordId(int|string $recordId)

Find a comment for a specific record.

Parameters

int|string $recordId

Record ID

Return Value

RecordComment|null