From 26e4d4ff0ed81733fec44333f5de90b6df886fd4 Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Thu, 11 Jun 2015 10:39:12 +0200 Subject: [PATCH] CustomVariable: Fix some mistakes --- library/Director/CustomVariable/CustomVariableArray.php | 6 ++++++ .../Director/CustomVariable/CustomVariableDictionary.php | 7 +++++++ library/Director/CustomVariable/CustomVariableString.php | 2 +- library/Director/CustomVariable/CustomVariables.php | 2 +- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/library/Director/CustomVariable/CustomVariableArray.php b/library/Director/CustomVariable/CustomVariableArray.php index d21f5e62..73378bcb 100644 --- a/library/Director/CustomVariable/CustomVariableArray.php +++ b/library/Director/CustomVariable/CustomVariableArray.php @@ -12,4 +12,10 @@ class CustomVariableArray extends CustomVariable return $var->getValue() === $this->getValue(); } + + public function toConfigString() + { + // TODO: Implement toConfigString() method. + } + } diff --git a/library/Director/CustomVariable/CustomVariableDictionary.php b/library/Director/CustomVariable/CustomVariableDictionary.php index 35ef431d..79bd7edd 100644 --- a/library/Director/CustomVariable/CustomVariableDictionary.php +++ b/library/Director/CustomVariable/CustomVariableDictionary.php @@ -2,6 +2,8 @@ namespace Icinga\Module\Director\CustomVariable; +use Countable; + class CustomVariableDictionary extends CustomVariable implements Countable { public function equals(CustomVariable $var) @@ -48,4 +50,9 @@ class CustomVariableDictionary extends CustomVariable implements Countable { // ... } + + public function toConfigString() + { + // TODO: Implement toConfigString() method. + } } diff --git a/library/Director/CustomVariable/CustomVariableString.php b/library/Director/CustomVariable/CustomVariableString.php index 58c59847..affc8286 100644 --- a/library/Director/CustomVariable/CustomVariableString.php +++ b/library/Director/CustomVariable/CustomVariableString.php @@ -15,7 +15,7 @@ class CustomVariableString extends CustomVariable { return c::renderKeyValue( c::escapeIfReserved($this->getKey()), - c::renderString($this->getValue() + c::renderString($this->getValue()) ); } } diff --git a/library/Director/CustomVariable/CustomVariables.php b/library/Director/CustomVariable/CustomVariables.php index d06ca8a6..28ef4309 100644 --- a/library/Director/CustomVariable/CustomVariables.php +++ b/library/Director/CustomVariable/CustomVariables.php @@ -38,7 +38,7 @@ class CustomVariables public function hasBeenModified() { - return $this->modifiec + return $this->modifiec; } public function setUnmodified()