Camelizes a string.
string $id A string to camelize:
string The camelized string
public static function camelize($id) {
return preg_replace_callback('/(^|_|\\.)+(.)/', function ($match) {
return ('.' === $match[1] ? '_' : '') . strtoupper($match[2]);
}, $id);
}