ApiDomainRepository
class ApiDomainRepository implements DomainRepositoryInterface (View source)
API-backend domain repository.
Fetches zone data via PowerDNS REST API, uses Poweradmin DB for ownership.
Methods
No description
Check if Zone ID exists
Get Domain Name by domain ID
Get Domain ID by name
Get zone id from name
Get Domain Type for Domain ID
Get Slave Domain's Master
Check if a domain is already existing.
Get Zones
Get Zone details from Zone ID
Get Zone(s) details from Zone IDs
Every zone as a picker entry, sorted by name, regardless of who owns it.
Get Best Matching in-addr.arpa Zone ID from Domain Name
Details
__construct(PDO $db, ConfigurationManager $config, DnsBackendProvider $backendProvider)
No description
int
zoneIdExists(int $zid)
Check if Zone ID exists
string|null
getDomainNameById(int $id)
Get Domain Name by domain ID
int|null
getDomainIdByName(string $name)
Get Domain ID by name
int|null
getZoneIdFromName(string $zname)
Get zone id from name
string
getDomainType(int $id)
Get Domain Type for Domain ID
string|null
getDomainSlaveMaster(int $id)
Get Slave Domain's Master
bool
domainExists(string $domain)
Check if a domain is already existing.
array
getZones(string $perm, int $userid = 0, string $letterstart = 'all', int $rowstart = 0, int $rowamount = Constants::DEFAULT_MAX_ROWS, string $sortby = 'name', string $sortDirection = 'ASC', bool $excludeReverse = false, bool|null $showSerial = null, bool|null $showTemplate = null, bool $includeHealth = true, bool $includeRecordCount = true)
Get Zones
array
getZoneInfoFromId(int $zid)
Get Zone details from Zone ID
array
getZoneInfoFromIds(array $zones)
Get Zone(s) details from Zone IDs
array
listZoneNames()
Every zone as a picker entry, sorted by name, regardless of who owns it.
int
getBestMatchingZoneIdFromName(string $domain)
Get Best Matching in-addr.arpa Zone ID from Domain Name