lithium\util\Inflector::classify()

public static method

Takes a under_scored table name and returns corresponding class name.

Parameters

  • string $tableName

    Under_scored and plural table name (i.e. 'posts').

Returns

string

CamelCased class name (i.e. 'Post').

Source

	public static function classify($tableName) {
		return static::camelize(static::singularize($tableName));
	}