Propel API
Class

BaseSchemaParser

abstract class BaseSchemaParser implements SchemaParser

Base class for reverse engineering a database schema.

Methods

__construct(PDO $dbh = null)

setConnection(PDO $dbh)

Sets the database connection.

PDO getConnection()

Gets the database connection.

setMigrationTable(string $migrationTable)

Setter for the migrationTable property

string getMigrationTable()

Getter for the migrationTable property

array getWarnings()

Gets array of warning messages.

setGeneratorConfig(GeneratorConfigInterface $config)

Sets the GeneratorConfig to use in the parsing.

GeneratorConfig getGeneratorConfig()

Gets the GeneratorConfig option.

mixed getBuildProperty(string $name)

Gets a specific propel (renamed) property from the build.

setPlatform($platform)

getPlatform()

Details

at line 69
public __construct(PDO $dbh = null)

Parameters

PDO $dbh Optional database connection

at line 79
public setConnection(PDO $dbh)

Sets the database connection.

Parameters

PDO $dbh

at line 88
public PDO getConnection()

Gets the database connection.

Return Value

PDO

at line 98
public setMigrationTable(string $migrationTable)

Setter for the migrationTable property

Parameters

string $migrationTable

at line 108
public string getMigrationTable()

Getter for the migrationTable property

Return Value

string

at line 128
public array getWarnings()

Gets array of warning messages.

Return Value

array string[]

at line 138
public setGeneratorConfig(GeneratorConfigInterface $config)

Sets the GeneratorConfig to use in the parsing.

Parameters

GeneratorConfigInterface $config

at line 148
public GeneratorConfig getGeneratorConfig()

Gets the GeneratorConfig option.

Return Value

GeneratorConfig

at line 159
public mixed getBuildProperty(string $name)

Gets a specific propel (renamed) property from the build.

Parameters

string $name

Return Value

mixed

at line 224
public setPlatform($platform)

Parameters

$platform

at line 229
public getPlatform()