|
cvs: pear /DBA DBA.php: msg#00577php.cvs.pear
busterb Wed Sep 25 13:59:52 2002 EDT Modified files: /pear/DBA DBA.php Log: added missing phpdoc Index: pear/DBA/DBA.php diff -u pear/DBA/DBA.php:1.20 pear/DBA/DBA.php:1.21 --- pear/DBA/DBA.php:1.20 Wed Sep 25 13:37:49 2002 +++ pear/DBA/DBA.php Wed Sep 25 13:59:52 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA.php,v 1.20 2002/09/25 17:37:49 busterb Exp $ +// $Id: DBA.php,v 1.21 2002/09/25 17:59:52 busterb Exp $ // require_once('PEAR.php'); @@ -60,6 +60,13 @@ return PEAR::raiseError('DBA: '.$message); } + /** + * Returns whether a database exists + * + * @param string $name name of the database to find + * @param string @driver driver to test for + * @return boolean true if the database exists + */ function exists($name, $driver = 'file') { if (!function_exists('dba_open') || ($driver=='file')) { @@ -73,6 +80,11 @@ } } + /** + * Returns an array of the currently supported drivers + * + * @return array + */ function getDriverList() { return array('gdbm', 'db3', 'file'); -- PEAR CVS Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | cvs: pear /DBA/DBA/Driver Builtin.php: 00577, Brent Cook |
|---|---|
| Next by Date: | cvs: pear /Benchmark Iterate.php Profiler.php Timer.php package.xml: 00577, Sebastian Bergmann |
| Previous by Thread: | cvs: pear /DBA/DBA/Driver Builtin.phpi: 00577, Brent Cook |
| Next by Thread: | cvs: pear /DBA DBA.php: 00577, Brent Cook |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |