Propel API
Class

QuickGeneratorConfig

class QuickGeneratorConfig implements GeneratorConfigInterface

Methods

__construct()

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 45
public __construct()

at line 84
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 99
public Pluralizer getConfiguredPluralizer()

Gets a configured Pluralizer class.

Return Value

Pluralizer

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

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

Parameters

string $name

Return Value

mixed

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

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

Parameters

string $name
mixed $value

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

{@inheritdoc}

Parameters

PDO $con
$database

at line 165
public getConfiguredBehavior($name)

{@inheritdoc}

Parameters

$name