Initial Commit
This commit is contained in:
23
database/php/pear/Text/Wiki/Render/Plain/Anchor.php
Normal file
23
database/php/pear/Text/Wiki/Render/Plain/Anchor.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* This class renders an anchor target name in XHTML.
|
||||
*
|
||||
* @author Manuel Holtgrewe <purestorm at ggnore dot net>
|
||||
*
|
||||
* @author Paul M. Jones <pmjones at ciaweb dot net>
|
||||
*
|
||||
* @package Text_Wiki
|
||||
*
|
||||
*/
|
||||
|
||||
class Text_Wiki_Render_Plain_Anchor extends Text_Wiki_Render {
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return $options['name'];
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
39
database/php/pear/Text/Wiki/Render/Plain/Blockquote.php
Normal file
39
database/php/pear/Text/Wiki/Render/Plain/Blockquote.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Blockquote extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
$type = $options['type'];
|
||||
$level = $options['level'];
|
||||
|
||||
// set up indenting so that the results look nice; we do this
|
||||
// in two steps to avoid str_pad mathematics. ;-)
|
||||
$pad = str_pad('', $level + 1, "\t");
|
||||
$pad = str_replace("\t", ' ', $pad);
|
||||
|
||||
// starting
|
||||
if ($type == 'start') {
|
||||
return "\n$pad";
|
||||
}
|
||||
|
||||
// ending
|
||||
if ($type == 'end') {
|
||||
return "\n$pad";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
23
database/php/pear/Text/Wiki/Render/Plain/Bold.php
Normal file
23
database/php/pear/Text/Wiki/Render/Plain/Bold.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Bold extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
48
database/php/pear/Text/Wiki/Render/Plain/Box.php
Normal file
48
database/php/pear/Text/Wiki/Render/Plain/Box.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
|
||||
/**
|
||||
* Box rule end renderer for Plain
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @copyright 2005 bertrand Gugger
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
|
||||
* @version CVS: $Id: Box.php 193489 2005-08-15 09:50:57Z toggg $
|
||||
* @link http://pear.php.net/package/Text_Wiki
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class renders a box drawn in Plain.
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @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
|
||||
*/
|
||||
class Text_Wiki_Render_Plain_Box extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
?>
|
||||
24
database/php/pear/Text/Wiki/Render/Plain/Break.php
Normal file
24
database/php/pear/Text/Wiki/Render/Plain/Break.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Break extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return "\n";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
23
database/php/pear/Text/Wiki/Render/Plain/Center.php
Normal file
23
database/php/pear/Text/Wiki/Render/Plain/Center.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Center extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
24
database/php/pear/Text/Wiki/Render/Plain/Code.php
Normal file
24
database/php/pear/Text/Wiki/Render/Plain/Code.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Code extends Text_Wiki_Render {
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return "\n" . $options['text'] . "\n\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
23
database/php/pear/Text/Wiki/Render/Plain/Colortext.php
Normal file
23
database/php/pear/Text/Wiki/Render/Plain/Colortext.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Colortext extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
59
database/php/pear/Text/Wiki/Render/Plain/Deflist.php
Normal file
59
database/php/pear/Text/Wiki/Render/Plain/Deflist.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Deflist extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
$type = $options['type'];
|
||||
$pad = " ";
|
||||
|
||||
switch ($type) {
|
||||
|
||||
case 'list_start':
|
||||
return "\n";
|
||||
break;
|
||||
|
||||
case 'list_end':
|
||||
return "\n\n";
|
||||
break;
|
||||
|
||||
case 'term_start':
|
||||
|
||||
// done!
|
||||
return $pad;
|
||||
break;
|
||||
|
||||
case 'term_end':
|
||||
return "\n";
|
||||
break;
|
||||
|
||||
case 'narr_start':
|
||||
|
||||
// done!
|
||||
return $pad . $pad;
|
||||
break;
|
||||
|
||||
case 'narr_end':
|
||||
return "\n";
|
||||
break;
|
||||
|
||||
default:
|
||||
return '';
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
23
database/php/pear/Text/Wiki/Render/Plain/Delimiter.php
Normal file
23
database/php/pear/Text/Wiki/Render/Plain/Delimiter.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Delimiter extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
23
database/php/pear/Text/Wiki/Render/Plain/Embed.php
Normal file
23
database/php/pear/Text/Wiki/Render/Plain/Embed.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Embed extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return strip_tags($options['text']);
|
||||
}
|
||||
}
|
||||
?>
|
||||
23
database/php/pear/Text/Wiki/Render/Plain/Emphasis.php
Normal file
23
database/php/pear/Text/Wiki/Render/Plain/Emphasis.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Emphasis extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
44
database/php/pear/Text/Wiki/Render/Plain/Font.php
Normal file
44
database/php/pear/Text/Wiki/Render/Plain/Font.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
|
||||
/**
|
||||
* BBCode: extra Font rules renderer to size the text
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @copyright 2005 bertrand Gugger
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
|
||||
* @version CVS: $Id: Font.php 192578 2005-08-06 11:36:45Z toggg $
|
||||
* @link http://pear.php.net/package/Text_Wiki
|
||||
*/
|
||||
|
||||
/**
|
||||
* Font rule render class (used for BBCode)
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @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_Render()
|
||||
*/
|
||||
class Text_Wiki_Render_Plain_Font extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
* Renders a token into text matching the requested format.
|
||||
* process the font size option
|
||||
*
|
||||
* @access public
|
||||
* @param array $options The "options" portion of the token (second element).
|
||||
* @return string The text rendered from the token options.
|
||||
*/
|
||||
function token($options)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
23
database/php/pear/Text/Wiki/Render/Plain/Freelink.php
Normal file
23
database/php/pear/Text/Wiki/Render/Plain/Freelink.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Freelink extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return $options['text'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
39
database/php/pear/Text/Wiki/Render/Plain/Function.php
Normal file
39
database/php/pear/Text/Wiki/Render/Plain/Function.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
// $Id: Function.php 170080 2004-10-08 17:46:47Z pmjones $
|
||||
|
||||
class Text_Wiki_Render_Plain_Function extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
extract($options); // access, return, name, params, throws
|
||||
|
||||
$output = "$access $return $name ( ";
|
||||
|
||||
foreach ($params as $key => $val) {
|
||||
$output .= "{$val['type']} {$val['descr']} {$val['default']} ";
|
||||
}
|
||||
|
||||
$output .= ') ';
|
||||
|
||||
foreach ($throws as $key => $val) {
|
||||
$output .= "{$val['type']} {$val['descr']} ";
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
?>
|
||||
14
database/php/pear/Text/Wiki/Render/Plain/Heading.php
Normal file
14
database/php/pear/Text/Wiki/Render/Plain/Heading.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Heading extends Text_Wiki_Render {
|
||||
|
||||
function token($options)
|
||||
{
|
||||
if ($options['type'] == 'end') {
|
||||
return "\n\n";
|
||||
} else {
|
||||
return "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
23
database/php/pear/Text/Wiki/Render/Plain/Horiz.php
Normal file
23
database/php/pear/Text/Wiki/Render/Plain/Horiz.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Horiz extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return "\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
24
database/php/pear/Text/Wiki/Render/Plain/Html.php
Normal file
24
database/php/pear/Text/Wiki/Render/Plain/Html.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Html extends Text_Wiki_Render {
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return strip_tags($options['text']);
|
||||
}
|
||||
}
|
||||
?>
|
||||
22
database/php/pear/Text/Wiki/Render/Plain/Image.php
Normal file
22
database/php/pear/Text/Wiki/Render/Plain/Image.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
class Text_Wiki_Render_Plain_Image extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
8
database/php/pear/Text/Wiki/Render/Plain/Include.php
Normal file
8
database/php/pear/Text/Wiki/Render/Plain/Include.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
class Text_Wiki_Render_Plain_Include extends Text_Wiki_Render {
|
||||
function token()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
?>
|
||||
29
database/php/pear/Text/Wiki/Render/Plain/Interwiki.php
Normal file
29
database/php/pear/Text/Wiki/Render/Plain/Interwiki.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Interwiki extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
if (isset($options['url'])) {
|
||||
// calculated by the parser (e.g. Mediawiki)
|
||||
$href = $options['url'];
|
||||
} else {
|
||||
$href = $options['site'] . ':' . $options['page'];
|
||||
}
|
||||
return $options['text'] . ' (' . $href . ')';
|
||||
}
|
||||
}
|
||||
?>
|
||||
23
database/php/pear/Text/Wiki/Render/Plain/Italic.php
Normal file
23
database/php/pear/Text/Wiki/Render/Plain/Italic.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Italic extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
68
database/php/pear/Text/Wiki/Render/Plain/List.php
Normal file
68
database/php/pear/Text/Wiki/Render/Plain/List.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
|
||||
class Text_Wiki_Render_Plain_List extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* This rendering method is syntactically and semantically compliant
|
||||
* with XHTML 1.1 in that sub-lists are part of the previous list item.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
// make nice variables (type, level, count)
|
||||
extract($options);
|
||||
|
||||
// set up indenting so that the results look nice; we do this
|
||||
// in two steps to avoid str_pad mathematics. ;-)
|
||||
$pad = str_pad('', $level, "\t");
|
||||
$pad = str_replace("\t", ' ', $pad);
|
||||
|
||||
switch ($type) {
|
||||
|
||||
case 'bullet_list_start':
|
||||
break;
|
||||
|
||||
case 'bullet_list_end':
|
||||
if ($level == 0) {
|
||||
return "\n\n";
|
||||
}
|
||||
break;
|
||||
|
||||
case 'number_list_start':
|
||||
break;
|
||||
|
||||
case 'number_list_end':
|
||||
if ($level == 0) {
|
||||
return "\n\n";
|
||||
}
|
||||
break;
|
||||
|
||||
case 'bullet_item_start':
|
||||
case 'number_item_start':
|
||||
return "\n$pad";
|
||||
break;
|
||||
|
||||
case 'bullet_item_end':
|
||||
case 'number_item_end':
|
||||
default:
|
||||
// ignore item endings and all other types.
|
||||
// item endings are taken care of by the other types
|
||||
// depending on their place in the list.
|
||||
return;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
12
database/php/pear/Text/Wiki/Render/Plain/Newline.php
Normal file
12
database/php/pear/Text/Wiki/Render/Plain/Newline.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Newline extends Text_Wiki_Render {
|
||||
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return "\n";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
48
database/php/pear/Text/Wiki/Render/Plain/Page.php
Normal file
48
database/php/pear/Text/Wiki/Render/Plain/Page.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
|
||||
/**
|
||||
* Page rule end renderer for Plain
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @copyright 2005 bertrand Gugger
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
|
||||
* @version CVS: $Id: Page.php 193514 2005-08-15 15:27:19Z toggg $
|
||||
* @link http://pear.php.net/package/Text_Wiki
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class renders page markers in Plain.
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @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
|
||||
*/
|
||||
class Text_Wiki_Render_Plain_Page extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return "\x0C";
|
||||
}
|
||||
}
|
||||
?>
|
||||
31
database/php/pear/Text/Wiki/Render/Plain/Paragraph.php
Normal file
31
database/php/pear/Text/Wiki/Render/Plain/Paragraph.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Paragraph extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
extract($options); //type
|
||||
|
||||
if ($type == 'start') {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ($type == 'end') {
|
||||
return "\n\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
25
database/php/pear/Text/Wiki/Render/Plain/Phplookup.php
Normal file
25
database/php/pear/Text/Wiki/Render/Plain/Phplookup.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Phplookup extends Text_Wiki_Render {
|
||||
|
||||
var $conf = array('target' => '_blank');
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return trim($options['text']);
|
||||
}
|
||||
}
|
||||
?>
|
||||
49
database/php/pear/Text/Wiki/Render/Plain/Plugin.php
Normal file
49
database/php/pear/Text/Wiki/Render/Plain/Plugin.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
|
||||
/**
|
||||
* Plugin rule end renderer for Plain
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @copyright 2005 bertrand Gugger
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
|
||||
* @version CVS: $Id: Plugin.php 193730 2005-08-17 09:16:36Z toggg $
|
||||
* @link http://pear.php.net/package/Text_Wiki
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class renders wiki plugins in Plain. (empty)
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @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
|
||||
*/
|
||||
class Text_Wiki_Render_Plain_Plugin extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
* Plugins produce wiki markup so are processed by parsing, no tokens produced
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
?>
|
||||
24
database/php/pear/Text/Wiki/Render/Plain/Prefilter.php
Normal file
24
database/php/pear/Text/Wiki/Render/Plain/Prefilter.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
|
||||
/**
|
||||
* This class implements a Text_Wiki_Render_Xhtml to "pre-filter" source text so
|
||||
* that line endings are consistently \n, lines ending in a backslash \
|
||||
* are concatenated with the next line, and tabs are converted to spaces.
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Paul M. Jones <pmjones@php.net>
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
|
||||
* @version CVS: $Id: Prefilter.php 248435 2007-12-17 16:19:44Z justinpatrin $
|
||||
* @link http://pear.php.net/package/Text_Wiki
|
||||
*/
|
||||
|
||||
class Text_Wiki_Render_Plain_Prefilter extends Text_Wiki_Render {
|
||||
function token()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
?>
|
||||
48
database/php/pear/Text/Wiki/Render/Plain/Preformatted.php
Normal file
48
database/php/pear/Text/Wiki/Render/Plain/Preformatted.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
|
||||
/**
|
||||
* Preformatted rule end renderer for Plain
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @copyright 2005 bertrand Gugger
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
|
||||
* @version CVS: $Id: Preformatted.php 193477 2005-08-15 06:15:41Z toggg $
|
||||
* @link http://pear.php.net/package/Text_Wiki
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class renders preformated text in Plain.
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @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
|
||||
*/
|
||||
class Text_Wiki_Render_Plain_Preformatted extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return $options['text'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
23
database/php/pear/Text/Wiki/Render/Plain/Raw.php
Normal file
23
database/php/pear/Text/Wiki/Render/Plain/Raw.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Raw extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return $options['text'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
24
database/php/pear/Text/Wiki/Render/Plain/Revise.php
Normal file
24
database/php/pear/Text/Wiki/Render/Plain/Revise.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Revise extends Text_Wiki_Render {
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
44
database/php/pear/Text/Wiki/Render/Plain/Smiley.php
Normal file
44
database/php/pear/Text/Wiki/Render/Plain/Smiley.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
|
||||
/**
|
||||
* Smiley rule Plain renderer
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @copyright 2005 bertrand Gugger
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
|
||||
* @version CVS: $Id: Smiley.php 192951 2005-08-10 11:42:08Z toggg $
|
||||
* @link http://pear.php.net/package/Text_Wiki
|
||||
*/
|
||||
|
||||
/**
|
||||
* Smiley rule Plain render class
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @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_Render()
|
||||
*/
|
||||
class Text_Wiki_Render_Plain_Smiley extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
* Renders a token into text matching the requested format.
|
||||
* process the Smileys
|
||||
*
|
||||
* @access public
|
||||
* @param array $options The "options" portion of the token (second element).
|
||||
* @return string The text rendered from the token options.
|
||||
*/
|
||||
function token($options)
|
||||
{
|
||||
return $options['symbol'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
54
database/php/pear/Text/Wiki/Render/Plain/Specialchar.php
Normal file
54
database/php/pear/Text/Wiki/Render/Plain/Specialchar.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
|
||||
/**
|
||||
* Specialchar rule end renderer for Plain
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @copyright 2005 bertrand Gugger
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
|
||||
* @version CVS: $Id: Specialchar.php 193499 2005-08-15 11:10:38Z toggg $
|
||||
* @link http://pear.php.net/package/Text_Wiki
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class renders special characters in Plain.
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @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
|
||||
*/
|
||||
class Text_Wiki_Render_Plain_SpecialChar extends Text_Wiki_Render {
|
||||
|
||||
var $types = array('~bs~' => '\\',
|
||||
'~hs~' => ' ',
|
||||
'~amp~' => '&',
|
||||
'~ldq~' => '"',
|
||||
'~rdq~' => '"',
|
||||
'~lsq~' => "'",
|
||||
'~rsq~' => "'",
|
||||
'~c~' => '©',
|
||||
'~--~' => '-',
|
||||
'" -- "' => '-',
|
||||
'" -- "' => '-',
|
||||
'~lt~' => '<',
|
||||
'~gt~' => '>');
|
||||
|
||||
function token($options)
|
||||
{
|
||||
if (isset($this->types[$options['char']])) {
|
||||
return $this->types[$options['char']];
|
||||
} else {
|
||||
return $options['char'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
24
database/php/pear/Text/Wiki/Render/Plain/Strong.php
Normal file
24
database/php/pear/Text/Wiki/Render/Plain/Strong.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Strong extends Text_Wiki_Render {
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
48
database/php/pear/Text/Wiki/Render/Plain/Subscript.php
Normal file
48
database/php/pear/Text/Wiki/Render/Plain/Subscript.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
|
||||
/**
|
||||
* Subscript rule end renderer for Plain
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @copyright 2005 bertrand Gugger
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
|
||||
* @version CVS: $Id: Subscript.php 193490 2005-08-15 10:09:06Z toggg $
|
||||
* @link http://pear.php.net/package/Text_Wiki
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class renders subscript text in Plain.
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @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
|
||||
*/
|
||||
class Text_Wiki_Render_Plain_Subscript extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
?>
|
||||
23
database/php/pear/Text/Wiki/Render/Plain/Superscript.php
Normal file
23
database/php/pear/Text/Wiki/Render/Plain/Superscript.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Superscript extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
65
database/php/pear/Text/Wiki/Render/Plain/Table.php
Normal file
65
database/php/pear/Text/Wiki/Render/Plain/Table.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Table extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
// make nice variable names (type, attr, span)
|
||||
extract($options);
|
||||
|
||||
$pad = ' ';
|
||||
|
||||
switch ($type) {
|
||||
|
||||
case 'table_start':
|
||||
return;
|
||||
break;
|
||||
|
||||
case 'table_end':
|
||||
return;
|
||||
break;
|
||||
|
||||
case 'caption_start':
|
||||
return;
|
||||
break;
|
||||
|
||||
case 'caption_end':
|
||||
return "\n";
|
||||
break;
|
||||
|
||||
case 'row_start':
|
||||
return;
|
||||
break;
|
||||
|
||||
case 'row_end':
|
||||
return " ||\n";
|
||||
break;
|
||||
|
||||
case 'cell_start':
|
||||
return " || ";
|
||||
break;
|
||||
|
||||
case 'cell_end':
|
||||
return;
|
||||
break;
|
||||
|
||||
default:
|
||||
return '';
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
10
database/php/pear/Text/Wiki/Render/Plain/Tighten.php
Normal file
10
database/php/pear/Text/Wiki/Render/Plain/Tighten.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
class Text_Wiki_Render_Plain_Tighten extends Text_Wiki_Render {
|
||||
|
||||
|
||||
function token()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
?>
|
||||
54
database/php/pear/Text/Wiki/Render/Plain/Titlebar.php
Normal file
54
database/php/pear/Text/Wiki/Render/Plain/Titlebar.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
|
||||
/**
|
||||
* Titlebar rule end renderer for Plain
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @copyright 2005 bertrand Gugger
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
|
||||
* @version CVS: $Id: Titlebar.php 193500 2005-08-15 11:36:55Z toggg $
|
||||
* @link http://pear.php.net/package/Text_Wiki
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class renders a title bar in Plain.
|
||||
*
|
||||
* @category Text
|
||||
* @package Text_Wiki
|
||||
* @author Bertrand Gugger <bertrand@toggg.com>
|
||||
* @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
|
||||
*/
|
||||
class Text_Wiki_Render_Plain_Titlebar extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
if ($options['type'] == 'start') {
|
||||
return '***** ';
|
||||
}
|
||||
|
||||
if ($options['type'] == 'end') {
|
||||
return " *****\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
39
database/php/pear/Text/Wiki/Render/Plain/Toc.php
Normal file
39
database/php/pear/Text/Wiki/Render/Plain/Toc.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Toc extends Text_Wiki_Render {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
// type, count, level
|
||||
extract($options);
|
||||
|
||||
if ($type == 'item_start') {
|
||||
|
||||
// build some indenting spaces for the text
|
||||
$indent = ($level - 2) * 4;
|
||||
$pad = str_pad('', $indent);
|
||||
return $pad;
|
||||
}
|
||||
|
||||
if ($type == 'item_end') {
|
||||
return "\n";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
24
database/php/pear/Text/Wiki/Render/Plain/Tt.php
Normal file
24
database/php/pear/Text/Wiki/Render/Plain/Tt.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_tt extends Text_Wiki_Render {
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
23
database/php/pear/Text/Wiki/Render/Plain/Underline.php
Normal file
23
database/php/pear/Text/Wiki/Render/Plain/Underline.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Underline extends Text_Wiki_Render {
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
29
database/php/pear/Text/Wiki/Render/Plain/Url.php
Normal file
29
database/php/pear/Text/Wiki/Render/Plain/Url.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
|
||||
class Text_Wiki_Render_Plain_Url extends Text_Wiki_Render {
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into text matching the requested format.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
if ($options['type'] == 'start' || $options['type'] == 'end') {
|
||||
return '';
|
||||
} else {
|
||||
return $options['text'];
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
24
database/php/pear/Text/Wiki/Render/Plain/Wikilink.php
Normal file
24
database/php/pear/Text/Wiki/Render/Plain/Wikilink.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
class Text_Wiki_Render_Plain_Wikilink extends Text_Wiki_Render {
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Renders a token into plain text.
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
* @param array $options The "options" portion of the token (second
|
||||
* element).
|
||||
*
|
||||
* @return string The text rendered from the token options.
|
||||
*
|
||||
*/
|
||||
|
||||
function token($options)
|
||||
{
|
||||
return $options['text'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user