public static function Inflector::classify

Convert a word in to the format for a Doctrine class name. Converts 'table_name' to 'TableName'

Parameters

string $word Word to classify:

Return value

string $word Classified word

1 call to Inflector::classify()
Inflector::camelize in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Util/Inflector.php
Camelize a word. This uses the classify() method and turns the first character to lowercase

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Util/Inflector.php, line 57

Class

Inflector
Doctrine inflector has static methods for inflecting text

Namespace

Doctrine\Common\Util

Code

public static function classify($word) {
  return str_replace(" ", "", ucwords(strtr($word, "_-", "  ")));
}