00001 <?php 00002 00003 /* 00004 * Created on Sep 6, 2006 00005 * 00006 * API for MediaWiki 1.8+ 00007 * 00008 * Copyright (C) 2006 Yuri Astrakhan <Firstname><Lastname>@gmail.com 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License along 00021 * with this program; if not, write to the Free Software Foundation, Inc., 00022 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 * http://www.gnu.org/copyleft/gpl.html 00024 */ 00025 00026 if (!defined('MEDIAWIKI')) { 00027 // Eclipse helper - will be ignored in production 00028 require_once ('ApiBase.php'); 00029 } 00030 00036 class ApiHelp extends ApiBase { 00037 00038 public function __construct($main, $action) { 00039 parent :: __construct($main, $action); 00040 } 00041 00045 public function execute() { 00046 $this->dieUsage('', 'help'); 00047 } 00048 00049 public function shouldCheckMaxlag() { 00050 return false; 00051 } 00052 00053 public function isReadMode() { 00054 return false; 00055 } 00056 00057 public function getDescription() { 00058 return array ( 00059 'Display this help screen.' 00060 ); 00061 } 00062 00063 public function getVersion() { 00064 return __CLASS__ . ': $Id: ApiHelp.php 48091 2009-03-06 13:49:44Z catrope $'; 00065 } 00066 }