1<?php 2 3/** 4 * Class DokuWiki_Remote_Plugin 5 */ 6abstract class DokuWiki_Remote_Plugin extends DokuWiki_Plugin { 7 8 private $api; 9 10 /** 11 * Constructor 12 */ 13 public function __construct() { 14 $this->api = new RemoteAPI(); 15 } 16 17 /** 18 * Get all available methods with remote access. 19 * 20 * @abstract 21 * @return array Information about all provided methods. {@see RemoteAPI}. 22 */ 23 public abstract function _getMethods(); 24 25 /** 26 * @return RemoteAPI 27 */ 28 protected function getApi() { 29 return $this->api; 30 } 31 32} 33