summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/plugins/remote.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/plugins/remote.php b/lib/plugins/remote.php
index 42c2f53c8..a51f701fb 100644
--- a/lib/plugins/remote.php
+++ b/lib/plugins/remote.php
@@ -2,10 +2,20 @@
abstract class DokuWiki_Remote_Plugin extends DokuWiki_Plugin {
+ private $api;
+
+ public function __construct() {
+ $this->api = new RemoteAPI();
+ }
+
/**
* @abstract
* @return array Information to all provided methods. {@see RemoteAPI}.
*/
public abstract function _getMethods();
+ protected function getApi() {
+ return $this->api;
+ }
+
}