MetaData: Introduce new header option `ManualOrder'

This commit is contained in:
Johannes Meyer 2018-12-17 14:45:01 +01:00
parent 8c2f0e30bb
commit c7f25ba0c4

View file

@ -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);