function showClass($class_data) { global $source; if ($class_data['name'][0] == '_') { return; } ?> <?php echo strip_tags($class_data['desc']); ?> <?php showArguments($class_data['args']); showExample($class_data['example']); if ($class_data['methods']) { print "===Methods===\n\n"; foreach ($class_data['methods'] as $func) { showFunction($func, $class_data['name']); } } ?> <?php }
function showClass($class_data) { global $source; if ($class_data['name'][0] == '_') { return; } ?> <div class="class" id="class-<?php echo strtolower($class_data['name']); ?> "> <h1><?php echo $class_data['name']; ?> </h1> <p><?php echo $class_data['desc']; ?> </p> <?php showExample($class_data['example']); if ($class_data['methods']) { print "<h2>Methods</h2>\n<ul>\n"; foreach ($class_data['methods'] as $func) { $name = $func['name']; $link = "#function-" . strtolower(($class_data['name'] ? $class_data['name'] . '-' : '') . $func['name']); ?> <li><a href="<?php echo $link; ?> "><?php echo $name; if ($func['type'] == 'constructor') { print " [Constructor]"; } ?> </a></li> <?php } print "</ul>\n\n"; foreach ($class_data['methods'] as $func) { showFunction($func, $class_data['name']); } } ?> </div> <?php }