Méthode |
Description |
|
_cache ( string $type, string $key, string $value = false ) : string |
Cache inflected values, and return if already available. |
|
camelize ( $lowerCaseAndUnderscoredWord ) : string |
Returns the given lower_case_and_underscored_word as a CamelCased word. |
|
classify ( string $tableName ) : string |
Returns Cake model class name ("Person" for the database table "people".) for given database table. |
|
getInstance ( ) : object |
Gets a reference to the Inflector object instance. |
|
humanize ( $lowerCaseAndUnderscoredWord ) : string |
Returns the given underscored_word_group as a Human Readable Word Group. |
|
pluralize ( string $word ) : string |
Return $word in plural form. |
|
rules ( string $type, array $rules, boolean $reset = false ) |
Adds custom inflection $rules, of either 'plural', 'singular' or 'transliteration' $type. |
|
singularize ( string $word ) : string |
Return $word in singular form. |
|
slug ( string $string, string $replacement = '_', array $map = [] ) : string |
Returns a string with all spaces converted to underscores (by default), accented
characters converted to non-accented characters, and non word characters removed. |
|
tableize ( string $className ) : string |
Returns corresponding table name for given model $className. ("people" for the model class "Person"). |
|
underscore ( string $camelCasedWord ) : string |
Returns the given camelCasedWord as an underscored_word. |
|
variable ( string $string ) : string |
Returns camelBacked version of an underscored string. |
|