Exemple #1
0
 /**
  * Builds the XML configuration block for the XMWS transmission message.
  * @return string
  */
 private function build()
 {
     $conflines = ['apikey' => $this->target->getApiKey(), 'authuser' => $this->target->getUser(), 'authpass' => $this->target->getPassword()];
     $xmlcontent = "";
     foreach ($conflines as $ckey => $cvalue) {
         $xmlcontent .= "<{$ckey}>{$cvalue}</{$ckey}>" . PHP_EOL;
     }
     return $xmlcontent;
 }
 /**
  * Retrieve the Target XMWS host
  * @return string
  */
 public function getTarget()
 {
     return $this->target->getServer();
 }