예제 #1
0
 public function output()
 {
     $content = jXmlRpc::encodeResponse($this->response, $GLOBALS['gJConfig']->charset);
     $this->_httpHeaders["Content-Type"] = "text/xml;charset=" . $GLOBALS['gJConfig']->charset;
     $this->_httpHeaders["Content-length"] = strlen($content);
     $this->sendHttpHeaders();
     echo $content;
     return true;
 }
예제 #2
0
 public function output()
 {
     if ($this->_outputOnlyHeaders) {
         $this->sendHttpHeaders();
         return true;
     }
     $content = jXmlRpc::encodeResponse($this->response, jApp::config()->charset);
     $this->_httpHeaders["Content-Type"] = "text/xml;charset=" . jApp::config()->charset;
     $this->_httpHeaders["Content-length"] = strlen($content);
     $this->sendHttpHeaders();
     echo $content;
     return true;
 }