Пример #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;
 }
Пример #2
0
 /**
  * Retrieve the Target XMWS host
  * @return string
  */
 public function getTarget()
 {
     return $this->target->getServer();
 }