final class DbZoneAccountOwnerRepository implements ZoneAccountOwnerLookupInterface (View source)

Reads the oldest direct owner of a zone from the native zones table.

Methods

__construct(PDO $db, bool $rowIdFallback)

No description

string|null
oldestOwnerUsername(int $domainId)

Username of the oldest direct owner of the zone, or null when the zone has none.

Details

__construct(PDO $db, bool $rowIdFallback)

No description

Parameters

PDO $db
bool $rowIdFallback

Whether zones.id may stand in for a missing domain_id (API backend)

string|null oldestOwnerUsername(int $domainId)

Username of the oldest direct owner of the zone, or null when the zone has none.

Parameters

int $domainId

Canonical zone id (the PowerDNS domain id, or the zones row id in API mode)

Return Value

string|null