validators\IpValidator $ipv6

$ipv6 public property Whether the validating value can be an IPv6 address. Defaults to true. public boolean $ipv6 = true

validators\IpValidator $ipv4NotAllowed

$ipv4NotAllowed public property User-defined error message is used when validation fails due to the disabled IPv4 validation. You may use the following placeholders in the message: {attribute}: the label of the attribute being validated {value}: the value of the attribute being validated See also $ipv4. public string $ipv4NotAllowed = null

validators\IpValidator $ipv6NotAllowed

$ipv6NotAllowed public property User-defined error message is used when validation fails due to the disabled IPv6 validation. You may use the following placeholders in the message: {attribute}: the label of the attribute being validated {value}: the value of the attribute being validated See also $ipv6. public string $ipv6NotAllowed = null

validators\IpValidator $expandIPv6

$expandIPv6 public property Whether to expand an IPv6 address to the full notation format. Defaults to false. public boolean $expandIPv6 = false

validators\IpValidator $hasSubnet

$hasSubnet public property User-defined error message is used when validation fails due to $subnet is false, but CIDR prefix is present. You may use the following placeholders in the message: {attribute}: the label of the attribute being validated {value}: the value of the attribute being validated See also $subnet. public string $hasSubnet = null

validators\IpValidator $ipv4

$ipv4 public property Whether the validating value can be an IPv4 address. Defaults to true. public boolean $ipv4 = true

validators\InlineValidator validateAttribute()

validateAttribute() public method Validates a single attribute. Child classes must implement this method to provide the actual validation logic. public void validateAttribute ( $model, $attribute )$model yii\base\Model The data model to be validated $attribute string The name of the attribute to be validated.

validators\InlineValidator clientValidateAttribute()

clientValidateAttribute() public method Returns the JavaScript needed for performing client-side validation. You may override this method to return the JavaScript validation code if the validator can support client-side validation. The following JavaScript variables are predefined and can be used in the validation code: attribute: an object describing the the attribute being validated. value: the value being validated. messages: an array used to hold the validation error messages for the

validators\InlineValidator $params

$params public property Additional parameters that are passed to the validation method public mixed $params = null

validators\InlineValidator $method

$method public property An anonymous function or the name of a model class method that will be called to perform the actual validation. The signature of the method should be like the following, where $attribute is the name of the attribute to be validated, and $params contains the value of $params that you specify when declaring the inline validation rule: function foo($attribute, $params) public string|Closure $method = null