Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Constraint_words
PHP Class Constraint_words, silverstripe-zenvalidator
Inheritance:
extends
ZenValidatorConstraint
Afficher le fichier
Open project: sheadawson/silverstripe-zenvalidator
Protected Properties
Свойство
Type
Description
$type
type
$val1
integer
$val2
integer
Méthodes publiques
Méthode
Description
__construct
(
string
$type
,
integer
$val1
,
integer
$val2
= null )
applyParsley
( )
getDefaultMessage
( )
removeParsley
( )
validate
(
$value
)
Method Details
__construct()
public
méthode
public
__construct
(
string
$type
,
integer
$val1
,
integer
$val2
= null )
$type
string
type of validation
$val1
integer
number of words
$val2
integer
maximum number of words
applyParsley()
public
méthode
public
applyParsley
( )
getDefaultMessage()
public
méthode
public
getDefaultMessage
( )
removeParsley()
public
méthode
public
removeParsley
( )
validate()
public
méthode
public
validate
(
$value
)
Property Details
$type
protected_oe property
protected
type
$type
Résultat
type
$val1
protected_oe property
protected
int
$val1
Résultat
integer
$val2
protected_oe property
protected
int
$val2
Résultat
integer