Deals with schema handlers for a ezcDbSchema object.
Determines which handlers to use for the specified storage type.
Source for this file: /DatabaseSchema/src/handler_manager.php
Version: | //autogentag// |
public static array(string=>string) |
$diffReadHandlers
Set of standard difference read handlers. The property is an array where the key is the name of the format and the value the classname that implements the read handler. |
public static array(string=>string) |
$diffWriteHandlers
Set of standard difference write handlers. The property is an array where the key is the name of the format and the value the classname that implements the write handler. |
public static array(string=>string) |
$readHandlers
Set of standard read handlers. The property is an array where the key is the name of the format and the value the classname that implements the read handler. |
public static array(string=>string) |
$writeHandlers
Set of standard write handlers. The property is an array where the key is the name of the format and the value the classname that implements the write handler. |
public static void |
addDiffReader(
$type
, $readerClass
)
Adds the difference read handler class $readerClass to the manager for $type |
public static void |
addDiffWriter(
$type
, $writerClass
)
Adds the difference write handler class $writerClass to the manager for $type |
public static void |
addReader(
$type
, $readerClass
)
Adds the read handler class $readerClass to the manager for $type |
public static void |
addWriter(
$type
, $writerClass
)
Adds the write handler class $writerClass to the manager for $type |
public static string |
getDiffReaderByFormat(
$format
)
Returns the class name of the differences read handler for format $format. |
public static string |
getDiffWriterByFormat(
$format
)
Returns the class name of the differences write handler for format $format. |
public static string |
getReaderByFormat(
$format
)
Returns the class name of the read handler for format $format. |
public static array |
getSupportedDiffFormats(
)
Returns list of schema types supported by all known difference handlers. |
public static array |
getSupportedFormats(
)
Returns list of schema types supported by all known handlers. |
public static string |
getWriterByFormat(
$format
)
Returns the class name of the write handler for format $format. |
Adds the difference read handler class $readerClass to the manager for $type
Name | Type | Description |
---|---|---|
$type |
string | |
$readerClass |
string |
Type | Description |
---|---|
ezcDbSchemaInvalidReaderClassException |
if the $readerClass doesn't exist or doesn't extend the abstract class ezcDbSchemaDiffReader. |
Adds the difference write handler class $writerClass to the manager for $type
Name | Type | Description |
---|---|---|
$type |
string | |
$writerClass |
string |
Type | Description |
---|---|
ezcDbSchemaInvalidWriterClassException |
if the $writerClass doesn't exist or doesn't extend the abstract class ezcDbSchemaDiffWriter. |
Adds the read handler class $readerClass to the manager for $type
Name | Type | Description |
---|---|---|
$type |
string | |
$readerClass |
string |
Type | Description |
---|---|
ezcDbSchemaInvalidReaderClassException |
if the $readerClass doesn't exist or doesn't extend the abstract class ezcDbSchemaReader. |
Adds the write handler class $writerClass to the manager for $type
Name | Type | Description |
---|---|---|
$type |
string | |
$writerClass |
string |
Type | Description |
---|---|
ezcDbSchemaInvalidWriterClassException |
if the $writerClass doesn't exist or doesn't extend the abstract class ezcDbSchemaWriter. |
Returns the class name of the differences read handler for format $format.
Name | Type | Description |
---|---|---|
$format |
string |
Returns the class name of the differences write handler for format $format.
Name | Type | Description |
---|---|---|
$format |
string |
Returns the class name of the read handler for format $format.
Name | Type | Description |
---|---|---|
$format |
string |
Returns list of schema types supported by all known difference handlers.
Goes through the list of known difference handlers and gathers information of which schema types do they support.
Returns list of schema types supported by all known handlers.
Goes through the list of known handlers and gathers information of which schema types do they support.
Returns the class name of the write handler for format $format.
Name | Type | Description |
---|---|---|
$format |
string |