home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / Basic.php < prev    next >
Encoding:
PHP Script  |  2004-03-24  |  3.2 KB  |  73 lines

  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.4 2004/01/13 13:07:22 sjr 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'  => 'u',
  51.                                                 'htmlclose' => 'u',
  52.                                                 'allowed'   => 'all',
  53.                                                 'attributes'=> array()),
  54.                                 's' => array(   'htmlopen'  => 'strike',
  55.                                                 'htmlclose' => 'strike',
  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.  
  72. ?>
  73.