]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/WikiDB/cvs.php
include [all] Include and file path should be devided with single space. File path...
[SourceForge/phpwiki.git] / lib / WikiDB / cvs.php
1 <?php
2
3
4
5 require_once 'lib/WikiDB.php';
6 require_once 'lib/WikiDB/backend/cvs.php';
7
8 /**
9  * Wrapper class for the cvs backend.
10  *
11  * @Author: Gerrit Riessen, gerrit.riessen@open-source-consultants.de
12  *
13  * Use the new cvsclient PECL extension, if available
14  * http://pecl.php.net/package/cvsclient
15  *
16  */
17 class WikiDB_cvs
18 extends WikiDB
19 {
20     var $_backend;
21
22     /**
23      * Constructor requires the DB parameters.
24      */
25     function WikiDB_cvs( $dbparams ) {
26         if (loadPhpExtension('cvsclient'))
27             $this->_backend = new WikiDB_backend_cvsclient( $dbparams );
28         else
29             $this->_backend = new WikiDB_backend_cvs( $dbparams );
30     }
31 }