CustomVariable(Boolean|Null|Number): provide JSON
This commit is contained in:
parent
99608310c5
commit
d6d25bd306
|
@ -16,6 +16,11 @@ class CustomVariableBoolean extends CustomVariable
|
|||
return 'json';
|
||||
}
|
||||
|
||||
public function getDbValue()
|
||||
{
|
||||
return json_encode($this->getValue());
|
||||
}
|
||||
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
|
|
|
@ -17,6 +17,11 @@ class CustomVariableNull extends CustomVariable
|
|||
return null;
|
||||
}
|
||||
|
||||
public function getDbValue()
|
||||
{
|
||||
return json_encode($this->getValue());
|
||||
}
|
||||
|
||||
public function getDbFormat()
|
||||
{
|
||||
return 'json';
|
||||
|
|
|
@ -29,6 +29,11 @@ class CustomVariableNumber extends CustomVariable
|
|||
return 'json';
|
||||
}
|
||||
|
||||
public function getDbValue()
|
||||
{
|
||||
return json_encode($this->getValue());
|
||||
}
|
||||
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
|
|
Loading…
Reference in New Issue