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