PHP Class Bluz\Validator\Rule\Domain

Inheritance: extends AbstractRule
Show file Open project: bluzphp/framework Class Usage Examples

Protected Properties

Property Type Description
$checkDns check DNS record flag
$template error template

Public Methods

Method Description
__construct ( boolean $checkDns = false ) Setup validation rule
validate ( string $input ) : boolean Check input data

Method Details

__construct() public method

Setup validation rule
public __construct ( boolean $checkDns = false )
$checkDns boolean

validate() public method

Check input data
public validate ( string $input ) : boolean
$input string
return boolean

Property Details

$checkDns protected property

check DNS record flag
protected $checkDns

$template protected property

error template
protected $template