forked from dokufreaks/plugin-tag
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremote.php
More file actions
29 lines (24 loc) · 715 Bytes
/
remote.php
File metadata and controls
29 lines (24 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Mateusz Macias <ursereg@gmail.com>
*/
// must be run within Dokuwiki
if(!defined('DOKU_INC')) die();
if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
class remote_plugin_tag extends DokuWiki_Remote_Plugin {
public function _getMethods() {
return array(
'getTagged' => array(
'args' => string,
'return' => array()
)
);
}
public function getTagged($tag) {
$helper=new helper_plugin_tag;
$tags=$helper->getTopic($ns = '', $num = NULL, $tag = $tag);
return $tags;
}
}
// vim:ts=4:sw=4:et: