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