PHP Class Bluz\Validator\Rule\Regexp

Inheritance: extends AbstractRule
Afficher le fichier Open project: bluzphp/framework Class Usage Examples

Protected Properties

Свойство Type Description
$regexp regular expression for check string
$template error template

Méthodes publiques

Méthode Description
__construct ( string $regexp ) Check string by regular expression
validate ( mixed $input ) : boolean Check string by regular expression

Method Details

__construct() public méthode

Check string by regular expression
public __construct ( string $regexp )
$regexp string

validate() public méthode

Check string by regular expression
public validate ( mixed $input ) : boolean
$input mixed
Résultat boolean

Property Details

$regexp protected_oe property

regular expression for check string
protected $regexp

$template protected_oe property

error template
protected $template