[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/htmlpurifier/library/HTMLPurifier/HTMLModule/ -> List.php (source)

   1  <?php
   2  
   3  /**
   4   * XHTML 1.1 List Module, defines list-oriented elements. Core Module.
   5   */
   6  class HTMLPurifier_HTMLModule_List extends HTMLPurifier_HTMLModule
   7  {
   8  
   9      public $name = 'List';
  10  
  11      // According to the abstract schema, the List content set is a fully formed
  12      // one or more expr, but it invariably occurs in an optional declaration
  13      // so we're not going to do that subtlety. It might cause trouble
  14      // if a user defines "List" and expects that multiple lists are
  15      // allowed to be specified, but then again, that's not very intuitive.
  16      // Furthermore, the actual XML Schema may disagree. Regardless,
  17      // we don't have support for such nested expressions without using
  18      // the incredibly inefficient and draconic Custom ChildDef.
  19  
  20      public $content_sets = array('Flow' => 'List');
  21  
  22      public function setup($config) {
  23          $this->addElement('ol', 'List', 'Required: li', 'Common');
  24          $this->addElement('ul', 'List', 'Required: li', 'Common');
  25          $this->addElement('dl', 'List', 'Required: dt | dd', 'Common');
  26  
  27          $this->addElement('li', false, 'Flow', 'Common');
  28  
  29          $this->addElement('dd', false, 'Flow', 'Common');
  30          $this->addElement('dt', false, 'Inline', 'Common');
  31      }
  32  
  33  }
  34  
  35  // vim: et sw=4 sts=4


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1