[ Index ]
 

Code source de Joomla 1.0.13

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/includes/domit/ -> dom_xmlrpc_utilities.php (sommaire)

dom_xmlrpc_utilities are a set of static utilities for handling XML-RPC

Author: John Heinstein <johnkarl@nbnet.nb.ca>
Copyright: (C) 2004 John Heinstein. All rights reserved
License: http://www.gnu.org/copyleft/lesser.html LGPL License
Poids: 184 lignes (5 kb)
Inclus ou requis: 5 fois
Référencé: 0 fois
Nécessite: 4 fichiers
 includes/domit/dom_xmlrpc_struct.php
 includes/domit/dom_xmlrpc_constants.php
 includes/domit/dom_xmlrpc_base64.php
 includes/domit/dom_xmlrpc_datetime_iso8601.php

Définit 1 class

dom_xmlrpc_utilities:: (6 méthodes):
  stripHeader()
  getScalarTypeFromValue()
  getTypeFromValue()
  getScalarValue()
  isAssociativeArray()
  getInverseTranslationTable()


Classe: dom_xmlrpc_utilities  - X-Ref

A set of static utilities for handling XML-RPC

stripHeader($myResponse)   X-Ref
Strips the HTTP headers from the method response

param: string The method response, including headers
return: string The method response with headers stripped

getScalarTypeFromValue(&$value)   X-Ref
Determines the type of a scalar value

param: mixed The scalar value
return: string The type of the scalar value

getTypeFromValue(&$value)   X-Ref
Determines the type of any XML-RPC value

param: mixed The XML-RPC value
return: string The type of the XML-RPC value

getScalarValue(&$value, $type)   X-Ref
Converts the given scalar value to its XML-RPC equivalent

param: mixed The scalar value
param: string The type of the scalar value
return: string The XML-RPC equivalent of the scalar value

isAssociativeArray(&$myArray)   X-Ref
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');
param: array The array to be tested
return: boolean True if the array is associative

getInverseTranslationTable()   X-Ref
Flips the html translation table

return: array The flipped html translation table



Généré le : Wed Nov 21 14:43:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics