Class

ConstraintNameGenerator

class ConstraintNameGenerator implements NameGenerator

A NameGenerator implementation for table-specific constraints.

Conforms to the maximum column name length for the type of database in use.

Constants

DEBUG

Conditional compilation flag.

Methods

string generateName(string[] $inputs)

First element of inputs should be of type {@link Database}, second should be a table name, third is the type identifier (spared if trimming is necessary due to database type length constraints), and the fourth is a Integer indicating the number of this constraint.

Details

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

First element of inputs should be of type {@link Database}, second should be a table name, third is the type identifier (spared if trimming is necessary due to database type length constraints), and the fourth is a Integer indicating the number of this constraint.

Parameters

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

Return Value

string The generated name.

Exceptions

EngineException

See also

NameGenerator