cvs: pear /MDB manager.php metabase_wrapper.php
| From: | Lukas Smith | Date: | Sat, 24 Aug 2002 22:40:37 +0000 |
| Subject: | cvs: pear /MDB manager.php metabase_wrapper.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5944@lists.php.net to get a copy of this message | ||
lsmith Sat Aug 24 18:40:37 2002 EDT
Modified files:
/pear/MDB metabase_wrapper.php manager.php
Log:
parseDatabaseDefinitionFile() is now a public method
Index: pear/MDB/metabase_wrapper.php
diff -u pear/MDB/metabase_wrapper.php:1.34 pear/MDB/metabase_wrapper.php:1.35
--- pear/MDB/metabase_wrapper.php:1.34 Thu Aug 22 10:06:07 2002
+++ pear/MDB/metabase_wrapper.php Sat Aug 24 18:40:36 2002
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@dybnet.de> |
// +----------------------------------------------------------------------+
//
-// $Id: metabase_wrapper.php,v 1.34 2002/08/22 14:06:07 lsmith Exp $
+// $Id: metabase_wrapper.php,v 1.35 2002/08/24 22:40:36 lsmith Exp $
//
require_once(dirname(__FILE__).'/MDB.php');
@@ -1562,7 +1562,7 @@
function ParseDatabaseDefinitionFile($input_file, &$database_definition, &$variables,
$fail_on_invalid_names = 1)
{
- $result = $this->MDB_manager_object->_parseDatabaseDefinitionFile($input_file,
$variables, $fail_on_invalid_names);
+ $result = $this->MDB_manager_object->parseDatabaseDefinitionFile($input_file,
$variables, $fail_on_invalid_names);
if (MDB::isError($result)) {
return(0);
} else {
Index: pear/MDB/manager.php
diff -u pear/MDB/manager.php:1.45 pear/MDB/manager.php:1.46
--- pear/MDB/manager.php:1.45 Sat Aug 24 18:22:33 2002
+++ pear/MDB/manager.php Sat Aug 24 18:40:36 2002
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@dybnet.de> |
// +----------------------------------------------------------------------+
//
-// $Id: manager.php,v 1.45 2002/08/24 22:22:33 lsmith Exp $
+// $Id: manager.php,v 1.46 2002/08/24 22:40:36 lsmith Exp $
//
require_once 'PEAR.php';
@@ -1403,7 +1403,7 @@
}
// }}}
- // {{{ _parseDatabaseDefinitionFile()
+ // {{{ parseDatabaseDefinitionFile()
/**
* Parse a database definition file by creating a Metabase schema format
@@ -1416,9 +1416,9 @@
* @param bool $fail_on_invalid_names (optional) make function fail on invalid
* names
* @return mixed DB_OK on success, or a MDB error object
- * @access private
+ * @access public
*/
- function _parseDatabaseDefinitionFile($input_file, $variables, $fail_on_invalid_names = 1)
+ function parseDatabaseDefinitionFile($input_file, $variables, $fail_on_invalid_names = 1)
{
$parser =& new MDB_Parser($variables, $fail_on_invalid_names);
$res = $parser->setInputFile($input_file);
@@ -1579,13 +1579,13 @@
* @param array $variables an associative array that the defines the text string values
* that are meant to be used to replace the variables that are used in the
* schema description as defined for the
- * MDB_manager::_parseDatabaseDefinitionFile function.
+ * MDB_manager::parseDatabaseDefinitionFile function.
* @return mixed DB_OK on success, or a MDB error object
* @access private
*/
function _dumpDatabaseContents($schema_file, $setup_arguments, $dump_arguments, $variables)
{
- $database_definition = $this->_parseDatabaseDefinitionFile($schema_file,
+ $database_definition = $this->parseDatabaseDefinitionFile($schema_file,
$variables, $this->options['fail_on_invalid_names']);
if (MDB::isError($database_definition)) {
return $database_definition;
@@ -2034,14 +2034,14 @@
* @param string $previous_schema_file name the previously installed database
* schema definition file.
* @param array $variables an associative array that is passed to the argument
- * of the same name to the _parseDatabaseDefinitionFile function. (there third
+ * of the same name to the parseDatabaseDefinitionFile function. (there third
* param)
* @return mixed DB_OK on success, or a MDB error object
* @access public
*/
function updateDatabase($current_schema_file, $previous_schema_file = FALSE, $variables =
array())
{
- $database_definition = $this->_parseDatabaseDefinitionFile($current_schema_file,
+ $database_definition = $this->parseDatabaseDefinitionFile($current_schema_file,
$variables, $this->options['fail_on_invalid_names']);
if (MDB::isError($database_definition)) {
return $database_definition;
@@ -2049,7 +2049,7 @@
$this->database_definition = $database_definition;
$copy = 0;
if ($previous_schema_file && file_exists($previous_schema_file)) {
- $previous_definition = $this->_parseDatabaseDefinitionFile($previous_schema_file,
$variables, 0);
+ $previous_definition = $this->parseDatabaseDefinitionFile($previous_schema_file,
$variables, 0);
if (MDB::isError($previous_definition)) {
return $previous_definition;
}