mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Merge branch '1.2' into 1.3
This commit is contained in:
commit
c017f80e02
2 changed files with 5 additions and 4 deletions
|
@ -2574,8 +2574,8 @@ class Model extends Overloadable {
|
|||
* rule (in case of multiple validation for field) that was broken.
|
||||
*
|
||||
* @param string $field The name of the field to invalidate
|
||||
* @param mixed $value Name of validation rule that was not failed. If no validation key
|
||||
* is provided, defaults to true.
|
||||
* @param mixed $value Name of validation rule that was not failed, or validation message to
|
||||
* be returned. If no validation key is provided, defaults to true.
|
||||
* @access public
|
||||
*/
|
||||
function invalidate($field, $value = true) {
|
||||
|
|
|
@ -83,9 +83,10 @@ class Object {
|
|||
/**
|
||||
* Calls a controller's method from any location.
|
||||
*
|
||||
* @param string $url URL in the form of Cake URL ("/controller/method/parameter")
|
||||
* @param mixed $url String or array-based url.
|
||||
* @param array $extra if array includes the key "return" it sets the AutoRender to true.
|
||||
* @return mixed Success (true/false) or contents if 'return' is set in $extra
|
||||
* @return mixed Boolean true or false on success/failure, or contents
|
||||
* of rendered action if 'return' is set in $extra.
|
||||
* @access public
|
||||
*/
|
||||
function requestAction($url, $extra = array()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue