mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-07 00:47:00 +03:00
Implement cloning of zones, closes #81
This commit is contained in:
parent
30f43e98a5
commit
5cd225cb43
3 changed files with 108 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue