Add full documentation. Implement deferred ChildDef to HTMLModule. Add missing attrib...
[htmlpurifier.git] / library / HTMLPurifier / AttrTypes.php
blob7b7f4ca92b7c7e66a4469945626f0a40383c3d4c
1 <?php
3 require_once 'HTMLPurifier/AttrDef/Nmtokens.php';
4 require_once 'HTMLPurifier/AttrDef/Text.php';
5 require_once 'HTMLPurifier/AttrDef/ID.php';
6 require_once 'HTMLPurifier/AttrDef/URI.php';
8 /**
9 * Provides lookup array of attribute types to HTMLPurifier_AttrDef objects
11 class HTMLPurifier_AttrTypes
13 /**
14 * Lookup array of attribute string identifiers to concrete implementations
15 * @public
17 var $info = array();
19 /**
20 * Constructs the info array
22 function HTMLPurifier_AttrTypes() {
23 $this->info['NMTOKENS'] = new HTMLPurifier_AttrDef_Nmtokens();
24 $this->info['CDATA'] = new HTMLPurifier_AttrDef_Text();
25 $this->info['Text'] = new HTMLPurifier_AttrDef_Text();
26 $this->info['ID'] = new HTMLPurifier_AttrDef_ID();
27 $this->info['URI'] = new HTMLPurifier_AttrDef_URI();
28 $this->info['Pixels'] = new HTMLPurifier_AttrDef_Pixels();
29 $this->info['Length'] = new HTMLPurifier_AttrDef_Length();
30 $this->info['MultiLength'] = new HTMLPurifier_AttrDef_MultiLength();
31 // number is really a positive integer, according to XML one or
32 // more digits
33 $this->info['Number'] = new HTMLPurifier_AttrDef_Integer(false, false, true);