Class dom_xmlrpc_utilities

Description

A set of static utilities for handling XML-RPC

Located in /includes/domit/dom_xmlrpc_utilities.php (line 22)


	
			
Method Summary
string getScalarTypeFromValue (mixed &$value)
string getScalarValue (mixed &$value, string $type)
string getTypeFromValue (mixed &$value)
boolean isAssociativeArray (array &$myArray)
string stripHeader (string $myResponse)
Methods
getInverseTranslationTable (line 176)

Flips the html translation table

  • return: The flipped html translation table
array getInverseTranslationTable ()
getScalarTypeFromValue (line 48)

Determines the type of a scalar value

  • return: The type of the scalar value
string getScalarTypeFromValue (mixed &$value)
  • mixed &$value: The scalar value
getScalarValue (line 116)

Converts the given scalar value to its XML-RPC equivalent

  • return: The XML-RPC equivalent of the scalar value
string getScalarValue (mixed &$value, string $type)
  • mixed &$value: The scalar value
  • string $type: The type of the scalar value
getTypeFromValue (line 83)

Determines the type of any XML-RPC value

  • return: The type of the XML-RPC value
string getTypeFromValue (mixed &$value)
  • mixed &$value: The XML-RPC value
isAssociativeArray (line 160)

Determines whether an array is associative or not

Note: PHP converts string keys that look like integers to actual integer keys. This function will thus NOT trap $myArray = array('1'=>'blah'); DON'T use integer string keys, UNLESS you wrap them in a dom_xmlrpc_struct object The following IS considered associative, however: $myArray = array('1.2'=>'blah');

  • return: True if the array is associative
boolean isAssociativeArray (array &$myArray)
  • array &$myArray: The array to be tested
stripHeader (line 29)

Strips the HTTP headers from the method response

  • return: The method response with headers stripped
string stripHeader (string $myResponse)
  • string $myResponse: The method response, including headers

Documentation generated on Fri, 4 Mar 2005 13:56:07 +1000 by phpDocumentor 1.3.0RC3