Propel 2 API
Class

Propel\Generator\Config\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 ('ddl', 'sql', etc.).

PluralizerInterface getConfiguredPluralizer()

Returns a configured Pluralizer class.

setBuildProperties(array|Traversable $props)

Parses the passed-in properties, renaming and saving eligible properties in this object.

mixed getBuildProperty(string $name)

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

setBuildProperty(string $name, mixed $value)

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

PlatformInterface getConfiguredPlatform(ConnectionInterface $con = null, string $database = null)

Creates and configures a new Platform class.

Details

at line 37
public __construct()

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

Gets a configured data model builder class for specified table and based on type ('ddl', 'sql', etc.).

Parameters

Table $table
string $type

Return Value

DataModelBuilder

at line 97
public PluralizerInterface getConfiguredPluralizer()

Returns a configured Pluralizer class.

Return Value

PluralizerInterface

at line 111
public setBuildProperties(array|Traversable $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

array|Traversable $props

at line 134
public mixed getBuildProperty(string $name)

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

Parameters

string $name

Return Value

mixed

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

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

Parameters

string $name
mixed $value

at line 153
public PlatformInterface getConfiguredPlatform(ConnectionInterface $con = null, string $database = null)

Creates and configures a new Platform class.

Parameters

ConnectionInterface $con
string $database

Return Value

PlatformInterface