Skip to content
Browse files

added missing phpdoc

git-svn-id: http://svn.php.net/repository/pear/packages/DBA/trunk@96859 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 49ef59d commit bedc44d38488c159619793fe11f2df87e3236ebc Brent Cook committed Sep 25, 2002
Showing with 12 additions and 0 deletions.
  1. +12 −0 DBA.php
View
12 DBA.php
@@ -60,6 +60,13 @@ function raiseError($message) {
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 @@ function exists($name, $driver = 'file')
}
}
+ /**
+ * Returns an array of the currently supported drivers
+ *
+ * @return array
+ */
function getDriverList()
{
return array('gdbm', 'db3', 'file');

0 comments on commit bedc44d

Please sign in to comment.
Something went wrong with that request. Please try again.