Propel API
Interface

NameGenerator

interface NameGenerator

The generic interface to a name generation algorithm.

Constants

STD_SEPARATOR_CHAR

The character used by most implementations as the separator between name elements.

CONV_METHOD_UNDERSCORE

Traditional method for converting schema table and column names to PHP names.

The <code>CONV_METHOD_XXX</code> constants
define how names for columns and tables in the database schema
will be converted to PHP source names.

CONV_METHOD_CLEAN

Heavier method for converting schema table and column names to PHP names.

Similar to {@link #CONV_METHOD_UNDERSCORE} but
this one will pass only letters and numbers through and will
use as separator any character that is not a letter or a number
inside the string to be converted. The <code>CONV_METHOD_XXX</code>
constants define how names for columns and tales in the
database schema will be converted to PHP source names.

CONV_METHOD_PHPNAME

Similar to {@link #CONV_METHOD_UNDERSCORE} except nothing is converted to lowercase.

CONV_METHOD_NOCHANGE

Specifies no modification when converting from a schema column or table name to a PHP name.

Methods

The generateName(inputs $inputs)

Given a list of <code>String</code> objects, implements an algorithm which produces a name.

Details

at line 72
public The generateName(inputs $inputs)

Given a list of <code>String</code> objects, implements an algorithm which produces a name.

Parameters

inputs $inputs Inputs used to generate a name.

Return Value

The generated name.

Exceptions

EngineException