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

Class: XML_RPC_Message

Source Location: /XML_RPC-1.4.8/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.8

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 1101]
The methods and properties for composing XML RPC messages


[ Top ]


Class Variables

$debug =  0

[line 1107]

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

Type:   integer


[ Top ]

$methodname =  ''

[line 1124]

The method presently being evaluated

Type:   string


[ Top ]

$params = array()

[line 1129]


Type:   array


[ Top ]

$payload =  ''

[line 1135]

The XML message being generated

Type:   string


[ Top ]

$remove_extra_lines =  true

[line 1142]

Should extra line breaks be removed from the payload?
  • Since: Property available since Release 1.4.6

Type:   boolean


[ Top ]

$response_payload =  ''

[line 1149]

The XML response from the remote server
  • Since: Property available since Release 1.4.6

Type:   string


[ Top ]

$send_encoding =  ''

[line 1118]

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 1155]

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


[ Top ]

addParam   [line 1247]

void addParam( mixed $par)


[ Top ]

createPayload   [line 1206]

void createPayload( )

Fills the XML_RPC_Message::$payload property

Part of the process makes sure all line endings are in DOS format (CRLF), which is probably required by specifications.


[ Top ]

getEncoding   [line 1313]

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 1279]

int getNumParams( )

  • Return: the number of parameters

[ Top ]

getParam   [line 1262]

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 1227]

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

  • Return: the name of the method

[ Top ]

parseResponse   [line 1351]

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

  • Return: new XML_RPC_Response object

[ Top ]

parseResponseFile   [line 1339]

object a parseResponseFile( mixed $fp)

  • Return: new XML_RPC_Response object

[ Top ]

serialize   [line 1238]

string serialize( )

  • Return: the payload

[ Top ]

setSendEncoding   [line 1294]

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 1191]

string xml_footer( )

  • Return: the closing </methodCall> tag

[ Top ]

xml_header   [line 1177]

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, 16 Apr 2006 12:02:32 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.