Inflector
public class Inflector
www.doctrine-project.org
Method Summary | |
---|---|
static string | camelize(string word) Camelize a word. |
static string | classify(string word) Convert a word in to the format for a Doctrine class name. |
static string | tableize(string word) Convert word in to the format for a Doctrine table name. |
public static string camelize(string word)
Camelize a word. This uses the classify() method and turns the first character to lowercase
public static string classify(string word)
Convert a word in to the format for a Doctrine class name. Converts 'table_name' to 'TableName'
public static string tableize(string word)
Convert word in to the format for a Doctrine table name. Converts 'ModelName' to 'model_name'
Doctrine inflector has static methods for inflecting text
The methods in these classes are from several different sources collected across several different php projects and several different authors. The original author names and emails are not known