adoSchema::RemoveSchemaString PHP Method

RemoveSchemaString() public method

Call this method to parse a string containing an XML schema (see the DTD for the proper format) and generate the SQL necessary to uninstall the database described by the schema.
See also: RemoveSchema()
public RemoveSchemaString ( string $schema, boolean $returnSchema = FALSE ) : array
$schema string XML schema string.
$returnSchema boolean Return schema rather than parsing.
return array Array of SQL queries, ready to execute.
    function RemoveSchemaString($schema, $returnSchema = FALSE)
    {
        // grab current version
        if (!($version = $this->SchemaStringVersion($schema))) {
            return FALSE;
        }
        return $this->ParseSchemaString($this->TransformSchema($schema, 'remove-' . $version), $returnSchema);
    }