mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
parent
b441156934
commit
777c4d0baf
@ -169,4 +169,18 @@ class Section
|
|||||||
$str = str_replace(';', '\\;', $str);
|
$str = str_replace(';', '\\;', $str);
|
||||||
return str_replace(PHP_EOL, ' ', $str);
|
return str_replace(PHP_EOL, ' ', $str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert $this to an array
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function toArray()
|
||||||
|
{
|
||||||
|
$a = array();
|
||||||
|
foreach ($this->directives as $directive) {
|
||||||
|
$a[$directive->getKey()] = $directive->getValue();
|
||||||
|
}
|
||||||
|
return $a;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user