Source for file Phplookup.php
Documentation is available at Phplookup.php
// $Id: Phplookup.php,v 1.7 2004/09/25 19:05:14 pmjones Exp $
class Text_Wiki_Render_Xhtml_Phplookup extends Text_Wiki_Render {
* Renders a token into text matching the requested format.
* @param array $options The "options" portion of the token (second
* @return string The text rendered from the token options.
$text = trim($options['text']);
$css = $this->formatConf (' class="%s"', 'css');
// are we targeting another window?
$target = $this->getConf ('target', '');
// use a "popup" window. this is XHTML compliant, suggested by
// Aaron Kalin. uses the $target as the new window name.
$output .= " onclick=\"window.open(this.href, '$target');";
$output .= " return false;\"";
// take off the final parens for functions
if (substr($text, -2 ) == '()') {
$output .= " href=\"http://php.net/$q\">$text</a>";
Documentation generated on Mon, 11 Mar 2019 14:22:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|