Skip to content
Snippets Groups Projects
Commit 67b479b2 authored by Gerrit Uitslag's avatar Gerrit Uitslag
Browse files

PHPDocs for remote and action

parent 2b6c6819
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ class remote_plugin_acl extends DokuWiki_Remote_Plugin { ...@@ -8,7 +8,7 @@ class remote_plugin_acl extends DokuWiki_Remote_Plugin {
/** /**
* Returns details about the remote plugin methods * Returns details about the remote plugin methods
* *
* @return array * @return array Information about all provided methods. {@see RemoteAPI}
*/ */
public function _getMethods() { public function _getMethods() {
return array( return array(
......
...@@ -16,6 +16,8 @@ class DokuWiki_Action_Plugin extends DokuWiki_Plugin { ...@@ -16,6 +16,8 @@ class DokuWiki_Action_Plugin extends DokuWiki_Plugin {
/** /**
* Registers a callback function for a given event * Registers a callback function for a given event
*
* @param Doku_Event_Handler $controller
*/ */
public function register(Doku_Event_Handler $controller) { public function register(Doku_Event_Handler $controller) {
trigger_error('register() not implemented in '.get_class($this), E_USER_WARNING); trigger_error('register() not implemented in '.get_class($this), E_USER_WARNING);
......
<?php <?php
/**
* Class DokuWiki_Remote_Plugin
*/
abstract class DokuWiki_Remote_Plugin extends DokuWiki_Plugin { abstract class DokuWiki_Remote_Plugin extends DokuWiki_Plugin {
private $api; private $api;
/**
* Constructor
*/
public function __construct() { public function __construct() {
$this->api = new RemoteAPI(); $this->api = new RemoteAPI();
} }
/** /**
* Get all available methods with remote access.
*
* @abstract * @abstract
* @return array Information to all provided methods. {@see RemoteAPI}. * @return array Information about all provided methods. {@see RemoteAPI}.
*/ */
public abstract function _getMethods(); public abstract function _getMethods();
/**
* @return RemoteAPI
*/
protected function getApi() { protected function getApi() {
return $this->api; return $this->api;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment