Proper output of boolean values in JSON.

SVN:trunk[3155]
This commit is contained in:
Denis Flaven
2014-05-16 04:58:45 +00:00
parent cd37a78800
commit 317344da2e

View File

@@ -1293,6 +1293,14 @@ class AttributeBoolean extends AttributeInteger
{
return $sValue ? '1' : '0';
}
/**
* Helper to get a value that will be JSON encoded
* The operation is the opposite to FromJSONToValue
*/
public function GetForJSON($value)
{
return $value ? '1' : '0';
}
}
/**