class PhpNameGenerator implements NameGenerator
A <code>NameGenerator</code> implementation for PHP-esque names.
Methods
The |
generateName(inputs $inputs)
<code>inputs</code> should consist of two (three) elements, the original name of the database element and the method for generating the name. |
Details
at line 47
public The
generateName(inputs $inputs)
<code>inputs</code> should consist of two (three) elements, the original name of the database element and the method for generating the name.
The optional third element may contain a prefix that will be
stript from name prior to generate the resulting name.
There are currently three methods:
<code>CONV_METHOD_NOCHANGE</code> - xml names are converted
directly to php names without modification.
<code>CONV_METHOD_UNDERSCORE</code> will capitalize the first
letter, remove underscores, and capitalize each letter before
an underscore. All other letters are lowercased. "phpname"
works the same as the <code>CONV_METHOD_PHPNAME</code> method
but will not lowercase any characters.