API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_AttrDef_Integer Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_Integer:
Collaboration diagram for HTMLPurifier_AttrDef_Integer:

Public Member Functions

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

Protected Attributes

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

Additional Inherited Members

- Data Fields inherited from HTMLPurifier_AttrDef
 $minimized = false
 
 $required = false
 
- Protected Member Functions inherited from HTMLPurifier_AttrDef
 mungeRgb ($string)
 
 expandCSSEscape ($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.

Constructor & Destructor Documentation

◆ __construct()

__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

Member Function Documentation

◆ validate()

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

Reimplemented from HTMLPurifier_AttrDef.

Here is the call graph for this function:

Field Documentation

◆ $negative

$negative = true
protected

Whether or not negative values are allowed. @type bool

◆ $positive

$positive = true
protected

Whether or not positive values are allowed. @type bool

◆ $zero

$zero = true
protected

Whether or not zero is allowed. @type bool


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