[ Index ] |
|
Code source de Joomla 1.0.13 |
1 <?php 2 /** 3 * dom_xmlrpc_methodresponse is a representation of a XML-RPC method response 4 * @package dom-xmlrpc 5 * @copyright (C) 2004 John Heinstein. All rights reserved 6 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 7 * @author John Heinstein <johnkarl@nbnet.nb.ca> 8 * @link http://www.engageinteractive.com/dom_xmlrpc/ DOM XML-RPC Home Page 9 * DOM XML-RPC is Free Software 10 **/ 11 12 if (!defined('DOM_XMLRPC_INCLUDE_PATH')) { 13 define('DOM_XMLRPC_INCLUDE_PATH', (dirname(__FILE__) . "/")); 14 } 15 16 require_once (DOM_XMLRPC_INCLUDE_PATH . 'dom_xmlrpc_builder.php'); 17 18 /** 19 * A representation of an XML-RPC method response 20 * 21 * @package dom-xmlrpc 22 * @author John Heinstein <johnkarl@nbnet.nb.ca> 23 */ 24 class dom_xmlrpc_methodresponse extends dom_xmlrpc_builder { 25 26 /** 27 * Constructor: Instantiates a new method response 28 * @param mixed The method response 29 */ 30 function dom_xmlrpc_methodresponse($response = null) { 31 require_once (DOM_XMLRPC_INCLUDE_PATH . 'dom_xmlrpc_constants.php'); 32 require_once (DOM_XMLRPC_INCLUDE_PATH . 'dom_xmlrpc_utilities.php'); 33 34 $this->methodType = DOM_XMLRPC_TYPE_METHODRESPONSE; 35 36 if ($response != null) { 37 $this->add($response); 38 } 39 } //dom_xmlrpc_methodresponse 40 41 /** 42 * Returns a string representation of the method response 43 * @return string A string representation of the method response 44 */ 45 function toString() { 46 $data = <<<METHODRESPONSE 47 <?xml version='1.0'?> 48 <methodResponse> 49 <params>$this->params 50 </params> 51 </methodResponse> 52 METHODRESPONSE; 53 54 return $data; 55 } //toString 56 57 /** 58 * Alias of toString 59 * @return string A string representation of the method response 60 */ 61 function toXML() { 62 return $this->toString(); 63 } //toXML 64 } //dom_xmlrpc_methodresponse 65 66 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 14:43:32 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |