IXR_Request::__construct() public WP 1.0
PHP5 constructor.
{} Это метод класса: IXR_Request{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$IXR_Request = new IXR_Request(); $IXR_Request->__construct( $method, $args );
- $method (обязательный)
- -
- $args (обязательный)
- -
Код IXR_Request::__construct() IXR Request:: construct WP 5.6.2
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>';
}