ZoneReadRepositoryInterface
interface ZoneReadRepositoryInterface (View source)
Zone lookups, lists and counts; one of the three roles ZoneRepositoryInterface combines.
Methods
Get zone comment by zone ID
Get a zone by ID
Get a zone by ID with full details
List zones with optional user/permission filtering
Get all zones with filtering and pagination
Get the total number of zones
Get count of zones with filtering
No description
Get reverse zones with efficient database-level filtering and pagination
Get all reverse zone counts in a single query (optimization)
Count the zones a permission scope may see, optionally narrowed by first letter and zone kind.
Find forward zones associated with reverse zones through PTR records
Details
string|null
getZoneComment(int $zoneId)
Get zone comment by zone ID
array|null
getZoneById(int $zoneId)
Get a zone by ID
ZoneDetail|null
getZone(int $zoneId)
Get a zone by ID with full details
The getZoneById() core plus comment, secured and the owner list; ZoneDetail::toArray() gives the legacy column-keyed shape.
array
listZones(int|null $userId = null, bool $viewOthers = false, array $filters = [], int $offset = 0, int $limit = 100)
List zones with optional user/permission filtering
array
getAllZonesFiltered(array|null $zoneIds, int|null $userId = null, string|null $nameFilter = null, int|null $offset = null, int|null $limit = null, string|null $nameContains = null, array $sort = [])
Get all zones with filtering and pagination
int
getZoneCount()
Get the total number of zones
int
getZoneCountFiltered(array|null $zoneIds, int|null $userId = null, string|null $nameFilter = null, string|null $nameContains = null)
Get count of zones with filtering
array
getDistinctStartingLetters(int $userId, bool $viewOthers)
No description
ZoneSummary>|int
getReverseZones(string $permType, int $userId, string $reverseType = 'all', int $offset = 0, int $limit = 25, string $sortBy = 'name', string $sortDirection = 'ASC', bool $countOnly = false, bool $showSerial = false, bool $showTemplate = false, bool $includeHealth = true, bool $includeRecordCount = true)
Get reverse zones with efficient database-level filtering and pagination
array
getReverseZoneCounts(string $permType, int $userId)
Get all reverse zone counts in a single query (optimization)
int
countZones(string $permType, int|null $userId, string $letterStart = 'all', string $zoneType = 'forward')
Count the zones a permission scope may see, optionally narrowed by first letter and zone kind.
array
findForwardZonesByPtrRecords(array $reverseZoneIds)
Find forward zones associated with reverse zones through PTR records