Connectivity Guide

l IsArrayValue Checks that the value is one of the values in the array supplied as the argument to the validator.
l IsEqual Checks that the value is equal to the value supplied as the argument to the validator, allowing for
standard type conversion rules.
l IsGreaterThan Checks that the value is strictly greater than a specified minimum value supplied as the argument
to the validator.
l IsIdentical Checks that the value is equal to the value supplied as the argument to the validator, and has the
same type.
l IsInRange Checks that the value is in a specified range between a minimum and maximum value. The minimum
and maximum values are specified as a 2-element array as the argument to the validator.
l IsInOptionsList—Checks against a list of options in the policy definition.
l IsNonEmpty Checks that the value is a non-empty string (length non-zero and not all whitespace), or a non-
empty array.
l IsNonNegative Checks that the value is numeric and non-negative.
l IsRegexMatch Checks that the value matches a regular expression supplied as the argument the validator. The
regular expression should be a Perl-compatible regular expression with delimiters. For example, the validator
argument /^a/i will match any value that starts with an a”, case-insensitively. "Regular Expressions" on page 422
for more information about regular expression syntax.
l IsValidBool Checks that the value is a standard Boolean truth value. Valid Boolean values are the integers 0 and
1 and the PHP values false and true.
l IsValidDateTime Checks that the value appears to be a valid time specification string according to the rules of
the PHP function strtotime(). Valid date/time syntax includes ISO 8601 standard times (YYYY-MM-DD
hh:mm:ss) with and without time zone specifications, as well as many other formats. The $value is expected to be
an integer specifying a UNIX time value (seconds since 1970-01-01 00:00:00 UTC).
$arg may be:
n null, to not perform any min/max check
n a scalar value, to use as the maximum allowable value
n an array containing "min" or "max" entries
Use the syntax:
array(
'min' => '1 day',
'max' => '90 days',
)
l IsValidEmail Checks that the value appears to be a valid RFC 822-compliant email address. When using the
IsValidEmail validator, the validator argument may be specified with a whitelist/blacklist of domain names. Use the
syntax:
array(
'allow' => array(
'corp-domain.com',
'other-domain.com',
),
'deny' => array(
'blocked-domain.com',
'other-blocked-domain.com',
),
)
n The keys whitelist’ and ‘blacklist’ may also be used for ‘allow and ‘deny’, respectively.
n An allow or deny’ value that is a string is converted to a single element array.
Dell Networking W-ClearPass Guest 6.2 | User Guide Reference | 415