⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plugin.class

📁 GForge 3.0 协作开发平台 支持CVS, mailing lists, bug tracking, message boards/forums, task management, perman
💻 CLASS
字号:
<?php/** *	Plugin object * *	Provides an base class for a plugin * * This file is copyright (c) Roland Mas <lolando@debian.org>, 2002 * * $Id: Plugin.class,v 1.4 2003/02/12 17:23:47 bigdisk Exp $ * * This file is part of GForge. * * GForge is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GForge is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GForge; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */class Plugin extends Error {	var $name ;	var $hooks ;	/**	 * Plugin() - constructor	 *	 */	function Plugin () {		$this->Error() ;		$this->name = false ;		$this->hooks = array () ;	}	/**	 * GetHooks() - get list of hooks to subscribe to	 *	 * @return List of strings	 */	function GetHooks () {		return $this->hooks ;	}	/**	 * GetName() - get plugin name	 *	 * @return the plugin name	 */	function GetName () {		return $this->name ;	}	/**	 * CallHook() - call a particular hook	 *	 * @param hookname - the "handle" of the hook	 * @param params - array of parameters to pass the hook	 */	function CallHook ($hookname, $params) {		return true ;	}}// Local Variables:// mode: php// c-file-style: "bsd"// End:?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -