Skip to content
Snippets Groups Projects
Commit 42a6fba0 authored by Gerrit Uitslag's avatar Gerrit Uitslag
Browse files

rename constructor, visibility functions of dokuwiki_xmlrpc_server

parent bcbcbeb7
No related branches found
No related tags found
No related merge requests found
......@@ -11,12 +11,12 @@ if(!$conf['remote']) die('XML-RPC server not enabled.');
* XMLRPC functions.
*/
class dokuwiki_xmlrpc_server extends IXR_Server {
var $remote;
protected $remote;
/**
* Constructor. Register methods and run Server
*/
function dokuwiki_xmlrpc_server(){
public function __construct(){
$this->remote = new RemoteAPI();
$this->remote->setDateTransformation(array($this, 'toDate'));
$this->remote->setFileTransformation(array($this, 'toFile'));
......@@ -28,7 +28,7 @@ class dokuwiki_xmlrpc_server extends IXR_Server {
* @param array $args
* @return IXR_Error|mixed
*/
function call($methodname, $args){
public function call($methodname, $args){
try {
$result = $this->remote->call($methodname, $args);
return $result;
......@@ -49,7 +49,7 @@ class dokuwiki_xmlrpc_server extends IXR_Server {
* @param string|int $data iso date(yyyy[-]mm[-]dd[ hh:mm[:ss]]) or timestamp
* @return IXR_Date
*/
function toDate($data) {
public function toDate($data) {
return new IXR_Date($data);
}
......@@ -57,7 +57,7 @@ class dokuwiki_xmlrpc_server extends IXR_Server {
* @param string $data
* @return IXR_Base64
*/
function toFile($data) {
public function toFile($data) {
return new IXR_Base64($data);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment