Path

ez components / documentation / api reference / 2008.2.1 / databaseschema


eZ Components 2008.2.1

DatabaseSchema: ezcDbSchemaPhpArrayWriter

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

Class: ezcDbSchemaPhpArrayWriter

Writer handler for files containing PHP arrays that represent DB schemas. [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, $dbSchemaDiff )
Saves the differences in $schemaDiff to the file $file
public void saveToFile( $file, $dbSchema )
Saves the schema definition in $schema 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 $dbSchemaDiff )
Saves the differences in $schemaDiff to the file $file

Parameters

Name Type Description
$file string  
$dbSchemaDiff ezcDbSchemaDiff  

saveToFile

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

Parameters

Name Type Description
$file string  
$dbSchema ezcDbSchema  

Last updated: Mon, 09 Feb 2009