Fluent interface for validating the contents of member variables. This should be immutable. See HTMLPurifier_ConfigSchema_Validator for use-cases. We name this an 'atom' because it's ONLY for validations that are independent and usually scalar.
Methods | ||
---|---|---|
public
|
__construct($context, $obj, $member)
|
# |
public
|
assertIsString(): HTMLPurifier_ConfigSchema_ValidatorAtom
|
# |
public
|
assertIsBool(): HTMLPurifier_ConfigSchema_ValidatorAtom
|
# |
public
|
assertIsArray(): HTMLPurifier_ConfigSchema_ValidatorAtom
|
# |
public
|
assertNotNull(): HTMLPurifier_ConfigSchema_ValidatorAtom
|
# |
public
|
assertAlnum(): HTMLPurifier_ConfigSchema_ValidatorAtom
|
# |
public
|
assertNotEmpty(): HTMLPurifier_ConfigSchema_ValidatorAtom
|
# |
public
|
assertIsLookup(): HTMLPurifier_ConfigSchema_ValidatorAtom
|
# |
protected
|
error(string $msg)
|
# |
Properties | |||
---|---|---|---|
protected
|
|
$context
|
# |
protected
|
|
$obj
|
# |
protected
|
|
$member
|
# |
protected
|
|
$contents
|
# |