final class ZoneOwnerRepair (View source)

Writes a zone owner into the Poweradmin-native zones table. Ownership lives there under both backends, so the SQL and API strategies share this repair.

Methods

__construct(PDO $db, string|null $domainsTable = null)

No description

bool
assign(int $zoneId, int $userId)

Update the zone's ownership row, or insert one when the zone has none.

Details

__construct(PDO $db, string|null $domainsTable = null)

No description

Parameters

PDO $db
string|null $domainsTable

The PowerDNS domains table under the SQL backend, so an inserted row gets the zone name; null under the API backend

bool assign(int $zoneId, int $userId)

Update the zone's ownership row, or insert one when the zone has none.

Parameters

int $zoneId
int $userId

Return Value

bool