DomainManagerInterface
interface DomainManagerInterface (View source)
Interface for domain/zone management operations
Methods
Add a domain to the database
Deletes a domain by a given id
Change Zone Type
Ask the backend to retrieve a slave zone from its master now
Change Slave Zone's Master IP Address
Add a user as an owner of a zone; an existing owner counts as success
Update All Zone Records for Zone ID with Zone Template
Get Zone Template ID for Zone ID
Details
ZoneWriteResult
addDomain(object $db, string $domain, int|null $owner, string $type, string $slave_master, int|string $zone_template, array $groupIds = [], string|null $soaEditApi = null)
Add a domain to the database
ZoneWriteResult
deleteDomain(int $id)
Deletes a domain by a given id
ZoneWriteResult
changeZoneType(string $type, int $id)
Change Zone Type
bool
retrieveZone(int $id)
Ask the backend to retrieve a slave zone from its master now
ZoneWriteResult
changeZoneSlaveMaster(int $zone_id, string $ip_slave_master)
Change Slave Zone's Master IP Address
ZoneWriteResult
addOwnerToZone(int $zone_id, int $user_id)
Add a user as an owner of a zone; an existing owner counts as success
ZoneWriteResult
updateZoneRecords(string $db_type, int $dns_ttl, int $zone_id, int $zone_template_id)
Update All Zone Records for Zone ID with Zone Template
static int
getZoneTemplate(object $db, int $zone_id)
Get Zone Template ID for Zone ID