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 4.6 Strawberry API

  • Project:
    • CakePHP
      • CakePHP
      • Authentication
      • Authorization
      • Chronos
      • Elastic Search
      • Queue
  • Version:
    • 4.6
      • 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

Class RulesProvider

A Proxy class used to remove any extra arguments when the user intended to call a method in another class that is not aware of validation providers signature

Namespace: Cake\Validation

Property Summary

  • $_class protected
    object|string

    The class/object to proxy.

  • $_reflection protected
    ReflectionClass

    The proxied class' reflection

Method Summary

  • __call() public

    Proxies validation method calls to the Validation class.

  • __construct() public

    Constructor, sets the default class to use for calling methods

  • extension() public @method

Method Detail

__call() ¶ public

__call(string $method, array $arguments): bool

Proxies validation method calls to the Validation class.

The last argument (context) will be sliced off, if the validation method's last parameter is not named 'context'. This lets the various wrapped validation methods to not receive the validation context unless they need it.

Parameters
string $method

the validation method to call

array $arguments

the list of arguments to pass to the method

Returns
bool

__construct() ¶ public

__construct(object|string $class = Validation::class)

Constructor, sets the default class to use for calling methods

Parameters
object|string $class optional

the default class to proxy

Throws
ReflectionException

extension() ¶ public @method

extension(mixed $check, array $extensions, array $context = []): bool
Parameters
mixed $check
array $extensions
array $context optional
Returns
bool

Property Detail

$_class ¶ protected

The class/object to proxy.

Type
object|string

$_reflection ¶ protected

The proxied class' reflection

Type
ReflectionClass
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