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

Class: XML_RPC_Message

Source Location: /XML_RPC-1.4.0/RPC.php

Class Overview

XML_RPC_Base
   |
   --XML_RPC_Message

The methods and properties for composing XML RPC messages


Author(s):

Version:

  • Release: 1.4.0

Copyright:

  • 1999-2001 Edd Dumbill, 2001-2005 The PHP Group

Variables

Methods


Inherited Variables

Inherited Methods

Class: XML_RPC_Base

XML_RPC_Base::isError()
Tell whether something is a PEAR_Error object
XML_RPC_Base::raiseError()
PEAR Error handling

Class Details

[line 1094]
The methods and properties for composing XML RPC messages


[ Top ]


Class Variables

$debug =  0

[line 1100]

The current debug mode (1 = on, 0 = off)

Type:   integer


[ Top ]

$methodname =  ''

[line 1117]

The method presently being evaluated

Type:   string


[ Top ]

$params = array()

[line 1122]


Type:   array


[ Top ]

$payload =  ''

[line 1128]

The XML message being generated

Type:   string


[ Top ]

$send_encoding =  ''

[line 1111]

The encoding to be used for outgoing messages

Defaults to the value of $GLOBALS['XML_RPC_defencoding']


Type:   string


[ Top ]



Method Detail

XML_RPC_Message (Constructor)   [line 1133]

void XML_RPC_Message( mixed $meth, [mixed $pars = 0])


[ Top ]

addParam   [line 1215]

void addParam( mixed $par)


[ Top ]

createPayload   [line 1178]

void createPayload( )


[ Top ]

getEncoding   [line 1281]

string getEncoding( string $data)

Determine the XML's encoding via the encoding attribute in the XML declaration

If the encoding parameter is not set or is not ISO-8859-1, UTF-8 or US-ASCII, $XML_RPC_defencoding will be returned.


Parameters:

string   $data     the XML that will be parsed

[ Top ]

getNumParams   [line 1247]

int getNumParams( )

  • Return: the number of parameters

[ Top ]

getParam   [line 1230]

object the getParam( int $i)

Obtains an XML_RPC_Value object for the given parameter
  • Return: XML_RPC_Value object. If the parameter doesn't exist, an XML_RPC_Response object.
  • Since: Returns XML_RPC_Response object on error since Release 1.3.0

Parameters:

int   $i     the index number of the parameter to obtain

[ Top ]

method   [line 1195]

string method( [mixed $meth = ''])

  • Return: the name of the method

[ Top ]

parseResponse   [line 1319]

object a parseResponse( [mixed $data = ''])

  • Return: new XML_RPC_Response object

[ Top ]

parseResponseFile   [line 1307]

object a parseResponseFile( mixed $fp)

  • Return: new XML_RPC_Response object

[ Top ]

serialize   [line 1206]

string serialize( )

  • Return: the payload

[ Top ]

setSendEncoding   [line 1262]

void setSendEncoding( string $type)

Sets the XML declaration's encoding attribute

Parameters:

string   $type     the encoding type (ISO-8859-1, UTF-8 or US-ASCII)

[ Top ]

xml_footer   [line 1168]

string xml_footer( )

  • Return: the closing </methodCall> tag

[ Top ]

xml_header   [line 1155]

string xml_header( )

Produces the XML declaration including the encoding attribute

The encoding is determined by this class' $send_encoding property. If the $send_encoding property is not set, use $GLOBALS['XML_RPC_defencoding'].


[ Top ]


Documentation generated on Sun, 14 Aug 2005 16:30:11 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.