Skip to content

Commit

Permalink
added full output for plain text on the Function rule
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.php.net/repository/pear/packages/Text_Wiki/trunk@170079 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Paul M Jones committed Oct 8, 2004
1 parent cb89fea commit 4600dcf
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Text/Wiki/Render/Plain/Function.php
Expand Up @@ -17,7 +17,21 @@ class Text_Wiki_Render_Plain_Function extends Text_Wiki_Render {

function token($options)
{
return "";
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;
}
}
?>

0 comments on commit 4600dcf

Please sign in to comment.