* @copyright 2005 bertrand Gugger * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @version CVS: $Id: BBCode.php,v 1.13 2005/10/25 05:12:29 firman Exp $ * @link http://pear.php.net/package/Text_Wiki */ /** * "master" class for handling the management and convenience */ require_once 'Text/Wiki.php'; /** * Base Text_Wiki handler class extension for BBCode * * @category Text * @package Text_Wiki * @author Bertrand Gugger * @copyright 2005 bertrand Gugger * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @version Release: @package_version@ * @link http://pear.php.net/package/Text_Wiki * @see Text_Wiki::Text_Wiki() */ class Text_Wiki_BBCode extends Text_Wiki { /** * The default list of rules, in order, to apply to the source text. * * @access public * @var array */ var $rules = array( 'Prefilter', 'Delimiter', 'Code', // 'Plugin', // 'Function', // 'Html', // 'Raw', // 'Preformatted', // 'Include', // 'Embed', // 'Page', // 'Anchor', // 'Heading', // 'Toc', // 'Titlebar', // 'Horiz', // 'Break', 'Blockquote', 'List', // 'Deflist', // 'Table', // 'Box', 'Image', 'Smiley', // 'Phplookup', // 'Center', 'Newline', 'Paragraph', 'Url', // 'Freelink', 'Colortext', 'Font', // 'Strong', 'Bold', // 'Emphasis', 'Italic', 'Underline', // 'Tt', 'Superscript', 'Subscript', // 'Specialchar', // 'Revise', // 'Interwiki', 'Tighten' ); /** * Constructor: just adds the path to BBCode rules * * @access public * @param array $rules The set of rules to load for this object. */ function Text_Wiki_BBCode($rules = null) { parent::Text_Wiki($rules); $this->addPath('parse', $this->fixPath(dirname(__FILE__)).'Parse/BBCode'); } } ?>