DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:remote_plugins

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
devel:remote_plugins [2013-10-17 12:59]
131.180.140.159 [Custom remote names]
devel:remote_plugins [2013-11-15 13:01] (current)
Klap-in
Line 25: Line 25:
 <?php  <?php 
 class remote_plugin_time extends DokuWiki_Remote_Plugin { class remote_plugin_time extends DokuWiki_Remote_Plugin {
-    function _getMethods() {+    public function _getMethods() {
         return array(         return array(
             'getTime' => array(             'getTime' => array(
Line 34: Line 34:
     }     }
  
-    function getTime() {+    public function getTime() {
         return $this->getApi()->toDate(time());         return $this->getApi()->toDate(time());
     }     }
Line 55: Line 55:
 Take a look at the ''rawPage()'' method from ''[[xref>inc/RemoteAPICore.php]]'' Take a look at the ''rawPage()'' method from ''[[xref>inc/RemoteAPICore.php]]''
 <code php> <code php>
-function rawPage($id,$rev=''){+public function rawPage($id,$rev=''){
     $id = cleanID($id);     $id = cleanID($id);
     if(auth_quickaclcheck($id) < AUTH_READ){     if(auth_quickaclcheck($id) < AUTH_READ){
devel/remote_plugins.txt ยท Last modified: 2013-11-15 13:01 by Klap-in