Skip to content

HTMLPurifier_ConfigSchema_ValidatorAtom

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.

  • Full name: \HTMLPurifier_ConfigSchema_ValidatorAtom

Properties

context

protected $context

obj

protected $obj

member

protected $member

contents

protected $contents

Methods

__construct

public __construct(mixed $context, mixed $obj, mixed $member): mixed

Parameters:

Parameter Type Description
$context mixed
$obj mixed
$member mixed

assertIsString

public assertIsString(): \HTMLPurifier_ConfigSchema_ValidatorAtom

assertIsBool

public assertIsBool(): \HTMLPurifier_ConfigSchema_ValidatorAtom

assertIsArray

public assertIsArray(): \HTMLPurifier_ConfigSchema_ValidatorAtom

assertNotNull

public assertNotNull(): \HTMLPurifier_ConfigSchema_ValidatorAtom

assertAlnum

public assertAlnum(): \HTMLPurifier_ConfigSchema_ValidatorAtom

assertNotEmpty

public assertNotEmpty(): \HTMLPurifier_ConfigSchema_ValidatorAtom

assertIsLookup

public assertIsLookup(): \HTMLPurifier_ConfigSchema_ValidatorAtom

error

protected error(string $msg): mixed

Parameters:

Parameter Type Description
$msg string

Throws:



Automatically generated on 2025-03-18