mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
parent
777c4d0baf
commit
acb93ce1ae
@ -115,4 +115,18 @@ class Document
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert $this to an array
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function toArray()
|
||||
{
|
||||
$a = array();
|
||||
foreach ($this->sections as $section) {
|
||||
$a[$section->getName()] = $section->toArray();
|
||||
}
|
||||
return $a;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user