extends |
HTMLPurifier_AttrDef |
---|
Framework class for strings that involve multiple values.
Certain CSS properties such as border-width and margin allow multiple lengths to be specified. This class can take a vanilla border-width definition and multiply it, usually into a max of four.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct(HTMLPurifier_AttrDef $single, int $max = 4)
Parameters
|
# | ||||||
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
Implements |
# |
Methods inherited from HTMLPurifier_AttrDef |
---|
parseCDATA(), make(), mungeRgb(), expandCSSEscape() |
Properties | |||
---|---|---|---|
public
|
|
$single
Instance of component definition to defer validation to.
Instance of component definition to defer validation to. |
# |
public
|
|
$max
Max number of values allowed.
Max number of values allowed. |
# |
Properties inherited from HTMLPurifier_AttrDef |
---|
$minimized, $required |