<?php /** * IXR_Request * * @package IXR * @since 1.5.0 */ class IXR_Request { var $method; var $args; var $xml; /** * PHP5 constructor. */ function __construct($method, $args) { $this->method = $method; $this->args = $args; $this->xml = <<<EOD <?xml version="1.0"?> <methodCall> <methodName>{$this->method}</methodName> <params> EOD; foreach ($this->args as $arg) { $this->xml .= '<param><value>'; $v = new IXR_Value($arg); $this->xml .= $v->getXml(); $this->xml .= "</value></param>\n"; } $this->xml .= '</params></methodCall>'; } /** * PHP4 constructor. */ public function IXR_Request( $method, $args ) { self::__construct( $method, $args ); } function getLength() { return strlen($this->xml); } function getXml() { return $this->xml; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
class-IXR-base64.php | File | 414 B | 0644 |
|
class-IXR-client.php | File | 4.67 KB | 0644 |
|
class-IXR-clientmulticall.php | File | 1.23 KB | 0644 |
|
class-IXR-date.php | File | 1.65 KB | 0644 |
|
class-IXR-error.php | File | 854 B | 0644 |
|
class-IXR-introspectionserver.php | File | 5.2 KB | 0644 |
|
class-IXR-message.php | File | 8 KB | 0644 |
|
class-IXR-request.php | File | 927 B | 0644 |
|
class-IXR-server.php | File | 6.51 KB | 0644 |
|
class-IXR-value.php | File | 3.7 KB | 0644 |
|