";
foreach($methodList as $method) {
$name = $method[name];
$author = $method[author] ? $method[author] : $unknown;
$version = $method[version] ? $method[version] : $unknown;
$desc = $method[purpose] ? $method[purpose] : $unknown;
$sigs = $method[signatures];
$buf .= "$name |
";
$buf .= "" . field("Signature(s)", get_sigs($method), 3) . "
";
$buf .= "" . field("Author", $author, 2) . field("Version", $version) . "
";
$buf .= "" . field("Purpose", $desc, 3) . "
";
$exclude_list = array(
"see",
"signatures",
"purpose",
"version",
"author",
"name"
);
foreach($method as $key => $val) {
if (!in_array($key, $exclude_list)) {
if (is_array($val)) {
$buf .= "" . ucfirst($key) . " |
";
foreach($val as $key2 => $desc) {
if (gettype($desc) === "string") {
if (gettype($key2) !== "string") {
$key2 = false;
}
$buf .= "" . field(ucfirst($key2), $desc, 3) . "
";
}
}
}
else {
$buf .= "" . field(ucfirst($key), $val, 3) . "
";
}
}
}
if ($sigs) {
$bmultiple = count($sigs) > 1;
foreach($sigs as $sig) {
if ($bmultiple) {
$count ++;
$buf .= "Signature $count: " . get_sig($name, $sig) . " |
";
}
if ($sig[params]) {
$buf .= "Parameters |
";
$buf .= "";
$buf .= do_params($sig[params], false, false);
$buf .= " |
";
}
if ($sig[returns]) {
$buf .= "Return Value(s) |
";
$buf .= "";
$buf .= do_params($sig[returns], false, false);
$buf .= " |
";
}
}
}
if ($method[see]) {
$buf .= "See Also |
";
foreach($method[see] as $name => $desc) {
if ($method_hash[$name]) {
$name = "$name";
}
$buf .= "" . field($name, $desc, 3) . "
";
}
}
}
$buf .= "