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, string $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 39
public
__construct(mixed $props = null)
Construct a new GeneratorConfig.
at line 51
public array
getBuildProperties()
Gets the build properties.
at line 64
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 89
public mixed
getBuildProperty(string $name)
Gets a specific propel (renamed) property from the build.
at line 100
public
setBuildProperty(string $name, mixed $value)
Sets a specific propel (renamed) property from the build.
at line 113
public string
getClassname(string $propname)
Resolves and returns the class name based on the specified property value.
at line 149
public string
getBuilderClassname(string $type)
Resolves and returns the builder class name.
at line 164
public Platform
getConfiguredPlatform(PDO $con = null, $database = null)
Creates and configures a new Platform class.
at line 200
public SchemaParser
getConfiguredSchemaParser(PDO $con = null)
Creates and configures a new SchemaParser class for specified platform.
at line 222
public DataModelBuilder
getConfiguredBuilder(Table $table, string $type, $cache = true)
Gets a configured data model builder class for specified table and based on type.
at line 236
public Pluralizer
getConfiguredPluralizer()
Gets a configured Pluralizer class.
at line 251
public string
getConfiguredBehavior(string $name)
Gets a configured behavior class
at line 264
public
setBuildConnections($buildConnections)
at line 269
public
getBuildConnections()
at line 305
public
getBuildConnection($databaseName = null)
at line 324
public
getBuildPDO($database)