DbZoneMetadataStore
final class DbZoneMetadataStore implements ZoneMetadataStoreInterface (View source)
Zone metadata in the PowerDNS domainmetadata table.
Methods
The zone's metadata rows sorted by kind.
Replace the zone's whole metadata set.
Whether the PowerDNS zone of that name carries PRESIGNED metadata with content "1", the value PowerDNS itself checks.
Why this store cannot hold the kind (a MetadataDefinitions::REJECT_* code), or null.
Whether the store is known to take a version-gated kind: a SUPPORT_* value.
Set every value of one kind, leaving the other kinds alone.
Details
__construct(PDO $db, ConfigurationInterface $config)
No description
array
load(int $zoneId, string $zoneName)
The zone's metadata rows sorted by kind.
bool
replaceAll(int $zoneId, string $zoneName, array $rows, array $before)
Replace the zone's whole metadata set.
bool
isPresigned(string $zoneName)
Whether the PowerDNS zone of that name carries PRESIGNED metadata with content "1", the value PowerDNS itself checks.
string|null
writeRejection(string $kind)
Why this store cannot hold the kind (a MetadataDefinitions::REJECT_* code), or null.
Server-managed kinds are refused before the store is asked.
string
kindSupport(array $definition, callable $capabilities)
Whether the store is known to take a version-gated kind: a SUPPORT_* value.
The capabilities are resolved only by a store whose support depends on the connected server, so a database store never triggers the version probe.
bool
replaceKind(int $zoneId, string $zoneName, string $kind, array $values, array $before)
Set every value of one kind, leaving the other kinds alone.