Source for file Function.php
Documentation is available at Function.php
// $Id: Function.php,v 1.3 2004/10/08 17:46:47 pmjones Exp $
class Text_Wiki_Render_Xhtml_Function extends Text_Wiki_Render {
// list separator for params and throws
// the "main" format string
'format_main' => '%access %return <b>%name</b> ( %params ) %throws',
// the looped format string for required params
'format_param' => '%type <i>%descr</i>',
// the looped format string for params with default values
'format_paramd' => '[%type <i>%descr</i> default %default]',
// the looped format string for throws
'format_throws' => '<b>throws</b> %type <i>%descr</i>'
* 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.
extract($options); // name, access, return, params, throws
// build the baseline output
$output = $this->conf['format_main'];
// build the set of params
foreach ($params as $key => $val) {
// is there a default value?
$tmp = $this->conf['format_paramd'];
$tmp = $this->conf['format_param'];
// add the param elements
// insert params into output
$tmp = implode($this->conf['list_sep'], $list);
// build the set of throws
foreach ($throws as $key => $val) {
$tmp = $this->conf['format_throws'];
// insert throws into output
$tmp = implode($this->conf['list_sep'], $list);
// close the div and return the output
Documentation generated on Mon, 11 Mar 2019 13:56:52 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|