コード例 #1
0
ファイル: AuthBlock.php プロジェクト: rohdoor/sentora-whmcs
 /**
  * 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();
 }