Zeta Components - high quality PHP components

Zeta Components Manual :: Docs For Class ezcDbSchemaPhpArrayWriter

DatabaseSchema::ezcDbSchemaPhpArrayWriter

Class ezcDbSchemaPhpArrayWriter

Writer handler for files containing PHP arrays that represent DB schemas.

Source for this file: /DatabaseSchema/src/handlers/php_array/writer.php

Implements interfaces:

Version:   //autogentag//

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

Implementation of:
Method Description
ezcDbSchemaDiffWriter::getDiffWriterType() Returns what type of schema difference writer this class implements.

getWriterType

int getWriterType( )

Returns what type of schema writer this class implements.

This method always returns ezcDbSchema::FILE

Implementation of:
Method Description
ezcDbSchemaWriter::getWriterType() Returns what type of schema writer this class implements.

saveDiffToFile

void saveDiffToFile( string $file , ezcDbSchemaDiff $dbSchemaDiff )

Saves the differences in $schemaDiff to the file $file

Parameters:
Name Type Description
$file string
$dbSchemaDiff ezcDbSchemaDiff
Implementation of:
Method Description
ezcDbSchemaDiffFileWriter::saveDiffToFile() Saves the differences in $schemaDiff to the file $file

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
Implementation of:
Method Description
ezcDbSchemaFileWriter::saveToFile() Saves the schema definition in $schema to the file $file.
Documentation generated by phpDocumentor 1.4.3