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