Provides methods that allow other classes access to conventions based inflections.
Creates a camelized version of $name
Creates the proper entity name (singular) for the specified name
Creates a fixture name
Creates the proper underscored model key for associations
Creates the proper model name from a foreign key
Return plugin's namespace
Find the correct path for a plugin. Scans $pluginPaths for the plugin you want.
Creates the plural human name used in views
Creates the singular human name used in views
Creates the singular name for use in views.
Creates the plural variable name for views
_camelize(string $name): string
Creates a camelized version of $name
string
$name name
string
_entityName(string $name): string
Creates the proper entity name (singular) for the specified name
string
$name Name
string
_fixtureName(string $name): string
Creates a fixture name
string
$name Model class name
string
_modelKey(string $name): string
Creates the proper underscored model key for associations
If the input contains a dot, assume that the right side is the real table name.
string
$name Model class name
string
_modelNameFromKey(string $key): string
Creates the proper model name from a foreign key
string
$key Foreign key
string
_pluginNamespace(string $pluginName): string
Return plugin's namespace
string
$pluginName Plugin name
string
_pluginPath(string $pluginName): string
Find the correct path for a plugin. Scans $pluginPaths for the plugin you want.
string
$pluginName Name of the plugin you want ie. DebugKit
string
_pluralHumanName(string $name): string
Creates the plural human name used in views
string
$name Controller name
string
_singularHumanName(string $name): string
Creates the singular human name used in views
string
$name Controller name
string
_singularName(string $name): string
Creates the singular name for use in views.
string
$name Name to use
string
_variableName(string $name): string
Creates the plural variable name for views
string
$name Name to use
string
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/trait-Cake.Core.ConventionsTrait.html