CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Reporting Security Issues
    • Privacy Policy
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Get Involved
    • Issues (Github)
    • Bakery
    • Featured Resources
    • Training
    • Meetups
    • My CakePHP
    • CakeFest
    • Newsletter
    • Linkedin
    • YouTube
    • Facebook
    • Twitter
    • Mastodon
    • Help & Support
    • Forum
    • Stack Overflow
    • IRC
    • Slack
    • Paid Support
CakePHP

C CakePHP 3.8 Red Velvet API

  • Project:
    • CakePHP
      • CakePHP
      • Authentication
      • Authorization
      • Chronos
      • Elastic Search
      • Queue
  • Version:
    • 3.8
      • 6.0
      • 5.4
      • 5.3
      • 5.2
      • 5.1
      • 5.0
      • 4.6
      • 4.5
      • 4.4
      • 4.3
      • 4.2
      • 4.1
      • 4.0
      • 3.10
      • 3.9
      • 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

  • Global
  • Cake
    • Auth
    • Cache
    • Collection
    • Command
    • Console
    • Controller
    • Core
    • Database
    • Datasource
    • Error
    • Event
    • Filesystem
    • Form
    • Http
    • I18n
    • Log
    • Mailer
    • Network
    • ORM
    • Routing
    • Shell
    • TestSuite
    • Utility
    • Validation
    • View

Namespace Datasource

Namespaces

  • Cake\Datasource\Exception

Interfaces

  • ConnectionInterface

    This interface defines the methods you can depend on in a connection.

  • EntityInterface

    Describes the methods that any class representing a data storage should comply with.

    In 4.x the following methods will officially be added to the interface:

  • FixtureInterface

    Defines the interface that testing fixtures use.

  • InvalidPropertyInterface

    Describes the methods that any class representing a data storage should comply with.

  • PaginatorInterface

    This interface describes the methods for paginator instance.

  • QueryInterface

    The basis for every query object

  • RepositoryInterface

    Describes the methods that any class representing a data storage should comply with.

  • ResultSetInterface

    Describes how a collection of datasource results should look like

  • SchemaInterface

    An interface used by TableSchema objects.

  • TableSchemaInterface

    Defines the interface for getting the schema.

Classes

  • ConnectionManager

    Manages and loads instances of Connection

    Provides an interface to loading and creating connection objects. Acts as a registry for the connections defined in an application.

    Provides an interface for loading and enumerating connections defined in config/app.php

  • ConnectionRegistry

    A registry object for connection instances.

  • FactoryLocator

    Class FactoryLocator

  • Paginator

    This class is used to handle automatic model data pagination.

  • QueryCacher

    Handles caching queries and loading results from the cache.

    Used by Cake\Datasource\QueryTrait internally.

  • ResultSetDecorator

    Generic ResultSet decorator. This will make any traversable object appear to be a database result

  • RuleInvoker

    Contains logic for invoking an application rule.

    Combined with Cake\Datasource\RuleChecker as an implementation detail to de-duplicate rule decoration and provide cleaner separation of duties.

  • RulesChecker

    Contains logic for storing and checking rules on entities

    RulesCheckers are used by Table classes to ensure that the current entity state satisfies the application logic and business rules.

    RulesCheckers afford different rules to be applied in the create and update scenario.

    Adding rules

    Rules must be callable objects that return true/false depending on whether or not the rule has been satisfied. You can use RulesChecker::add(), RulesChecker::addCreate(), RulesChecker::addUpdate() and RulesChecker::addDelete to add rules to a checker.

    Running checks

    Generally a Table object will invoke the rules objects, but you can manually invoke the checks by calling RulesChecker::checkCreate(), RulesChecker::checkUpdate() or RulesChecker::checkDelete().

Traits

  • ModelAwareTrait

    Provides functionality for loading table classes and other repositories onto properties of the host object.

    Example users of this trait are Cake\Controller\Controller and Cake\Console\Shell.

  • RulesAwareTrait

    A trait that allows a class to build and apply application. rules.

    If the implementing class also implements EventAwareTrait, then events will be emitted when rules are checked.

    The implementing class is expected to define the RULES_CLASS constant if they need to customize which class is used for rules objects.

OpenHub
Pingping
Linode
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Reporting Security Issues
  • Privacy Policy
  • Logos & Trademarks
  • Community
  • Get Involved
  • Issues (Github)
  • Bakery
  • Featured Resources
  • Training
  • Meetups
  • My CakePHP
  • CakeFest
  • Newsletter
  • Linkedin
  • YouTube
  • Facebook
  • Twitter
  • Mastodon
  • Help & Support
  • Forum
  • Stack Overflow
  • IRC
  • Slack
  • Paid Support

Generated using CakePHP API Docs