Example #1
0
 /**
  * Constructor. Register methods and run Server
  */
 function dokuwiki_xmlrpc_server()
 {
     $this->remote = new RemoteAPI();
     $this->remote->setDateTransformation(array($this, 'toDate'));
     $this->remote->setFileTransformation(array($this, 'toFile'));
     parent::__construct();
 }
Example #2
0
 /**
  * Constructor. Register methods and run Server
  */
 public function __construct()
 {
     $this->remote = new RemoteAPI();
     $this->remote->setDateTransformation(array($this, 'toDate'));
     $this->remote->setFileTransformation(array($this, 'toFile'));
     parent::__construct();
 }
Example #3
0
 /**
  * Constructor. Defines the API and starts the server
  *
  * In the constructor, the API for the server is defined
  * by placing method names inside the method array. These
  * methods must then be defined later in this class. See
  * the format of the method for clues on how to add more.
  */
 public function __construct()
 {
     $this->methods = array('jobs.getMachines' => 'this:jobs_getMachines', 'jobs.getAllPlugins' => 'this:jobs_getAllPlugins', 'jobs.getProfilePlugins' => 'this:jobs_getProfilePlugins', 'jobs.getProfileSettings' => 'this:jobs_getProfileSettings', 'jobs.getPendingProfileIds' => 'this:jobs_getPendingProfileIds', 'jobs.getStatus' => 'this:jobs_getStatus', 'jobs.getCancel' => 'this:jobs_getCancel', 'jobs.getCountRunning' => 'this:jobs_getCountRunning', 'jobs.getPluginsBySeverity' => 'this:jobs_getPluginsBySeverity', 'jobs.getPluginsByFamily' => 'this:jobs_getPluginsByFamily', 'jobs.getSpecialProfileItems' => 'this:jobs_getSpecialProfileItems', 'jobs.setResetCancel' => 'this:jobs_setResetCancel', 'jobs.setProgress' => 'this:jobs_setProgress', 'jobs.setStatus' => 'this:jobs_setStatus', 'jobs.setFinishedDate' => 'this:jobs_setFinishedDate', 'jobs.saveReport' => 'this:jobs_saveReport', 'jobs.emailResults' => 'this:jobs_emailResults', 'jobs.addExemption' => 'this:jobs_addExemption');
     parent::__construct($this->methods);
 }
Example #4
0
 /**
  * Register service and construct helper
  */
 function __construct()
 {
     /** @var helper_plugin_blogtng_linkback tools */
     $this->tools = plugin_load('helper', 'blogtng_linkback');
     parent::__construct(array('pingback.ping' => 'this:ping'));
 }
Example #5
0
 /**
  * Register service and construct helper
  */
 function PingbackServer()
 {
     $this->tools =& plugin_load('helper', 'blogtng_linkback');
     parent::__construct(array('pingback.ping' => 'this:ping'));
 }