cvs: pear /Text_Wiki/Text/Wiki/Parse/Tiki Page.php Plugin.php Specialchar.php

From: Date: Sat, 30 Jul 2005 14:31:22 +0000
Subject: cvs: pear /Text_Wiki/Text/Wiki/Parse/Tiki Page.php Plugin.php Specialchar.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-33475@lists.php.net to get a copy of this message
toggg Sat Jul 30 10:31:22 2005 EDT Modified files: /pear/Text_Wiki/Text/Wiki/Parse/Tiki Page.php Specialchar.php Plugin.php Log: Headers http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Parse/Tiki/Page.php?r1=1.1&r2=1.2&ty=u Index: pear/Text_Wiki/Text/Wiki/Parse/Tiki/Page.php diff -u pear/Text_Wiki/Text/Wiki/Parse/Tiki/Page.php:1.1 pear/Text_Wiki/Text/Wiki/Parse/Tiki/Page.php:1.2 --- pear/Text_Wiki/Text/Wiki/Parse/Tiki/Page.php:1.1 Thu Jul 21 16:56:14 2005 +++ pear/Text_Wiki/Text/Wiki/Parse/Tiki/Page.php Sat Jul 30 10:31:20 2005 @@ -1,19 +1,43 @@ <?php +// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: +/** + * Page rule end parser for tikiwiki + * + * PHP versions 4 and 5 + * + * @category Text + * @package Text_Wiki + * @author Justin Patrin <papercrane@reversefold.com> + * @author Paul M. Jones <pmjones@php.net> + * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 + * @version CVS: $Id: Page.php,v 1.2 2005/07/30 14:31:20 toggg Exp $ + * @link http://pear.php.net/package/Text_Wiki + */ +/** + * This class parses page separators for tikiwiki (...page...) and replace them with a token + * + * @category Text + * @package Text_Wiki + * @author Justin Patrin <papercrane@reversefold.com> + * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 + * @version Release: @package_version@ + * @link http://pear.php.net/package/Text_Wiki + */ class Text_Wiki_Parse_Page extends Text_Wiki_Parse { - - + + /** - * + * * The regular expression used to find source text matching this * rule. - * + * * @access public - * + * * @var string - * + * */ - + var $regex = '/\.\.\.page\.\.\./i'; @@ -21,13 +45,13 @@ $this->wiki->source = preg_replace_callback($this->regex, array(&$this, 'process'), $this->wiki->source); } - + /** - * + * * Generates a token entry for the matched text. Token options are: - * - * 'text' => The full matched text. - * + * + * <none> + * * @access public * * @param array &$matches The array of matches from parse(). @@ -36,10 +60,10 @@ * the source text. * */ - + function process(&$matches) { return $this->wiki->addToken($this->rule); } } -?> \ No newline at end of file +?> http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Parse/Tiki/Specialchar.php?r1=1.1&r2=1.2&ty=u Index: pear/Text_Wiki/Text/Wiki/Parse/Tiki/Specialchar.php diff -u pear/Text_Wiki/Text/Wiki/Parse/Tiki/Specialchar.php:1.1 pear/Text_Wiki/Text/Wiki/Parse/Tiki/Specialchar.php:1.2 --- pear/Text_Wiki/Text/Wiki/Parse/Tiki/Specialchar.php:1.1 Thu Jul 21 16:56:14 2005 +++ pear/Text_Wiki/Text/Wiki/Parse/Tiki/Specialchar.php Sat Jul 30 10:31:20 2005 @@ -1,5 +1,29 @@ <?php +// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: +/** + * Specialchar rule end parser for tikiwiki + * + * PHP versions 4 and 5 + * + * @category Text + * @package Text_Wiki + * @author Justin Patrin <papercrane@reversefold.com> + * @author Paul M. Jones <pmjones@php.net> + * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 + * @version CVS: $Id: Specialchar.php,v 1.2 2005/07/30 14:31:20 toggg Exp $ + * @link http://pear.php.net/package/Text_Wiki + */ +/** + * This class parses special chars markups for tikiwiki and replace them with a token + * + * @category Text + * @package Text_Wiki + * @author Justin Patrin <papercrane@reversefold.com> + * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 + * @version Release: @package_version@ + * @link http://pear.php.net/package/Text_Wiki + */ class Text_Wiki_Parse_SpecialChar extends Text_Wiki_Parse { var $types = array('~bs~', @@ -13,7 +37,7 @@ '~--~', '~lt~', '~gt~'); - + function Text_Wiki_Parse_SpecialChar(&$obj) { parent::Text_Wiki_Parse($obj); @@ -26,11 +50,11 @@ } $this->regex = '/('.$this->regex.'|("|&quot;) \-\- (?:\2)|\~\d+\~)/'; } - + /** - * - * Generates a replacement token for the matched text. - * + * + * Generates a replacement token for the matched text. (option is 'char'=>initial code) + * * @access public * * @param array &$matches The array of matches from parse(). @@ -39,11 +63,11 @@ * the source text. * */ - + function process(&$matches) { return $this->wiki->addToken($this->rule, array('char' => $matches[1])); } } -?> \ No newline at end of file +?> http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Parse/Tiki/Plugin.php?r1=1.3&r2=1.4&ty=u Index: pear/Text_Wiki/Text/Wiki/Parse/Tiki/Plugin.php diff -u pear/Text_Wiki/Text/Wiki/Parse/Tiki/Plugin.php:1.3 pear/Text_Wiki/Text/Wiki/Parse/Tiki/Plugin.php:1.4 --- pear/Text_Wiki/Text/Wiki/Parse/Tiki/Plugin.php:1.3 Thu Jul 28 07:28:02 2005 +++ pear/Text_Wiki/Text/Wiki/Parse/Tiki/Plugin.php Sat Jul 30 10:31:20 2005 @@ -1,4 +1,33 @@ <?php +// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: +/** + * Plugin rule end parser for tikiwiki + * + * PHP versions 4 and 5 + * + * @category Text + * @package Text_Wiki + * @author Bertrand Gugger <bertrand@toggg.com> + * @author Justin Patrin <papercrane@reversefold.com> + * @author Paul M. Jones <pmjones@php.net> + * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 + * @version CVS: $Id: Plugin.php,v 1.4 2005/07/30 14:31:20 toggg Exp $ + * @link http://pear.php.net/package/Text_Wiki + */ + +/** + * This class parses plugins for tikiwiki and replace them with the produced markup + * Plugins are defined by {NAME(param=>val, ...)}...data...{NAME} (parameters optional) + * They can nest and produce plugins themselves + * + * @category Text + * @package Text_Wiki + * @author Bertrand Gugger <bertrand@toggg.com> + * @author Justin Patrin <papercrane@reversefold.com> + * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 + * @version Release: @package_version@ + * @link http://pear.php.net/package/Text_Wiki + */ class Text_Wiki_Parse_Plugin extends Text_Wiki_Parse { /**

« previous php.pear.cvs (#33475) next »