Class

QuickGeneratorConfig

class QuickGeneratorConfig implements GeneratorConfigInterface

Methods

__construct(PropelPlatformInterface $platform = null)

DataModelBuilder getConfiguredBuilder(Table $table, string $type)

Gets a configured data model builder class for specified table and based on type.

Pluralizer getConfiguredPluralizer()

Gets a configured Pluralizer class.

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.

getConfiguredPlatform(PDO $con = null, $database = null)

Creates and configures a new Platform class.

getConfiguredBehavior($name)

Gets a configured behavior class

Details

at line 47
public __construct(PropelPlatformInterface $platform = null)

Parameters

PropelPlatformInterface $platform

at line 90
public DataModelBuilder getConfiguredBuilder(Table $table, string $type)

Gets a configured data model builder class for specified table and based on type.

Parameters

Table $table
string $type The type of builder ('ddl', 'sql', etc.)

Return Value

DataModelBuilder

at line 105
public Pluralizer getConfiguredPluralizer()

Gets a configured Pluralizer class.

Return Value

Pluralizer

at line 120
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.

Parameters

mixed $props Array or Iterator

at line 145
public mixed getBuildProperty(string $name)

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

Parameters

string $name

Return Value

mixed

at line 156
public setBuildProperty(string $name, mixed $value)

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

Parameters

string $name
mixed $value

at line 164
public getConfiguredPlatform(PDO $con = null, $database = null)

Creates and configures a new Platform class.

Parameters

PDO $con
$database

at line 178
public getConfiguredBehavior($name)

Gets a configured behavior class

Parameters

$name