Propel API
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)

{@inheritdoc}

getConfiguredBehavior($name)

{@inheritdoc}

Details

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

Parameters

PropelPlatformInterface $platform

at line 87
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 102
public Pluralizer getConfiguredPluralizer()

Gets a configured Pluralizer class.

Return Value

Pluralizer

at line 117
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 141
public mixed getBuildProperty(string $name)

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

Parameters

string $name

Return Value

mixed

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

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

Parameters

string $name
mixed $value

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

{@inheritdoc}

Parameters

PDO $con
$database

at line 174
public getConfiguredBehavior($name)

{@inheritdoc}

Parameters

$name