/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copyright ©2006 by sTEFANs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This program 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.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* This file contains sample implementation for a project configuration
* for Test Project 1, including <i>SwcConfigFactory</i>.
* <b>Please have a close look to this file for details on <i>SwcConfig</i>
* and how to configure a standalone project outside SWC</b>. This
* file is applied as URL-argument to SWC in default.html.
* @copyright Copyright ©2006 by sTEFANs
* @license http://opensource.org/licenses/lgpl-license.php GNU General Public License
/** Interfaces for configuration. */
require_once ('swc/inc/config.inc.php');
* Returns a factory for the project <b>SwcConfig</b>.
* This function must be provided to enable SWC
* to get the <i>SwcConfigFactory</i>.
* Implements the <b>SwcConfigFactory</b> that
* provides the <b>SwcConfig</b> for Test Project1.
private static $instance =
NULL;
* Returns the single instance of this class.
if (self::$instance ==
NULL){
self::$instance =
new TestProject1ConfigFactory();
* Returns an array having an instance of
* <b>TestProject1Config</b>.
* @return array Array with <b>Test1ProjectConfig</b> object.
* Does nothing but prevent from cloning.
* Singleton c'tor that instantiates <i>SwcConfig</i>
$this->configs =
array(new TestProject1StandaloneConfig());
* This class implements a sample configuration
* Returns a user friendly name for the project.
* @return string User friendly project name.
return 'SVN Web Control';
* Returns the relative URL of the Webpage under control.
* @return string URL of page to display in MainFrame.
return '../test_project1/test.html';
/** Returns the URL of the repository for the main frame.
* @return string URL of repository. Any protocol
* (http://, svn://, etc.) is supported.
* <b>Note:</b> <i>public function GetRepositoryRootDir</i> is deprecated
* and removed from <i>SwcConfig</i> interface in SWC v1.1.0.
* Please use <i>GetRepositoryRoot</i> instead. */
return 'http://your-svn-server/svn_web_control';
* Returns the absolute path of the repository in the local file system.
* @return string Absolute path of the repository.
* @deprecated v1.1.0 Use GetRepositroyRoot() instead to configure the repository root.
* @see SwcConfig::GetRepositoryRoot
return '/path-to-repository/svn_web_control';
* Returns the HTTP URL for the workspace where the project
* is checked out. Used by SVN.
* @return string URL of Webspace.
* @deprecated v1.1.0 Use <i>GetWebspaceRootDir</i> instead to configure
* @see SwcConfig::GetWebspaceRootDir
return 'http://your-webspace/';
/** Returns the absolute path of the workspace directory in the local file system.
* @return string Absolute path of the workspace.
* <b>Note:</b> <i>public function GetWebspaceRoot</i> is deprecated
* and removed from <i>SwcConfig</i> interface in SWC v1.1.0.
* Please use <i>GetWebspaceRootDir</i> instead.
return '/path-to-your-webspace/';
* Returns the URL of WebSVN view for this project or NULL if WebSVN is not available.
return 'http://websvn-location?project-params';