PHP 8.1.33
Preview: class-IXR-request.php Size: 927 B
/home/jambtst2015/public_html/www.securiskbrokers.com/wp-includes/IXR/class-IXR-request.php

<?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;
    }
}

Directory Contents

Dirs: 0 × Files: 10

Name Size Perms Modified Actions
414 B lrw-r--r-- 2016-08-27 02:08:34
Edit Download
4.67 KB lrw-r--r-- 2020-06-30 23:50:04
Edit Download
1.23 KB lrw-r--r-- 2020-06-30 23:50:04
Edit Download
1.65 KB lrw-r--r-- 2019-05-26 04:12:54
Edit Download
854 B lrw-r--r-- 2016-08-27 02:08:34
Edit Download
5.20 KB lrw-r--r-- 2016-08-27 02:08:34
Edit Download
8.00 KB lrw-r--r-- 2024-09-18 22:04:14
Edit Download
927 B lrw-r--r-- 2016-08-27 02:08:34
Edit Download
6.51 KB lrw-r--r-- 2021-05-24 06:18:58
Edit Download
3.70 KB lrw-r--r-- 2016-08-27 02:08:34
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).