class GeneratorConfig implements GeneratorConfigInterface
A class that holds build properties and provide a class loading mechanism for the generator.
Methods
__construct(mixed $props = null)
Construct a new GeneratorConfig. |
||
array |
getBuildProperties()
Gets the build properties. |
|
setBuildProperties(mixed $props)
Parses the passed-in properties, renaming and saving eligible properties in this object. |
||
mixed |
getBuildProperty(string $name)
Gets a specific propel (renamed) property from the build. |
|
setBuildProperty(string $name, mixed $value)
Sets a specific propel (renamed) property from the build. |
||
string |
getClassname(string $propname)
Resolves and returns the class name based on the specified property value. |
|
string |
getBuilderClassname(string $type)
Resolves and returns the builder class name. |
|
Platform |
getConfiguredPlatform(PDO $con = null, $database = null)
Creates and configures a new Platform class. |
|
SchemaParser |
getConfiguredSchemaParser(PDO $con = null)
Creates and configures a new SchemaParser class for specified platform. |
|
DataModelBuilder |
getConfiguredBuilder(Table $table, $type, $cache = true)
Gets a configured data model builder class for specified table and based on type. |
|
Pluralizer |
getConfiguredPluralizer()
Gets a configured Pluralizer class. |
|
string |
getConfiguredBehavior(string $name)
Gets a configured behavior class |
|
setBuildConnections($buildConnections) | ||
getBuildConnections() | ||
getBuildConnection($databaseName = null) | ||
getBuildPDO($database) |
Details
at line 38
public
__construct(mixed $props = null)
Construct a new GeneratorConfig.
at line 47
public array
getBuildProperties()
Gets the build properties.
at line 60
public
setBuildProperties(mixed $props)
Parses the passed-in properties, renaming and saving eligible properties in this object.
Renames the propel.xxx properties to just xxx and renames any xxx.yyy properties
to xxxYyy as PHP doesn't like the xxx.yyy syntax.
at line 84
public mixed
getBuildProperty(string $name)
Gets a specific propel (renamed) property from the build.
at line 95
public
setBuildProperty(string $name, mixed $value)
Sets a specific propel (renamed) property from the build.
at line 107
public string
getClassname(string $propname)
Resolves and returns the class name based on the specified property value.
at line 142
public string
getBuilderClassname(string $type)
Resolves and returns the builder class name.
at line 156
public Platform
getConfiguredPlatform(PDO $con = null, $database = null)
Creates and configures a new Platform class.
at line 190
public SchemaParser
getConfiguredSchemaParser(PDO $con = null)
Creates and configures a new SchemaParser class for specified platform.
at line 211
public DataModelBuilder
getConfiguredBuilder(Table $table, $type, $cache = true)
Gets a configured data model builder class for specified table and based on type.
at line 225
public Pluralizer
getConfiguredPluralizer()
Gets a configured Pluralizer class.
at line 239
public string
getConfiguredBehavior(string $name)
Gets a configured behavior class