XML_RPC2
[ class tree: XML_RPC2 ] [ index: XML_RPC2 ] [ all elements ]

Class: XML_RPC2_Backend_Php_Value_Base64

Source Location: /XML_RPC2-1.1.2/XML/RPC2/Backend/Php/Value/Base64.php

Class Overview

XML_RPC2_Value
   |
   --XML_RPC2_Backend_Php_Value
      |
      --XML_RPC2_Backend_Php_Value_Base64

XML_RPC base64 value class. Instances of this class represent base64-encoded string scalars in XML_RPC


Author(s):

Copyright:

  • 2004-2006 Sergio Carvalho

Methods


Inherited Variables

Inherited Methods

Class: XML_RPC2_Backend_Php_Value

XML_RPC2_Backend_Php_Value::createFromDecode()
Decode an encoded value and build the applicable XML_RPC2_Value subclass
XML_RPC2_Backend_Php_Value::createFromNative()
Choose a XML_RPC2_Value subclass appropriate for the given value and create it.
XML_RPC2_Backend_Php_Value::getNativeValue()
nativeValue property getter
XML_RPC2_Backend_Php_Value::setNativeValue()
nativeValue setter

Class: XML_RPC2_Value

XML_RPC2_Value::createFromNative()
Factory method that constructs the appropriate XML-RPC encoded type value

Class Details

[line 64]
XML_RPC base64 value class. Instances of this class represent base64-encoded string scalars in XML_RPC

To work on a compatible way with the xmlrpcext backend, we introduce a particular "nativeValue" which is a standard class (stdclass) with two public properties : scalar => the string (non encoded) xmlrpc_type => 'base64'

The constructor can be called with a "classic" string or with a such object



[ Top ]


Method Detail

__construct (Constructor)   [line 77]

XML_RPC2_Backend_Php_Value_Base64 __construct( mixed $nativeValue)

Constructor. Will build a new XML_RPC2_Backend_Php_Value_Base64 with the given value

This class handles encoding-decoding internally. Do not provide the native string base64-encoded

  • Access: public

Parameters:

mixed   $nativeValue   —  String $nativeValue to be transmited base64-encoded or "stdclass native value"

[ Top ]

decode   [line 115]

void decode( mixed $xml)

Decode transport XML and set the instance value accordingly
  • Access: public

Parameters:

mixed   $xml   —  The encoded XML-RPC value,

[ Top ]

encode   [line 101]

string encode( )

Encode the instance into XML, for transport
  • Return: The encoded XML-RPC value,
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:56:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.