lithium\util\Inflector::tableize()
Takes a CamelCased class name and returns corresponding under_scored table name.
Parameters
-
string
$classNameCamelCased class name (i.e.
'Post').
Returns
stringUnder_scored and plural table name (i.e. 'posts').
Source
public static function tableize($className) {
return static::pluralize(static::underscore($className));
}