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 CONVMETHODXXX 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 #CONVMETHODUNDERSCORE} 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 CONVMETHODXXX 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 #CONVMETHODUNDERSCORE} 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

string generateName(string[] $inputs)

Given a list of String objects, implements an algorithm which produces a name.

Details

at line 73
public string generateName(string[] $inputs)

Given a list of String objects, implements an algorithm which produces a name.

Parameters

string[] $inputs Inputs used to generate a name.

Return Value

string The generated name.

Exceptions

EngineException