logo       

cvs: pear /DBA DBA.php: msg#00577

php.cvs.pear

Subject: cvs: pear /DBA DBA.php

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>
Google Custom Search

News | FAQ | advertise