Path

ez components / documentation / api reference / 2008.2.3 / databaseschema


eZ Components 2008.2.3

DatabaseSchema: ezcDbSchemaXmlWriter

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcDbSchemaXmlWriter

Handler that stores database definitions and database difference definitions to a file in an XML format. [source]

Implemented Interfaces

Method Summary

public int getDiffWriterType( )
Returns what type of schema difference writer this class implements.
public int getWriterType( )
Returns what type of schema writer this class implements.
public void saveDiffToFile( $file, $dbSchema )
Writes the schema difference definition in $dbSchema to the file $file.
public void saveToFile( $file, $dbSchema )
Writes the schema definition in $dbSchema to the file $file.

Methods

getDiffWriterType

int getDiffWriterType( )
Returns what type of schema difference writer this class implements.
This method always returns ezcDbSchema::FILE

getWriterType

int getWriterType( )
Returns what type of schema writer this class implements.
This method always returns ezcDbSchema::FILE

saveDiffToFile

void saveDiffToFile( string $file, ezcDbSchemaDiff $dbSchema )
Writes the schema difference definition in $dbSchema to the file $file.

Parameters

Name Type Description
$file string  
$dbSchema ezcDbSchemaDiff  

saveToFile

void saveToFile( string $file, ezcDbSchema $dbSchema )
Writes the schema definition in $dbSchema to the file $file.

Parameters

Name Type Description
$file string  
$dbSchema ezcDbSchema  

Last updated: Mon, 11 May 2009