HTML_BBCodeParser2
[ class tree: HTML_BBCodeParser2 ] [ index: HTML_BBCodeParser2 ] [ all elements ]

Source for file Extended.php

Documentation is available at Extended.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3. // +----------------------------------------------------------------------+
  4. // | PHP Version 5                                                        |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997-2003 The PHP Group                                |
  7. // +----------------------------------------------------------------------+
  8. // | This source file is subject to version 2.02 of the PHP license,      |
  9. // | that is bundled with this package in the file LICENSE, and is        |
  10. // | available at through the world-wide-web at                           |
  11. // | http://www.php.net/license/2_02.txt.                                 |
  12. // | If you did not receive a copy of the PHP license and are unable to   |
  13. // | obtain it through the world-wide-web, please send a note to          |
  14. // | license@php.net so we can mail you a copy immediately.               |
  15. // +----------------------------------------------------------------------+
  16. // | Author: Stijn de Reede <sjr@gmx.co.uk>                               |
  17. // +----------------------------------------------------------------------+
  18. //
  19. // $Id$
  20. //
  21.  
  22. /**
  23. @package  HTML_BBCodeParser2
  24. @author   Stijn de Reede  <sjr@gmx.co.uk>
  25. */
  26.  
  27.  
  28. require_once 'HTML/BBCodeParser2/Filter.php';
  29.  
  30.  
  31.  
  32.  
  33. {
  34.  
  35.     /**
  36.     * An array of tags parsed by the engine
  37.     *
  38.     * @access   private
  39.     * @var      array 
  40.     */
  41.     var $_definedTags = array(
  42.                                 'color' => array'htmlopen'  => 'span',
  43.                                                 'htmlclose' => 'span',
  44.                                                 'allowed'   => 'all',
  45.                                                 'attributes'=> array('color' =>'style=%2$scolor:%1$s%2$s')),
  46.                                 'size' => array'htmlopen'  => 'span',
  47.                                                 'htmlclose' => 'span',
  48.                                                 'allowed'   => 'all',
  49.                                                 'attributes'=> array('size' =>'style=%2$sfont-size:%1$spt%2$s')),
  50.                                 'font' => array'htmlopen'  => 'span',
  51.                                                 'htmlclose' => 'span',
  52.                                                 'allowed'   => 'all',
  53.                                                 'attributes'=> array('font' =>'style=%2$sfont-family:%1$s%2$s')),
  54.                                 'align' => array'htmlopen'  => 'div',
  55.                                                 'htmlclose' => 'div',
  56.                                                 'allowed'   => 'all',
  57.                                                 'attributes'=> array('align' =>'style=%2$stext-align:%1$s%2$s')),
  58.                                 'quote' => array('htmlopen'  => 'q',
  59.                                                 'htmlclose' => 'q',
  60.                                                 'allowed'   => 'all',
  61.                                                 'attributes'=> array('quote' =>'cite=%2$s%1$s%2$s')),
  62.                                 'code' => array('htmlopen'  => 'code',
  63.                                                 'htmlclose' => 'code',
  64.                                                 'allowed'   => 'all',
  65.                                                 'attributes'=> array()),
  66.                                 'h1' => array('htmlopen'  => 'h1',
  67.                                                 'htmlclose' => 'h1',
  68.                                                 'allowed'   => 'all',
  69.                                                 'attributes'=> array()),
  70.                                 'h2' => array('htmlopen'  => 'h2',
  71.                                                 'htmlclose' => 'h2',
  72.                                                 'allowed'   => 'all',
  73.                                                 'attributes'=> array()),
  74.                                 'h3' => array('htmlopen'  => 'h3',
  75.                                                 'htmlclose' => 'h3',
  76.                                                 'allowed'   => 'all',
  77.                                                 'attributes'=> array()),
  78.                                 'h4' => array('htmlopen'  => 'h4',
  79.                                                 'htmlclose' => 'h4',
  80.                                                 'allowed'   => 'all',
  81.                                                 'attributes'=> array()),
  82.                                 'h5' => array('htmlopen'  => 'h5',
  83.                                                 'htmlclose' => 'h5',
  84.                                                 'allowed'   => 'all',
  85.                                                 'attributes'=> array()),
  86.                                 'h6' => array('htmlopen'  => 'h6',
  87.                                                 'htmlclose' => 'h6',
  88.                                                 'allowed'   => 'all',
  89.                                                 'attributes'=> array())
  90.  
  91.     );
  92.  
  93.  
  94. }

Documentation generated on Sat, 03 Nov 2012 14:30:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.