mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-07 00:47:00 +03:00
Rebuild listrecords and fake records by merging them with rrsets in Zone.php
This commit is contained in:
parent
a94d0e0b31
commit
6fd7087dc9
2 changed files with 29 additions and 13 deletions
|
@ -215,6 +215,21 @@ class RRSet {
|
|||
array_push($this->comments, $comment);
|
||||
}
|
||||
|
||||
public function rrsets2records() {
|
||||
$ret = Array();
|
||||
|
||||
foreach ($this->rrsets as $rrset) {
|
||||
foreach ($rrset->export_records() as $record) {
|
||||
$record['name'] = $rrset['name'];
|
||||
$record['ttl'] = $rrset['ttl'];
|
||||
$record['type'] = $rrset['type'];
|
||||
}
|
||||
array_push($ret, $record);
|
||||
}
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
public function export() {
|
||||
$ret = Array();
|
||||
$ret['comments'] = $this->export_comments();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue