ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
Hypertext.php
Go to the documentation of this file.
1 <?php
2 
7 {
8 
9  public $name = 'Hypertext';
10 
11  public function setup($config) {
12  $a = $this->addElement(
13  'a', 'Inline', 'Inline', 'Common',
14  array(
15  // 'accesskey' => 'Character',
16  // 'charset' => 'Charset',
17  'href' => 'URI',
18  // 'hreflang' => 'LanguageCode',
19  'rel' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rel'),
20  'rev' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rev'),
21  // 'tabindex' => 'Number',
22  // 'type' => 'ContentType',
23  )
24  );
25  $a->formatting = true;
26  $a->excludes = array('a' => true);
27  }
28 
29 }
30 
31 // vim: et sw=4 sts=4
Validates a rel/rev link attribute against a directive of allowed values.
Definition: LinkTypes.php:9
addElement($element, $type, $contents, $attr_includes=array(), $attr=array())
Convenience function that sets up a new element.
Definition: HTMLModule.php:130
XHTML 1.1 Hypertext Module, defines hypertext links.
Definition: Hypertext.php:6
Represents an XHTML 1.1 module, with information on elements, tags and attributes.
Definition: HTMLModule.php:18