1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 01:04:16 +02:00

Update $sanitizer->testAll() to make hookable and add a couple more methods to it processwire/processwire-issues#85

This commit is contained in:
Ryan Cramer
2019-11-06 15:09:54 -05:00
parent 5887997698
commit 7aa83e3e5f

View File

@@ -93,9 +93,10 @@
* ProcessWire 3.x, Copyright 2019 by Ryan Cramer * ProcessWire 3.x, Copyright 2019 by Ryan Cramer
* https://processwire.com * https://processwire.com
* *
* @link http://processwire.com/api/variables/sanitizer/ Offical $sanitizer API variable Documentation * @link https://processwire.com/api/variables/sanitizer/ Offical $sanitizer API variable Documentation
* *
* @method array($value, $sanitizer = null, array $options = array()) * @method array($value, $sanitizer = null, array $options = array())
* @method array testAll($value)
* *
*/ */
@@ -3710,11 +3711,11 @@ class Sanitizer extends Wire {
* *
* #pw-group-other * #pw-group-other
* *
* @param $value * @param mixed $value
* @return array * @return array
* *
*/ */
public function testAll($value) { public function ___testAll($value) {
$sanitizers = array( $sanitizers = array(
'alpha', 'alpha',
'alphanumeric', 'alphanumeric',
@@ -3723,6 +3724,8 @@ class Sanitizer extends Wire {
'bit', 'bit',
'bool', 'bool',
'camelCase', 'camelCase',
'chars',
'checkbox',
'date', 'date',
'digits', 'digits',
'email', 'email',
@@ -3731,8 +3734,10 @@ class Sanitizer extends Wire {
'entities1', 'entities1',
'entitiesMarkdown', 'entitiesMarkdown',
'fieldName', 'fieldName',
'fieldSubfield',
'filename', 'filename',
'float', 'float',
'httpUrl',
'hyphenCase', 'hyphenCase',
'int', 'int',
'intArray', 'intArray',