summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Eckelmann <deckelmann@gmail.com>2012-02-05 12:30:02 +0100
committerDominik Eckelmann <deckelmann@gmail.com>2012-02-05 12:30:02 +0100
commit2d74814f032eb77d6ed604f6328edfc229446c3b (patch)
tree68130e2d71308fa6f5c50aa144c01686cb9c60ad
parent200ff6b799de7ba300488ec4cb4833c0092761e5 (diff)
downloadrpg-2d74814f032eb77d6ed604f6328edfc229446c3b.tar.gz
rpg-2d74814f032eb77d6ed604f6328edfc229446c3b.tar.bz2
added getapi methods to remote plugin
-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;
+ }
+
}