_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); } }