|
|
@@ -543,7 +543,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::notBlank()
|
|
|
+ * @see \Cake\Validation\Validation::notBlank()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function notBlank($field, $message = null, $when = null)
|
|
|
@@ -561,7 +561,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::alphaNumeric()
|
|
|
+ * @see \Cake\Validation\Validation::alphaNumeric()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function alphaNumeric($field, $message = null, $when = null)
|
|
|
@@ -580,7 +580,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::alphaNumeric()
|
|
|
+ * @see \Cake\Validation\Validation::alphaNumeric()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function lengthBetween($field, array $range, $message = null, $when = null)
|
|
|
@@ -603,7 +603,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::cc()
|
|
|
+ * @see \Cake\Validation\Validation::cc()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function creditCard($field, $type = 'all', $message = null, $when = null)
|
|
|
@@ -622,7 +622,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::comparison()
|
|
|
+ * @see \Cake\Validation\Validation::comparison()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function greaterThan($field, $value, $message = null, $when = null)
|
|
|
@@ -641,7 +641,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::comparison()
|
|
|
+ * @see \Cake\Validation\Validation::comparison()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function greaterThanOrEqual($field, $value, $message = null, $when = null)
|
|
|
@@ -660,7 +660,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::comparison()
|
|
|
+ * @see \Cake\Validation\Validation::comparison()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function lessThan($field, $value, $message = null, $when = null)
|
|
|
@@ -679,7 +679,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::comparison()
|
|
|
+ * @see \Cake\Validation\Validation::comparison()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function lessThanOrEqual($field, $value, $message = null, $when = null)
|
|
|
@@ -698,7 +698,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::comparison()
|
|
|
+ * @see \Cake\Validation\Validation::comparison()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function equals($field, $value, $message = null, $when = null)
|
|
|
@@ -717,7 +717,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::comparison()
|
|
|
+ * @see \Cake\Validation\Validation::comparison()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function notEquals($field, $value, $message = null, $when = null)
|
|
|
@@ -738,7 +738,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::compareWith()
|
|
|
+ * @see \Cake\Validation\Validation::compareWith()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function sameAs($field, $secondField, $message = null, $when = null)
|
|
|
@@ -757,7 +757,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::containsNonAlphaNumeric()
|
|
|
+ * @see \Cake\Validation\Validation::containsNonAlphaNumeric()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function containsNonAlphaNumeric($field, $limit = 1, $message = null, $when = null)
|
|
|
@@ -776,7 +776,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::date()
|
|
|
+ * @see \Cake\Validation\Validation::date()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function date($field, $formats = ['ymd'], $message = null, $when = null)
|
|
|
@@ -795,7 +795,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::datetime()
|
|
|
+ * @see \Cake\Validation\Validation::datetime()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function dateTime($field, $formats = ['ymd'], $message = null, $when = null)
|
|
|
@@ -813,7 +813,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::time()
|
|
|
+ * @see \Cake\Validation\Validation::time()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function time($field, $message = null, $when = null)
|
|
|
@@ -831,7 +831,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::boolean()
|
|
|
+ * @see \Cake\Validation\Validation::boolean()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function boolean($field, $message = null, $when = null)
|
|
|
@@ -850,7 +850,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::decimal()
|
|
|
+ * @see \Cake\Validation\Validation::decimal()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function decimal($field, $places = null, $message = null, $when = null)
|
|
|
@@ -869,7 +869,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::email()
|
|
|
+ * @see \Cake\Validation\Validation::email()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function email($field, $checkMX = false, $message = null, $when = null)
|
|
|
@@ -889,7 +889,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::ip()
|
|
|
+ * @see \Cake\Validation\Validation::ip()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function ip($field, $message = null, $when = null)
|
|
|
@@ -907,7 +907,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::ip()
|
|
|
+ * @see \Cake\Validation\Validation::ip()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function ipv4($field, $message = null, $when = null)
|
|
|
@@ -925,7 +925,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::ip()
|
|
|
+ * @see \Cake\Validation\Validation::ip()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function ipv6($field, $message = null, $when = null)
|
|
|
@@ -944,7 +944,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::minLength()
|
|
|
+ * @see \Cake\Validation\Validation::minLength()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function minLength($field, $min, $message = null, $when = null)
|
|
|
@@ -963,7 +963,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::maxLength()
|
|
|
+ * @see \Cake\Validation\Validation::maxLength()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function maxLength($field, $max, $message = null, $when = null)
|
|
|
@@ -981,7 +981,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::numeric()
|
|
|
+ * @see \Cake\Validation\Validation::numeric()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function numeric($field, $message = null, $when = null)
|
|
|
@@ -999,7 +999,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::naturalNumber()
|
|
|
+ * @see \Cake\Validation\Validation::naturalNumber()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function naturalNumber($field, $message = null, $when = null)
|
|
|
@@ -1017,7 +1017,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::naturalNumber()
|
|
|
+ * @see \Cake\Validation\Validation::naturalNumber()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function nonNegativeInteger($field, $message = null, $when = null)
|
|
|
@@ -1036,7 +1036,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::range()
|
|
|
+ * @see \Cake\Validation\Validation::range()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function range($field, array $range, $message = null, $when = null)
|
|
|
@@ -1059,7 +1059,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::url()
|
|
|
+ * @see \Cake\Validation\Validation::url()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function url($field, $message = null, $when = null)
|
|
|
@@ -1079,7 +1079,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::url()
|
|
|
+ * @see \Cake\Validation\Validation::url()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function urlWithProtocol($field, $message = null, $when = null)
|
|
|
@@ -1098,7 +1098,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::inList()
|
|
|
+ * @see \Cake\Validation\Validation::inList()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function inList($field, array $list, $message = null, $when = null)
|
|
|
@@ -1116,7 +1116,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::uuid()
|
|
|
+ * @see \Cake\Validation\Validation::uuid()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function uuid($field, $message = null, $when = null)
|
|
|
@@ -1137,7 +1137,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::uploadedFile()
|
|
|
+ * @see \Cake\Validation\Validation::uploadedFile()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function uploadedFile($field, array $options, $message = null, $when = null)
|
|
|
@@ -1157,7 +1157,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::uuid()
|
|
|
+ * @see \Cake\Validation\Validation::uuid()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function latLong($field, $message = null, $when = null)
|
|
|
@@ -1175,7 +1175,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::latitude()
|
|
|
+ * @see \Cake\Validation\Validation::latitude()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function latitude($field, $message = null, $when = null)
|
|
|
@@ -1193,7 +1193,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::longitude()
|
|
|
+ * @see \Cake\Validation\Validation::longitude()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function longitude($field, $message = null, $when = null)
|
|
|
@@ -1211,7 +1211,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::ascii()
|
|
|
+ * @see \Cake\Validation\Validation::ascii()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function ascii($field, $message = null, $when = null)
|
|
|
@@ -1229,7 +1229,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::utf8()
|
|
|
+ * @see \Cake\Validation\Validation::utf8()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function utf8($field, $message = null, $when = null)
|
|
|
@@ -1249,7 +1249,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::utf8()
|
|
|
+ * @see \Cake\Validation\Validation::utf8()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function utf8Extended($field, $message = null, $when = null)
|
|
|
@@ -1267,7 +1267,7 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
|
|
|
* @param string $message The error message when the rule fails.
|
|
|
* @param string|callable $when Either 'create' or 'update' or a callable that returns
|
|
|
* true when the valdiation rule should be applied.
|
|
|
- * @see Cake\Validation\Validation::isInteger()
|
|
|
+ * @see \Cake\Validation\Validation::isInteger()
|
|
|
* @return $this
|
|
|
*/
|
|
|
public function integer($field, $message = null, $when = null)
|