Skip to content

Commit 7c8724e

Browse files
* 2022-02-04 2.4
1 parent 32601e5 commit 7c8724e

File tree

4 files changed

+263
-198
lines changed

4 files changed

+263
-198
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,8 @@ $validation->convert('htmldecode')->set(....);
660660

661661

662662
## Version list
663+
* 2022-03-11 2.4
664+
* **[update]** added condition alphanumunder (alphanumeric or underscore).
663665
* 2022-02-05 2.3
664666
* **[update]** update dependency to MessageContainer 2.3. Now MessageContainer is injected as singleton.
665667
* **[update]** ValidationOne methods now has type hinting (return values).

lib/ValidationItem.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @see https://github.com/EFTEC/ValidationOne
1616
*/
1717
class ValidationItem {
18-
/** @var string=['alpha','alphanum','between','betweenlen','contain','doc','domain','email','eq','ext','false','gt','gte','image','lt','lte','maxlen','maxsize','minlen','minsize','ne','notcontain','notnull','null','regexp','req','text','true','url','fn.*'][$i] */
18+
/** @var string=['alpha','alphanum','alphanumunder','between','betweenlen','contain','doc','domain','email','eq','ext','false','gt','gte','image','lt','lte','maxlen','maxsize','minlen','minsize','ne','notcontain','notnull','null','regexp','req','text','true','url','fn.*'][$i] */
1919
public $type;
2020
/** @var mixed value used for validation. It could be an array (between for example uses an array) */
2121
public $value;
@@ -27,7 +27,7 @@ class ValidationItem {
2727
/**
2828
* Tris constructor.
2929
*
30-
* @param string $type =['alpha','alphanum','between','betweenlen','contain','doc','domain','email','eq','ext','false','gt','gte','image','lt','lte','maxlen','maxsize','minlen','minsize','ne','notcontain','notnull','null','regexp','req','text','true','url','fn.*'][$i]
30+
* @param string $type =['alpha','alphanum','alphanumunder','between','betweenlen','contain','doc','domain','email','eq','ext','false','gt','gte','image','lt','lte','maxlen','maxsize','minlen','minsize','ne','notcontain','notnull','null','regexp','req','text','true','url','fn.*'][$i]
3131
* @param string $msg It uses sprintf, so you could use %s and %3$s
3232
* @param mixed $value value used for validation. It could be an array (between for example uses an array)
3333
* @param string $level =['error','warning','info','success'][$i]

0 commit comments

Comments
 (0)