aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Remote/Api.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2018-05-07 23:13:22 +0200
committerAndreas Gohr <andi@splitbrain.org>2018-05-07 23:13:22 +0200
commit1cdd0090d7e8ffd0f99da73d0911bcd46d97a9ee (patch)
treedafc87b8979838963b0284530759a2f42d50df2b /inc/Remote/Api.php
parent272a98e22f41465d58354ae15a7885070287f376 (diff)
downloaddokuwiki-1cdd0090d7e8ffd0f99da73d0911bcd46d97a9ee.tar.gz
dokuwiki-1cdd0090d7e8ffd0f99da73d0911bcd46d97a9ee.zip
moved XMLRPC server class from lib/exe to inc/Remote
Diffstat (limited to 'inc/Remote/Api.php')
-rw-r--r--inc/Remote/Api.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/Remote/Api.php b/inc/Remote/Api.php
index 1982c5479..36957a873 100644
--- a/inc/Remote/Api.php
+++ b/inc/Remote/Api.php
@@ -120,13 +120,13 @@ class Api
* @param string $method name of method
* @param array $args
* @return mixed
- * @throws \dokuwiki\Remote\RemoteException if method not exists
+ * @throws RemoteException if method not exists
*/
private function callCustomCallPlugin($method, $args)
{
$customCalls = $this->getCustomCallPlugins();
if (!array_key_exists($method, $customCalls)) {
- throw new \dokuwiki\Remote\RemoteException('Method does not exist', -32603);
+ throw new RemoteException('Method does not exist', -32603);
}
$customCall = $customCalls[$method];
return $this->callPlugin($customCall[0], $customCall[1], $args);
@@ -155,14 +155,14 @@ class Api
* @param string $method method name
* @param array $args
* @return mixed return of custom method
- * @throws \dokuwiki\Remote\RemoteException
+ * @throws RemoteException
*/
private function callPlugin($pluginName, $method, $args)
{
$plugin = plugin_load('remote', $pluginName);
$methods = $this->getPluginMethods();
if (!$plugin) {
- throw new \dokuwiki\Remote\RemoteException('Method does not exist', -32603);
+ throw new RemoteException('Method does not exist', -32603);
}
$this->checkAccess($methods[$method]);
$name = $this->getMethodName($methods, $method);
@@ -175,7 +175,7 @@ class Api
* @param string $method name of method
* @param array $args
* @return mixed
- * @throws \dokuwiki\Remote\RemoteException if method not exist
+ * @throws RemoteException if method not exist
*/
private function callCoreMethod($method, $args)
{