Path

ez components / documentation / api reference / 2007.2.1 / databaseschema


eZ Components 2007.2.1

DatabaseSchema: ezcDbSchemaPhpArrayReader

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

Class: ezcDbSchemaPhpArrayReader

Handler that reads database definitions and database difference definitions from a file containing a PHP variable. [source]

Implemented Interfaces

Method Summary

public int getDiffReaderType( )
Returns what type of schema difference reader this class implements.
public int getReaderType( )
Returns what type of reader writer this class implements.
public ezcDbSchemaDiff loadDiffFromFile( $file )
Returns the database differences stored in the file $file
public ezcDbSchema loadFromFile( $file )
Returns the database schema stored in the file $file

Methods

getDiffReaderType

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

getReaderType

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

loadDiffFromFile

ezcDbSchemaDiff loadDiffFromFile( string $file )
Returns the database differences stored in the file $file

Parameters

Name Type Description
$file string  

Throws

ClassDescription
ezcBaseFileNotFoundException if the file $file could not be found.
ezcDbSchemaInvalidSchemaException if the data in the $file is corrupt or when the file could not be opened.

loadFromFile

ezcDbSchema loadFromFile( string $file )
Returns the database schema stored in the file $file

Parameters

Name Type Description
$file string  

Throws

ClassDescription
ezcBaseFileNotFoundException if the file $file could not be found.
ezcDbSchemaInvalidSchemaException if the data in the $file is corrupt or when the file could not be opened.

Last updated: Thu, 31 Jan 2008