5 * Copyright 2004 GForge, LLC
10 * This file is part of GForge.
12 * GForge is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * GForge is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with GForge; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 US
27 require_once('common/include/Error.class');
28 require_once('common/include/PluginManager.class');
30 class SCMFactory extends Error {
43 * @return boolean success.
45 function SCMFactory() {
50 $this->setError('SCMFactory::sys_use_scm');
57 * getSCMs - get an array of Plugin SCM objects.
59 * @return array The array of SCM objects.
62 $scm_plugins = array();
66 $hookParams['scm_plugins']=& $scm_plugins;
67 plugin_hook("scm_plugin", $hookParams);
68 $this->scms= $scm_plugins;