[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/core/classes/ -> MantisWikiPlugin.class.php (source)

   1  <?php
   2  # MantisBT - A PHP based bugtracking system
   3  
   4  # Copyright (C) 2002 - 2011  MantisBT Team - mantisbt-dev@lists.sourceforge.
   5  
   6  # MantisBT is free software: you can redistribute it and/or modify
   7  # it under the terms of the GNU General Public License as published by
   8  # the Free Software Foundation, either version 2 of the License, or
   9  # (at your option) any later version.
  10  #
  11  # MantisBT is distributed in the hope that it will be useful,
  12  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14  # GNU General Public License for more details.
  15  #
  16  # You should have received a copy of the GNU General Public License
  17  # along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
  18  
  19  /**
  20   * Mantis Wiki Plugins
  21   * @copyright Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
  22   * @copyright Copyright (C) 2002 - 2011  MantisBT Team - mantisbt-dev@lists.sourceforge.net
  23   * @link http://www.mantisbt.org
  24   * @package MantisBT
  25   */
  26  
  27  /**
  28   * Base class that implements the skeleton for a wiki plugin.
  29   * @package MantisBT
  30   * @subpackage classes
  31   */
  32  abstract class MantisWikiPlugin extends MantisPlugin {
  33  
  34  	function hooks() {
  35          return array(
  36              'EVENT_WIKI_INIT' => 'wiki_init',
  37              'EVENT_WIKI_LINK_BUG' => 'link_bug',
  38              'EVENT_WIKI_LINK_PROJECT' => 'link_project',
  39          );
  40      }
  41  
  42  	function wiki_init() {
  43          return true;
  44      }
  45  
  46      abstract function link_bug( $p_event, $p_bug_id );
  47      abstract function link_project( $p_event, $p_project_id );
  48  }
  49  


Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7