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

Public Member Functions

 __construct ($non_negative=false)
 validate ($number, $config, $context)

Protected Attributes

 $non_negative = false

Detailed Description

Validates a number as defined by the CSS spec.

Definition at line 6 of file Number.php.


Constructor & Destructor Documentation

__construct ( non_negative = false)
Parameters:
$non_negativeBool indicating whether negatives are forbidden

Definition at line 17 of file Number.php.


Member Function Documentation

validate ( number,
config,
context 
)
Warning:
Some contexts do not pass $config, $context. These variables should not be used without checking HTMLPurifier_Length

Reimplemented from HTMLPurifier_AttrDef.

Reimplemented in HTMLPurifier_AttrDef_CSS_AlphaValue.

Definition at line 25 of file Number.php.

Here is the call graph for this function:


Field Documentation

$non_negative = false [protected]

Bool indicating whether or not only positive values allowed.

Definition at line 12 of file Number.php.


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