function RenderShortArgs($Tags) { foreach ($Tags as $Tag) { $TagName = $Tag[0]; $TagValue = $Tag[1]; if (strncmp($TagName, "param:", 6) !== 0) { continue; } echo '<dt class="mono">'; echo htmlspecialchars(substr($TagName, 6)); echo '</dt>'; echo '<dd>'; if (empty($TagValue)) { echo '<i class="text-muted">No description.</i>'; } else { RenderDescription($TagValue); } echo '</dd>'; } }
</span></h4> <div class="table-responsive"> <table class="table table-bordered table-hover"> <thead> <tr> <th>Name</th> <th>Description</th> </tr> </thead> <?php foreach ($PageEnum['entries'] as $EnumValue) { echo '<tr>'; echo '<td class="col-md-2">' . htmlspecialchars($EnumValue['name']) . '</td>'; echo '<td>'; RenderDescription($EnumValue['brief']); echo '</td>'; echo '</tr>'; } ?> </table> </div> <?php } if (isset($Data['tags'])) { RenderTags($Data['tags']); } ?> <?php require __DIR__ . '/footer.php';
if (empty($TypeInfo['brief'])) { echo '<p class="text-muted">This type has no description.</p>'; } else { RenderDescription($TypeInfo['brief']); } echo '<h4 class="sub-header2">Parameters</h4>'; if (isset($TypeInfo['tags'])) { RenderShortArgs($TypeInfo['tags']); // TODO: this is just a temporary hack // TODO: comment tags are not properly parsed for types (cc @dvander) foreach ($TypeInfo['tags'] as $Tag) { if (strncmp($Tag[0], "param:", 6) === 0) { continue; } echo '<div class="bs-callout bs-callout-danger" style="padding:0;border:0"><h4>' . htmlspecialchars($Tag[0]) . '</h4>'; RenderDescription($Tag[1]); echo '</div>'; } } echo '</div>'; } } else { if ($PageType['kind'] === 'typedef') { ?> <pre class="syntax"><span class="type">typedef</span> <?php echo $PageType['name'] . ' = ' . HighlightTypes($Data['type'], $Data['tags'], []); ?> </pre> <?php
<?php $PropertyName = $PageProperty['class_name'] . '.' . $PageProperty['name']; ?> <h1 class="page-header"><?php echo htmlspecialchars($PropertyName); ?> Property</h1> <?php if (empty($PageProperty['brief'])) { ?> <p class="text-muted">This property has no description.</p> <?php } else { RenderDescription($PageProperty['brief']); } ?> <h4 class="sub-header2">Usage</h4> <table class="table table-condensed table-bordered" style="width: auto;"> <tr> <td><strong>Type</strong></td> <?php if (isset($Types[$Type])) { ?> <td><a href="<?php echo $BaseURL . $Types[$Type] . '/' . $Type; ?> " class="type"><?php echo htmlspecialchars($PageProperty['type']);
<div class="table-responsive"> <table class="table table-bordered table-hover"> <thead> <tr> <th>Function</th> <th>Description</th> </tr> </thead> <?php foreach ($PageFunctions as $Function) { $URL = $BaseURL . $CurrentOpenFile . '/' . htmlspecialchars($Function['name']); echo '<tr><td class="col-md-2 mono">'; echo '<a href="' . $URL . '">' . htmlspecialchars($Function['name']) . '</a>'; echo '</td>'; echo '<td>'; RenderDescription($Function['brief'], true); echo '</td></tr>'; } ?> </table> </div> <?php } if (!$FoundAny) { ?> <div class="bs-callout bs-callout-danger"> <h4>This file is empty</h4> <p>This include file has no types, functions, or constants that we could display. Sorry about that.</p> <p> </p> <p><a href="<?php echo $BaseURL . $CurrentOpenFile;
echo '</dd>'; } ?> </dl> <?php } ?> <?php if (isset($Data['return'])) { echo '<div class="bs-callout bs-callout-info"><h4>Return Value</h4>'; if (empty($Data['return']['doc'])) { echo '<p class="text-muted">No description.</p>'; } else { RenderDescription($Data['return']['doc']); } echo '</div>'; } if (isset($Data['error'])) { echo '<div class="bs-callout bs-callout-danger"><h4>Errors</h4>'; RenderDescription($Data['error']); echo '</div>'; } ?> <?php RenderTags($OtherTags); ?> <?php require __DIR__ . '/footer.php';
<tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> </thead> <?php foreach ($PageClass['properties'] as $Property) { $URL = $BaseURL . $CurrentOpenFile . '/' . htmlspecialchars($PageClass['name']) . '/' . htmlspecialchars($Property['name']); echo '<tr><td class="col-md-2 mono">'; echo '<a href="' . $URL . '">' . htmlspecialchars($Property['name']) . '</a>'; echo '</td>'; $Type = NormalizeType($Property['type']); if (isset($Types[$Type])) { echo '<td class="col-md-1 mono"><a href="' . $BaseURL . $Types[$Type] . '/' . $Type . '" class="type">' . htmlspecialchars($Property['type']) . '</a></td>'; } else { echo '<td class="col-md-1 mono type">' . htmlspecialchars($Property['type']) . '</td>'; } echo '<td>'; RenderDescription($Property['brief'], true); echo '</td></tr>'; } ?> </table> </div> <?php } ?> <?php require __DIR__ . '/footer.php';