XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
HTMLPurifier_AttrDef_Integer Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_Integer:
Inheritance graph

Public Member Functions

 __construct ($negative=true, $zero=true, $positive=true)
 
 validate ($integer, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_AttrDef
 make ($string)
 
 parseCDATA ($string)
 
 validate ($string, $config, $context)
 

Protected Attributes

 $negative = true
 
 $positive = true
 
 $zero = true
 

Additional Inherited Members

- Public Attributes inherited from HTMLPurifier_AttrDef
 $minimized = false
 
 $required = false
 
- Protected Member Functions inherited from HTMLPurifier_AttrDef
 expandCSSEscape ($string)
 
 mungeRgb ($string)
 

Detailed Description

Validates an integer.

Note
While this class was modeled off the CSS definition, no currently allowed CSS uses this type. The properties that do are: widows, orphans, z-index, counter-increment, counter-reset. Some of the HTML attributes, however, find use for a non-negative version of this.

Definition at line 10 of file Integer.php.

Constructor & Destructor Documentation

HTMLPurifier_AttrDef_Integer::__construct (   $negative = true,
  $zero = true,
  $positive = true 
)
Parameters
$negativeBool indicating whether or not negative values are allowed
$zeroBool indicating whether or not zero is allowed
$positiveBool indicating whether or not positive values are allowed

Definition at line 33 of file Integer.php.

References $negative, $positive, and $zero.

Member Function Documentation

HTMLPurifier_AttrDef_Integer::validate (   $integer,
  $config,
  $context 
)

Definition at line 41 of file Integer.php.

References HTMLPurifier_AttrDef\parseCDATA().

Here is the call graph for this function:

Member Data Documentation

HTMLPurifier_AttrDef_Integer::$negative = true
protected

Bool indicating whether or not negative values are allowed

Definition at line 16 of file Integer.php.

Referenced by __construct().

HTMLPurifier_AttrDef_Integer::$positive = true
protected

Bool indicating whether or not positive values are allowed

Definition at line 26 of file Integer.php.

Referenced by __construct().

HTMLPurifier_AttrDef_Integer::$zero = true
protected

Bool indicating whether or not zero is allowed

Definition at line 21 of file Integer.php.

Referenced by __construct().


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