irm-1.6-b3/MDB/Manager.php
/**
     * Parse a database definition file by creating a Metabase schema format
     * parser object and passing the file contents as parser input data stream.
     *
     * @param string $input_file the path of the database schema file.
     * @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.
     * @param bool $fail_on_invalid_names (optional) make function fail on invalid
     * names
     * @return mixed MDB_OK on success, or a MDB error object
     * @access public
     */
Parse a database definition file by creating a Metabase schema format
parser object and passing the file contents as parser input data stream.

@param string $input_file the path of the database schema file.
@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.
@param bool $fail_on_invalid_names (optional) make function fail on invalid
names
@return mixed MDB_OK on success, or a MDB error object
@access public
Parse a database definition file by creating a Metabase schema format parser object and passing the file contents as parser input data stream . @param string $input_file the path of the database schema file . @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 . @param bool $fail_on_invalid_names ( optional ) make function fail on invalid names @return mixed MDB_OK on success or a MDB error object @access public
function parseDatabaseDefinitionFile($input_file, $variables, $fail_on_invalid_names = 1)
    {
        $parser =& new MDB_Parser($variables, $fail_on_invalid_names);
        $result = $parser->setInputFile($input_file);
        if(MDB::isError($result)) {
            return($result);
        };
        $result = $parser->parse();
        if(MDB::isError($result)) {
            return($result);
        };
        if(MDB::isError($parser->error)) {
            return($parser->error);
        }
        return($parser->database_definition);
    }
function parseDatabaseDefinitionFile ( $ input_file , $ variables , $ fail_on_invalid_names = 1 ) { $ parser = & new MDB_Parser ( $ variables , $ fail_on_invalid_names ) ; $ result = $ parser -> setInputFile ( $ input_file ) ; if ( MDB :: isError ( $ result ) ) { return ( $ result ) ; } ; $ result = $ parser -> parse ( ) ; if ( MDB :: isError ( $ result ) ) { return ( $ result ) ; } ; if ( MDB :: isError ( $ parser -> error ) ) { return ( $ parser -> error ) ; } return ( $ parser -> database_definition ) ; }
Parse a database definition file by creating a Metabase schema format
 parser object and passing the file contents as parser input data stream.
Parse a database definition file by creating a Metabase schema format parser object and passing the file contents as parser input data stream .