DatabaseSchema: ezcDbSchemaPhpArrayReader
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDbSchemaPhpArrayReader
|
Handler that reads database definitions and database difference definitions from a file containing a PHP variable. [
source]
Implemented Interfaces
Method Summary
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
Returns the database differences stored in the file $file
Parameters
| Name |
Type |
Description |
$file |
string |
|
Throws
| Class | Description |
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
Returns the database schema stored in the file $file
Parameters
| Name |
Type |
Description |
$file |
string |
|
Throws
| Class | Description |
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