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

Source for file Basic.php

Documentation is available at Basic.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3. // +----------------------------------------------------------------------+
  4. // | PHP Version 4                                                        |
  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: Basic.php,v 1.5 2005/10/14 07:05:49 arnaud Exp $
  20. //
  21.  
  22. /**
  23. @package  HTML_BBCodeParser
  24. @author   Stijn de Reede  <sjr@gmx.co.uk>
  25. */
  26.  
  27.  
  28. require_once('HTML/BBCodeParser.php');
  29.  
  30.  
  31.  
  32.  
  33. class HTML_BBCodeParser_Filter_Basic extends HTML_BBCodeParser
  34. {
  35.  
  36.     /**
  37.     * An array of tags parsed by the engine
  38.     *
  39.     * @access   private
  40.     * @var      array 
  41.     */
  42.     var $_definedTags = array(  'b' => array(   'htmlopen'  => 'strong',
  43.                                                 'htmlclose' => 'strong',
  44.                                                 'allowed'   => 'all',
  45.                                                 'attributes'=> array()),
  46.                                 'i' => array(   'htmlopen'  => 'em',
  47.                                                 'htmlclose' => 'em',
  48.                                                 'allowed'   => 'all',
  49.                                                 'attributes'=> array()),
  50.                                 'u' => array(   'htmlopen'  => 'span style="text-decoration:underline;"',
  51.                                                 'htmlclose' => 'span',
  52.                                                 'allowed'   => 'all',
  53.                                                 'attributes'=> array()),
  54.                                 's' => array(   'htmlopen'  => 'del',
  55.                                                 'htmlclose' => 'del',
  56.                                                 'allowed'   => 'all',
  57.                                                 'attributes'=> array()),
  58.                                 'sub' => array'htmlopen'  => 'sub',
  59.                                                 'htmlclose' => 'sub',
  60.                                                 'allowed'   => 'all',
  61.                                                 'attributes'=> array()),
  62.                                 'sup' => array'htmlopen'  => 'sup',
  63.                                                 'htmlclose' => 'sup',
  64.                                                 'allowed'   => 'all',
  65.                                                 'attributes'=> array())
  66.                             );
  67.  
  68. }
  69.  
  70.  
  71. ?>

Documentation generated on Tue, 05 Jun 2007 17:30:03 -0400 by phpDocumentor 1.3.2. PEAR Logo Copyright © PHP Group 2004.