xref: /plugin/oauth/helper.php (revision 80852c1514f1ac02ca182814efb05d2d5cf93b69)
1*80852c15SAndreas Gohr<?php
2*80852c15SAndreas Gohr/**
3*80852c15SAndreas Gohr * DokuWiki Plugin oauth (Helper Component)
4*80852c15SAndreas Gohr *
5*80852c15SAndreas Gohr * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
6*80852c15SAndreas Gohr * @author  Andreas Gohr <andi@splitbrain.org>
7*80852c15SAndreas Gohr */
8*80852c15SAndreas Gohr
9*80852c15SAndreas Gohr// must be run within Dokuwiki
10*80852c15SAndreas Gohrif(!defined('DOKU_INC')) die();
11*80852c15SAndreas Gohr
12*80852c15SAndreas Gohrclass helper_plugin_oauth extends DokuWiki_Plugin {
13*80852c15SAndreas Gohr
14*80852c15SAndreas Gohr    /**
15*80852c15SAndreas Gohr     * Return info about supported methods in this Helper Plugin
16*80852c15SAndreas Gohr     *
17*80852c15SAndreas Gohr     * @return array of public methods
18*80852c15SAndreas Gohr     */
19*80852c15SAndreas Gohr    public function getMethods() {
20*80852c15SAndreas Gohr        return array(
21*80852c15SAndreas Gohr            array(
22*80852c15SAndreas Gohr                'name'   => 'getThreads',
23*80852c15SAndreas Gohr                'desc'   => 'returns pages with discussion sections, sorted by recent comments',
24*80852c15SAndreas Gohr                'params' => array(
25*80852c15SAndreas Gohr                    'namespace'         => 'string',
26*80852c15SAndreas Gohr                    'number (optional)' => 'integer'
27*80852c15SAndreas Gohr                ),
28*80852c15SAndreas Gohr                'return' => array('pages' => 'array')
29*80852c15SAndreas Gohr            ),
30*80852c15SAndreas Gohr            array(
31*80852c15SAndreas Gohr                // and more supported methods...
32*80852c15SAndreas Gohr            )
33*80852c15SAndreas Gohr        );
34*80852c15SAndreas Gohr    }
35*80852c15SAndreas Gohr
36*80852c15SAndreas Gohr}
37*80852c15SAndreas Gohr
38*80852c15SAndreas Gohr// vim:ts=4:sw=4:et:
39