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