Moodle  2.2.1
http://www.collinsharper.com
HTMLPurifier_AttrDef_CSS_Length Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_CSS_Length:
Collaboration diagram for HTMLPurifier_AttrDef_CSS_Length:

Public Member Functions

 __construct ($min=null, $max=null)
 validate ($string, $config, $context)

Data Fields

 $max

Protected Attributes

 $min

Detailed Description

Represents a Length as defined by CSS.

Definition at line 6 of file Length.php.


Constructor & Destructor Documentation

__construct ( min = null,
max = null 
)
Parameters:
HTMLPurifier_Length$maxMinimum length, or null for no bound. String is also acceptable.
HTMLPurifier_Length$maxMaximum length, or null for no bound. String is also acceptable.

Definition at line 15 of file Length.php.

Here is the call graph for this function:


Member Function Documentation

validate ( string,
config,
context 
)

Validates and cleans passed string according to a definition.

Parameters:
$stringString to be validated and cleaned.
$configMandatory HTMLPurifier_Config object.
$contextMandatory HTMLPurifier_AttrContext object.

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 20 of file Length.php.

Here is the call graph for this function:


Field Documentation

$max

Definition at line 9 of file Length.php.

$min [protected]

Definition at line 9 of file Length.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations