Handler that reads database definitions and database difference definitions from a file containing a PHP variable.
Source for this file: /DatabaseSchema/src/handlers/php_array/reader.php
Version: | //autogentag// |
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 |
Returns what type of schema difference reader this class implements.
This method always returns ezcDbSchema::FILE
Method | Description |
---|---|
ezcDbSchemaDiffReader::getDiffReaderType() |
Returns what type of schema difference reader this class implements. |
Returns what type of reader writer this class implements.
This method always returns ezcDbSchema::FILE
Method | Description |
---|---|
ezcDbSchemaReader::getReaderType() |
Returns what type of schema reader this class implements. |
Returns the database differences stored in the file $file
Name | Type | Description |
---|---|---|
$file |
string |
Type | Description |
---|---|
ezcDbSchemaInvalidSchemaException |
if the data in the $file is corrupt or when the file could not be opened. |
ezcBaseFileNotFoundException |
if the file $file could not be found. |
Method | Description |
---|---|
ezcDbSchemaDiffFileReader::loadDiffFromFile() |
Returns an ezcDbSchemaDiff object created from the differences stored in the file $file |
Returns the database schema stored in the file $file
Name | Type | Description |
---|---|---|
$file |
string |
Type | Description |
---|---|
ezcDbSchemaInvalidSchemaException |
if the data in the $file is corrupt or when the file could not be opened. |
ezcBaseFileNotFoundException |
if the file $file could not be found. |
Method | Description |
---|---|
ezcDbSchemaFileReader::loadFromFile() |
Returns an ezcDbSchema with the definition from $file |