Implement cloning of zones, closes #81

This commit is contained in:
Mark Schouten 2016-08-04 16:18:45 +02:00
parent 30f43e98a5
commit 5cd225cb43
3 changed files with 108 additions and 8 deletions

View file

@ -95,7 +95,7 @@ class Zone {
$this->dnssec = $dnssec;
}
private function setId($id) {
public function setId($id) {
$this->id = $id;
}
@ -232,6 +232,10 @@ class RRSet {
$this->ttl = $ttl;
}
public function setName($name) {
$this->name = $name;
}
public function addRecord($content, $disabled = FALSE) {
foreach ($this->records as $record) {
if ($record->content == $content) {