You are here

class Inflector in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/doctrine/inflector/lib/Doctrine/Common/Inflector/Inflector.php \Doctrine\Common\Inflector\Inflector
  2. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Util/Inflector.php \Doctrine\Common\Util\Inflector
Same name and namespace in other branches
  1. 8 vendor/doctrine/common/lib/Doctrine/Common/Util/Inflector.php \Doctrine\Common\Util\Inflector

Doctrine inflector has static methods for inflecting text.

Kept for backwards compatibility reasons, was moved to its own component.

Hierarchy

Expanded class hierarchy of Inflector

1 string reference to 'Inflector'
Inflector::reset in vendor/doctrine/inflector/lib/Doctrine/Common/Inflector/Inflector.php
Clears Inflectors inflected value caches, and resets the inflection rules to the initial values.

File

vendor/doctrine/common/lib/Doctrine/Common/Util/Inflector.php, line 29

Namespace

Doctrine\Common\Util
View source
class Inflector extends BaseInflector {

}

Members

Namesort descending Modifiers Type Description Overrides
Inflector::$cache private static property Method cache array.
Inflector::$initialState private static property The initial state of Inflector so reset() works.
Inflector::$plural private static property Plural inflector rules.
Inflector::$singular private static property Singular inflector rules.
Inflector::$uninflected private static property Words that should not be inflected.
Inflector::camelize public static function Camelizes a word. This uses the classify() method and turns the first character to lowercase.
Inflector::classify public static function Converts a word into the format for a Doctrine class name. Converts 'table_name' to 'TableName'.
Inflector::pluralize public static function Returns a word in plural form.
Inflector::reset public static function Clears Inflectors inflected value caches, and resets the inflection rules to the initial values.
Inflector::rules public static function Adds custom inflection $rules, of either 'plural' or 'singular' $type.
Inflector::singularize public static function Returns a word in singular form.
Inflector::tableize public static function Converts a word into the format for a Doctrine table name. Converts 'ModelName' to 'model_name'.