Exemple #1
0
 function __construct($method, $args)
 {
     $this->method = $method;
     $this->args = $args;
     $this->xml = '<?xml version="1.0" encoding="utf-8" ?><methodCall><methodName>' . $this->method . '</methodName><params>';
     foreach ($this->args as $arg) {
         $this->xml .= '<param><value>';
         $v = new Value($arg);
         $this->xml .= $v->getXml();
         $this->xml .= '</value></param>' . LF;
     }
     $this->xml .= '</params></methodCall>';
 }