Provides methods that allow other classes access to conventions based inflections.
_camelize( string $name )
Creates a camelized version of $name
$name
_entityName( string $name )
Creates the proper entity name (singular) for the specified name
$name
_fixtureName( string $name )
Creates a fixture name
$name
_modelKey( string $name )
Creates the proper underscored model key for associations
If the input contains a dot, assume that the right side is the real table name.
$name
_modelNameFromKey( string $key )
Creates the proper model name from a foreign key
$key
_pluginNamespace( string $pluginName )
Return plugin's namespace
$pluginName
_pluginPath( string $pluginName )
Find the correct path for a plugin. Scans $pluginPaths for the plugin you want.
$pluginName
_pluralHumanName( string $name )
Creates the plural human name used in views
$name
_singularHumanName( string $name )
Creates the singular human name used in views
$name
_singularName( string $name )
Creates the singular name for use in views.
$name
_variableName( string $name )
Creates the plural variable name for views
$name
© 2005–2017 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/3.4/class-Cake.Core.ConventionsTrait.html