예제 #1
0
 /**
  * Register the services of the added modules to the xmlrpc server
  * @param Server instance of an xmlrpc server
  */
 public function registerServices(Server $server)
 {
     foreach ($this->modules as $module) {
         $servicePrefix = $module->getPrefix();
         $services = $module->getServices();
         foreach ($services as $service) {
             $description = null;
             if (isset($service[4])) {
                 $description = $service[4];
             }
             $server->registerService($servicePrefix . $service[0], $service[1], $service[2], $service[3], $description);
         }
     }
 }
예제 #2
0
 /**
  * Registers a the provided service on the provided XML-RPC servie
  * @param zibo\library\xmlrpc\Server $server
  * @param string $name The name of the method
  * @param string $returnType The type of the return value of the method
  * @param array $parameterTypes Array with the types of the arguments
  * @param string $description A description of this method
  * @return null
  */
 private function registerService(Server $server, $name, $returnType, array $parameterTypes = null, $description = null)
 {
     $callback = array($this, $name);
     $name = RepositoryModule::SERVICE_PREFIX . $name;
     $server->registerService($name, $callback, $returnType, $parameterTypes, $description);
 }
예제 #3
0
 /**
  * Constructs a new extended XML-RPC server
  * @return null
  */
 public function __construct()
 {
     parent::__construct();
     $this->registerIntrospectionServices();
 }