class Inflector in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/doctrine/inflector/lib/Doctrine/Common/Inflector/Inflector.php \Doctrine\Common\Inflector\Inflector
- 8.0 vendor/doctrine/common/lib/Doctrine/Common/Util/Inflector.php \Doctrine\Common\Util\Inflector
Same name and namespace in other branches
- 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\UtilView source
class Inflector extends BaseInflector {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Inflector:: |
private static | property | Method cache array. | |
Inflector:: |
private static | property | The initial state of Inflector so reset() works. | |
Inflector:: |
private static | property | Plural inflector rules. | |
Inflector:: |
private static | property | Singular inflector rules. | |
Inflector:: |
private static | property | Words that should not be inflected. | |
Inflector:: |
public static | function | Camelizes a word. This uses the classify() method and turns the first character to lowercase. | |
Inflector:: |
public static | function | Converts a word into the format for a Doctrine class name. Converts 'table_name' to 'TableName'. | |
Inflector:: |
public static | function | Returns a word in plural form. | |
Inflector:: |
public static | function | Clears Inflectors inflected value caches, and resets the inflection rules to the initial values. | |
Inflector:: |
public static | function | Adds custom inflection $rules, of either 'plural' or 'singular' $type. | |
Inflector:: |
public static | function | Returns a word in singular form. | |
Inflector:: |
public static | function | Converts a word into the format for a Doctrine table name. Converts 'ModelName' to 'model_name'. |