Source for file Wikilink.php
Documentation is available at Wikilink.php
require_once 'Text/Wiki/Render.php';
'view_url' => 'http://example.com/index.php?page=%s',
'new_url' => 'http://example.com/new.php?page=%s',
* Renders a token into XHTML.
* @param array $options The "options" portion of the token (second
* @return string The text rendered from the token options.
// make nice variable names (page, anchor, text)
// are we checking page existence?
// yes, check against the page list
// convert *after* checking against page names so as not to mess
// up what the user typed and what we're checking.
$href = $this->getConf('view_url');
if (strpos($href, '%s') === false ) {
// use the old form (page-at-end)
$href = $href . $page . $anchor;
// use the new form (sprintf format string)
$href = sprintf($href, $page . $anchor);
// get the CSS class and generate output
return $text . '\footnote{' . $href . '}';
Documentation generated on Tue, 12 Mar 2019 21:49:23 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|