RecordListingInterface
interface RecordListingInterface (View source)
Zone-wide record listing, filtering, counting and RRset reads.
Methods
Get records by domain ID
One page of the records getRecordsByDomainId() returns, in the same order, without the empty non-terminals (rows with no type or no name)
Number of rows getRecordsPageByDomainId() pages through
The records of one page of RRsets: the RRsets (name and type) are paged in the order they first appear in getRecordsByDomainId(), and every record of each one on the page comes back, in that same order
Number of RRsets getRRSetPageRecords() pages through
getRecordsByDomainId(), narrowed to rows that may contain the given substrings, case-insensitively. It never drops a row that contains them; it may keep more, so callers still apply their own exact filter.
Every record of each RRset (name and type) that has a member which may contain the given substrings, in getRecordsByDomainId() order. Like getRecordsByDomainIdContaining() it may keep more than the exact match.
The comment shown for one record: the SQL backend gives the comment linked to the record, else the unlinked comment for its name and type; the API backend gives the RRset comment, shared by every record in the set.
Get all records from a domain id.
Get filtered records from a domain with search capabilities
Get count of filtered records
Get all records in an RRset (matching domain, name, and type)
Count Zone Records for Zone ID
Get the ID of a newly created record
Details
array
getRecordsByDomainId(int $domainId, string|null $recordType = null, bool $withComments = false)
Get records by domain ID
array
getRecordsPageByDomainId(int $domainId, string|null $recordType, bool $withComments, int $limit, int $offset)
One page of the records getRecordsByDomainId() returns, in the same order, without the empty non-terminals (rows with no type or no name)
int
countRecordsByDomainId(int $domainId, string|null $recordType = null)
Number of rows getRecordsPageByDomainId() pages through
array
getRRSetPageRecords(int $domainId, string|null $recordType, int $limit, int $offset)
The records of one page of RRsets: the RRsets (name and type) are paged in the order they first appear in getRecordsByDomainId(), and every record of each one on the page comes back, in that same order
int
countRRSetsByDomainId(int $domainId, string|null $recordType = null)
Number of RRsets getRRSetPageRecords() pages through
array
getRecordsByDomainIdContaining(int $domainId, string|null $recordType, bool $withComments, array $contains)
getRecordsByDomainId(), narrowed to rows that may contain the given substrings, case-insensitively. It never drops a row that contains them; it may keep more, so callers still apply their own exact filter.
array
getRRSetRecordsContaining(int $domainId, string|null $recordType, array $contains)
Every record of each RRset (name and type) that has a member which may contain the given substrings, in getRecordsByDomainId() order. Like getRecordsByDomainIdContaining() it may keep more than the exact match.
string|null
getCommentForRecord(int|string $recordId, int $domainId, string $name, string $type)
The comment shown for one record: the SQL backend gives the comment linked to the record, else the unlinked comment for its name and type; the API backend gives the RRset comment, shared by every record in the set.
array
getRecordsFromDomainId(int $id, int $rowstart = 0, int $rowamount = Constants::DEFAULT_MAX_ROWS, string $sortby = 'name', string $sortDirection = 'ASC', bool $fetchComments = false)
Get all records from a domain id.
Retrieve all fields of the records and send it back to the function caller.
array
getFilteredRecords(int $zone_id, int $row_start, int $row_amount, string $sort_by, string $sort_direction, bool $include_comments, string $search_term = '', string $type_filter = '', string $content_filter = '')
Get filtered records from a domain with search capabilities
int
getFilteredRecordCount(int $zone_id, bool $include_comments, string $search_term = '', string $type_filter = '', string $content_filter = '')
Get count of filtered records
array
getRRSetRecords(int $domainId, string $name, string $type)
Get all records in an RRset (matching domain, name, and type)
int
countZoneRecords(int $zone_id)
Count Zone Records for Zone ID
int|string|null
getNewRecordId(int $domainId, string $name, string $type, string $content)
Get the ID of a newly created record