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 6.0 API

  • Project:
    • CakePHP
      • CakePHP
      • Authentication
      • Authorization
      • Chronos
      • Elastic Search
      • Queue
  • Version:
    • 6.0
      • 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
    • AttributeResolver
    • Cache
    • Collection
    • Command
    • Console
    • Container
    • Controller
    • Core
    • Database
    • Datasource
    • Error
    • Event
    • Form
    • Http
    • I18n
    • Lock
    • Log
    • Mailer
    • Network
    • ORM
    • Routing
    • TestSuite
    • Utility
    • Validation
    • View

Namespace Validation

Interfaces

  • RuleProviderResolverInterface

    Interface for rule providers that can resolve a validation rule's method to an alternate object and method name.

    Rule providers implementing this interface allow validators to invoke a rule's method on another object, e.g. ORM tables resolving rule methods provided by behaviors. Resolving the provider and method before the rule's callable is created ensures the method's signature can be correctly reflected for passing the validation context.

  • ValidatorAwareInterface

    Provides methods for managing multiple validators.

Classes

  • Validation

    Validation Class. Used for validation of model data

    Offers different validation methods.

  • ValidationRule

    ValidationRule object. Represents a validation method, error message and rules for applying such method to a field.

  • ValidationSet

    ValidationSet object. Holds all validation rules for a field and exposes methods to dynamically add or remove validation rules

  • Validator

    Validator object encapsulates all methods related to data validations for a model It also provides an API to dynamically change validation rules for each model field.

    Implements ArrayAccess to easily modify rules in the set

Traits

  • ValidatorAwareTrait

    A trait that provides methods for building and interacting with Validators.

    This trait is useful when building ORM like features where the implementing class wants to build and customize a variety of validator instances.

    Classes using this trait can declare these constants:

    • DEFAULT_VALIDATOR - Override the interface default validator name if required.
    • VALIDATOR_PROVIDER_NAME - The provider name the including class is assigned in validators.
    • BUILD_VALIDATOR_EVENT - The name of the event to be triggered when validators are built.

    If the including class also implements events the Model.buildValidator event will be triggered when validators are created.

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