lithium\util\Inflector::classify()
Takes a under_scored table name and returns corresponding class name.
Parameters
-
string
$tableName
Under_scored and plural table name (i.e.
'posts'
).
Returns
stringCamelCased class name (i.e. 'Post'
).
Source
public static function classify($tableName) {
return static::camelize(static::singularize($tableName));
}