3 // $Id: Function.php,v 1.3 2004/10/08 17:46:47 pmjones Exp $
5 class Text_Wiki_Render_Plain_Function
extends Text_Wiki_Render
{
9 * Renders a token into text matching the requested format.
13 * @param array $options The "options" portion of the token (second
16 * @return string The text rendered from the token options.
20 function token($options)
22 extract($options); // access, return, name, params, throws
24 $output = "$access $return $name ( ";
26 foreach ($params as $key => $val) {
27 $output .= "{$val['type']} {$val['descr']} {$val['default']} ";
32 foreach ($throws as $key => $val) {
33 $output .= "{$val['type']} {$val['descr']} ";