ZoneWriteRepositoryInterface
interface ZoneWriteRepositoryInterface (View source)
Zone row, comment and metadata writes (plus the metadata read the editor pairs with them); one of the three roles ZoneRepositoryInterface combines.
Methods
int|string
createZoneShell(int $domainId, int|null $owner, int $templateId)
Write the native zones row of a zone the backend has just created.
void
deleteZoneShell(int $domainId)
Drop the native zones row of a zone, when the zone is deleted.
void
saveZoneComment(int $zoneId, string $comment)
Set the zone comment, creating the zones row for a zone that has none.
bool
updateZoneComment(int $zoneId, string $comment)
Update zone comment
bool
updateZone(int $zoneId, array $updates)
Update zone metadata
bool
deleteZone(int $zoneId)
Delete a zone by ID
Details
int|string
createZoneShell(int $domainId, int|null $owner, int $templateId)
Write the native zones row of a zone the backend has just created.
void
deleteZoneShell(int $domainId)
Drop the native zones row of a zone, when the zone is deleted.
void
saveZoneComment(int $zoneId, string $comment)
Set the zone comment, creating the zones row for a zone that has none.
bool
updateZoneComment(int $zoneId, string $comment)
Update zone comment
bool
updateZone(int $zoneId, array $updates)
Update zone metadata
bool
deleteZone(int $zoneId)
Delete a zone by ID