mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-02 16:39:25 -05:00
MetaData: Introduce new header option `ManualOrder'
This commit is contained in:
parent
8c2f0e30bb
commit
c7f25ba0c4
1 changed files with 6 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ class Metadata
|
|||
'AddToMenu' => null,
|
||||
'Backend' => null,
|
||||
'Statetype' => null,
|
||||
'ManualOrder' => null,
|
||||
// 'SLAHosts' => null
|
||||
);
|
||||
|
||||
|
|
@ -251,6 +252,11 @@ class Metadata
|
|||
return false;
|
||||
}
|
||||
|
||||
public function isManuallyOrdered()
|
||||
{
|
||||
return $this->get('ManualOrder') === 'yes';
|
||||
}
|
||||
|
||||
protected function splitCommaSeparated($string)
|
||||
{
|
||||
return preg_split('/\s*,\s*/', $string, -1, PREG_SPLIT_NO_EMPTY);
|
||||
|
|
|
|||
Loading…
Reference in a new issue