Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / lib / htmlpurifier / HTMLPurifier / AttrTypes.php
blobe13d0d30051c3da38227f361a8842864c629e61d
1 <?php
3 require_once 'HTMLPurifier/AttrDef/HTML/ID.php';
4 require_once 'HTMLPurifier/AttrDef/HTML/Length.php';
5 require_once 'HTMLPurifier/AttrDef/HTML/MultiLength.php';
6 require_once 'HTMLPurifier/AttrDef/HTML/Nmtokens.php';
7 require_once 'HTMLPurifier/AttrDef/HTML/Pixels.php';
8 require_once 'HTMLPurifier/AttrDef/Integer.php';
9 require_once 'HTMLPurifier/AttrDef/Text.php';
10 require_once 'HTMLPurifier/AttrDef/URI.php';
12 /**
13 * Provides lookup array of attribute types to HTMLPurifier_AttrDef objects
15 class HTMLPurifier_AttrTypes
17 /**
18 * Lookup array of attribute string identifiers to concrete implementations
19 * @public
21 var $info = array();
23 /**
24 * Constructs the info array
26 function HTMLPurifier_AttrTypes() {
27 $this->info['CDATA'] = new HTMLPurifier_AttrDef_Text();
28 $this->info['ID'] = new HTMLPurifier_AttrDef_HTML_ID();
29 $this->info['Length'] = new HTMLPurifier_AttrDef_HTML_Length();
30 $this->info['MultiLength'] = new HTMLPurifier_AttrDef_HTML_MultiLength();
31 $this->info['NMTOKENS'] = new HTMLPurifier_AttrDef_HTML_Nmtokens();
32 $this->info['Pixels'] = new HTMLPurifier_AttrDef_HTML_Pixels();
33 $this->info['Text'] = new HTMLPurifier_AttrDef_Text();
34 $this->info['URI'] = new HTMLPurifier_AttrDef_URI();
36 // number is really a positive integer (one or more digits)
37 $this->info['Number'] = new HTMLPurifier_AttrDef_Integer(false, false, true);