CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Team
    • Issues (Github)
    • YouTube Channel
    • Get Involved
    • Bakery
    • Featured Resources
    • Newsletter
    • Certification
    • My CakePHP
    • CakeFest
    • Facebook
    • Twitter
    • Help & Support
    • Forum
    • Stack Overflow
    • IRC
    • Slack
    • Paid Support
CakePHP

C CakePHP 3.8 Red Velvet API

  • Overview
  • Tree
  • Deprecated
  • Version:
    • 3.8
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

Namespaces

  • Cake
    • Auth
      • Storage
    • Cache
      • Engine
    • Collection
      • Iterator
    • Command
    • Console
      • Exception
    • Controller
      • Component
      • Exception
    • Core
      • Configure
        • Engine
      • Exception
      • Retry
    • Database
      • Driver
      • Exception
      • Expression
      • Schema
      • Statement
      • Type
    • Datasource
      • Exception
    • Error
      • Middleware
    • Event
      • Decorator
    • Filesystem
    • Form
    • Http
      • Client
        • Adapter
        • Auth
      • Cookie
      • Exception
      • Middleware
      • Session
    • I18n
      • Formatter
      • Middleware
      • Parser
    • Log
      • Engine
    • Mailer
      • Exception
      • Transport
    • Network
      • Exception
    • ORM
      • Association
      • Behavior
        • Translate
      • Exception
      • Locator
      • Rule
    • Routing
      • Exception
      • Filter
      • Middleware
      • Route
    • Shell
      • Helper
      • Task
    • TestSuite
      • Fixture
      • Stub
    • Utility
      • Exception
    • Validation
    • View
      • Exception
      • Form
      • Helper
      • Widget
  • None

Classes

  • App
  • BasePlugin
  • ClassLoader
  • Configure
  • ObjectRegistry
  • Plugin
  • PluginCollection

Interfaces

  • ConsoleApplicationInterface
  • HttpApplicationInterface
  • PluginApplicationInterface
  • PluginInterface

Traits

  • ConventionsTrait
  • InstanceConfigTrait
  • StaticConfigTrait

Trait ConventionsTrait

Provides methods that allow other classes access to conventions based inflections.

Direct Users

  • Cake\ORM\Association

Indirect Users

  • Cake\ORM\Association\BelongsTo
  • Cake\ORM\Association\BelongsToMany
  • Cake\ORM\Association\HasMany
  • Cake\ORM\Association\HasOne
Namespace: Cake\Core
Location: Core/ConventionsTrait.php

Method Summary

  • _camelize() protected
    Creates a camelized version of $name
  • _entityName() protected
    Creates the proper entity name (singular) for the specified name
  • _fixtureName() protected
    Creates a fixture name
  • _modelKey() protected
    Creates the proper underscored model key for associations
  • _modelNameFromKey() protected
    Creates the proper model name from a foreign key
  • _pluginNamespace() protected
    Return plugin's namespace
  • _pluginPath() protected
    Find the correct path for a plugin. Scans $pluginPaths for the plugin you want.
  • _pluralHumanName() protected
    Creates the plural human name used in views
  • _singularHumanName() protected
    Creates the singular human name used in views
  • _singularName() protected
    Creates the singular name for use in views.
  • _variableName() protected
    Creates the plural variable name for views

Method Detail

_camelize() protected ¶

_camelize( string $name )

Creates a camelized version of $name

Parameters
string $name
name
Returns
string
Camelized name

_entityName() protected ¶

_entityName( string $name )

Creates the proper entity name (singular) for the specified name

Parameters
string $name
Name
Returns
string
Camelized and plural model name

_fixtureName() protected ¶

_fixtureName( string $name )

Creates a fixture name

Parameters
string $name
Model class name
Returns
string
Singular model key

_modelKey() protected ¶

_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.

Parameters
string $name
Model class name
Returns
string
Singular model key

_modelNameFromKey() protected ¶

_modelNameFromKey( string $key )

Creates the proper model name from a foreign key

Parameters
string $key
Foreign key
Returns
string
Model name

_pluginNamespace() protected ¶

_pluginNamespace( string $pluginName )

Return plugin's namespace

Parameters
string $pluginName
Plugin name
Returns
string
Plugin's namespace

_pluginPath() protected ¶

_pluginPath( string $pluginName )

Find the correct path for a plugin. Scans $pluginPaths for the plugin you want.

Parameters
string $pluginName
Name of the plugin you want ie. DebugKit
Returns
string
path path to the correct plugin.

_pluralHumanName() protected ¶

_pluralHumanName( string $name )

Creates the plural human name used in views

Parameters
string $name
Controller name
Returns
string
Plural human name

_singularHumanName() protected ¶

_singularHumanName( string $name )

Creates the singular human name used in views

Parameters
string $name
Controller name
Returns
string
Singular human name

_singularName() protected ¶

_singularName( string $name )

Creates the singular name for use in views.

Parameters
string $name
Name to use
Returns
string
Variable name

_variableName() protected ¶

_variableName( string $name )

Creates the plural variable name for views

Parameters
string $name
Name to use
Returns
string
Plural name for views
Follow @CakePHP
#IRC
OpenHub
Rackspace
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Logos & Trademarks
  • Community
  • Team
  • Issues (Github)
  • YouTube Channel
  • Get Involved
  • Bakery
  • Featured Resources
  • Newsletter
  • Certification
  • My CakePHP
  • CakeFest
  • Facebook
  • Twitter
  • Help & Support
  • Forum
  • Stack Overflow
  • IRC
  • Slack
  • Paid Support

Generated using CakePHP API Docs