Cheetah
Public Member Functions | Public Attributes | List of all members
HTMLPurifier_AttrDef_CSS_Multiple Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_CSS_Multiple:
HTMLPurifier_AttrDef

Public Member Functions

 __construct ($single, $max=4)
 
 validate ($string, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_AttrDef
 parseCDATA ($string)
 
 make ($string)
 

Public Attributes

 $single
 
 $max
 
- Public Attributes inherited from HTMLPurifier_AttrDef
 $minimized = false
 
 $required = false
 

Additional Inherited Members

- Protected Member Functions inherited from HTMLPurifier_AttrDef
 mungeRgb ($string)
 
 expandCSSEscape ($string)
 

Detailed Description

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.

Note
Even though the CSS specification isn't clear about it, inherit can only be used alone: it will never manifest as part of a multi shorthand declaration. Thus, this class does not allow inherit.

Definition at line 12395 of file HTMLPurifier.standalone.php.

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_AttrDef_CSS_Multiple::__construct (   $single,
  $max = 4 
)
Parameters
HTMLPurifier_AttrDef$singleHTMLPurifier_AttrDef to multiply
int$maxMax number of values allowed (usually four)

Definition at line 12414 of file HTMLPurifier.standalone.php.

Member Function Documentation

◆ validate()

HTMLPurifier_AttrDef_CSS_Multiple::validate (   $string,
  $config,
  $context 
)
Parameters
string$string
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
bool|string

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 12426 of file HTMLPurifier.standalone.php.

Member Data Documentation

◆ $max

HTMLPurifier_AttrDef_CSS_Multiple::$max

Max number of values allowed.

Definition at line 12408 of file HTMLPurifier.standalone.php.

◆ $single

HTMLPurifier_AttrDef_CSS_Multiple::$single

Instance of component definition to defer validation to. @type HTMLPurifier_AttrDef

Definition at line 12402 of file HTMLPurifier.standalone.php.


The documentation for this class was generated from the following file: