diff -r bd595ad770fc -r 1c2f13fd785c web/enmi/Zend/XmlRpc/Value/Base64.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/enmi/Zend/XmlRpc/Value/Base64.php Thu Jan 20 19:30:54 2011 +0100 @@ -0,0 +1,68 @@ +_type = self::XMLRPC_TYPE_BASE64; + + $value = (string)$value; // Make sure this value is string + if (!$alreadyEncoded) { + $value = base64_encode($value); // We encode it in base64 + } + $this->_value = $value; + } + + /** + * Return the value of this object, convert the XML-RPC native base64 value into a PHP string + * We return this value decoded (a normal string) + * + * @return string + */ + public function getValue() + { + return base64_decode($this->_value); + } +} \ No newline at end of file