Example #1
0
 /**
  * Init the XML-RPC client
  */
 private function init($login = true)
 {
     if (null !== $this->xml_rpc) {
         if (true === $login && null === $this->xml_rpc->getUid()) {
             $this->login();
         }
         return;
     }
     $this->xml_rpc = new Client($this->host, $this->port);
     if (null !== $this->logger) {
         $this->xml_rpc->setLogger($this->logger);
     }
     if (true === $login) {
         $this->login();
     }
 }