mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 07:44:05 +02:00
IcingaConfigHelper: allow to render key/op/value
This commit is contained in:
parent
74c0fc2dc6
commit
c25c7ee95b
@ -38,10 +38,16 @@ class IcingaConfigHelper
|
|||||||
);
|
);
|
||||||
|
|
||||||
public static function renderKeyValue($key, $value, $prefix = ' ')
|
public static function renderKeyValue($key, $value, $prefix = ' ')
|
||||||
|
{
|
||||||
|
return self::renderKeyOperatorValue($key, '=', $value, $prefix);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function renderKeyOperatorValue($key, $operator, $value, $prefix = ' ')
|
||||||
{
|
{
|
||||||
$string = sprintf(
|
$string = sprintf(
|
||||||
"%s = %s",
|
"%s %s %s",
|
||||||
$key,
|
$key,
|
||||||
|
$operator,
|
||||||
$value
|
$value
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user