Path

ez components / documentation / api reference / 1.1.2 / databaseschema


eZ Components 1.1.2

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, $schemaDiff )
Saves the differences in $schemaDiff to the file $file
public void saveToFile( $file, $dbSchema, $schema )
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, ezcDbSchemaDiff $schemaDiff )
Saves the differences in $schemaDiff to the file $file

Parameters

Name Type Description
$file string  
$schemaDiff ezcDbSchemaDiff  
$dbSchemaDiff ezcDbSchemaDiff  

saveToFile

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

Parameters

Name Type Description
$file string  
$schema ezcDbSchema  
$dbSchema ezcDbSchema  

Last updated: Thu, 01 Nov 2007