extends |
HTMLPurifier_AttrDef |
---|
Validates a keyword against a list of valid values.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct(array $valid_values = [], bool $case_sensitive = false)
Parameters
Overriden by |
# | ||||||
public
|
validate(string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context): bool|string
Validates and cleans passed string according to a definition.
Validates and cleans passed string according to a definition. Parameters
Overriden byImplements |
# | ||||||
public
|
make(string $string): HTMLPurifier_AttrDef_Enum
Factory method for creating this class from a string.
Factory method for creating this class from a string. Parameters
ReturnsCreated AttrDef object corresponding to $string Overrides |
# |
Methods inherited from HTMLPurifier_AttrDef |
---|
parseCDATA(), mungeRgb(), expandCSSEscape() |
Properties | |||
---|---|---|---|
public
|
|
$valid_values = []
Lookup table of valid values.
Lookup table of valid values. |
# |
protected
|
|
$case_sensitive = false
Bool indicating whether or not enumeration is case sensitive.
Bool indicating whether or not enumeration is case sensitive. |
# |
Properties inherited from HTMLPurifier_AttrDef |
---|
$minimized, $required |