mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-28 21:39:47 +08:00
APIDOC beautification
This commit is contained in:
@@ -18,27 +18,28 @@ if (empty($type->constants)) {
|
||||
$constants = $type->constants;
|
||||
ArrayHelper::multisort($constants, 'name');
|
||||
?>
|
||||
<div class="summary docConst">
|
||||
<h2>Constants</h2>
|
||||
<div class="summary doc-const">
|
||||
<h2>Constants</h2>
|
||||
|
||||
<p><a href="#" class="toggle">Hide inherited constants</a></p>
|
||||
<p><a href="#" class="toggle">Hide inherited constants</a></p>
|
||||
|
||||
<table class="summaryTable table table-striped table-bordered table-hover">
|
||||
<colgroup>
|
||||
<col class="col-const" />
|
||||
<col class="col-description" />
|
||||
<col class="col-defined" />
|
||||
</colgroup>
|
||||
<tr>
|
||||
<th>Constant</th><th>Value</th><th>Description</th><th>Defined By</th>
|
||||
</tr>
|
||||
<?php foreach ($constants as $constant): ?>
|
||||
<tr<?= $constant->definedBy != $type->name ? ' class="inherited"' : '' ?> id="<?= $constant->name ?>">
|
||||
<td><?= $constant->name ?><a name="<?= $constant->name ?>-detail"></a></td>
|
||||
<td><?= $constant->value ?></td>
|
||||
<td><?= ApiMarkdown::process($constant->shortDescription . "\n" . $constant->description, $constant->definedBy, true) ?></td>
|
||||
<td><?= $renderer->createTypeLink($constant->definedBy) ?></td>
|
||||
<table class="summary-table table table-striped table-bordered table-hover">
|
||||
<colgroup>
|
||||
<col class="col-const" />
|
||||
<col class="col-value" />
|
||||
<col class="col-description" />
|
||||
<col class="col-defined" />
|
||||
</colgroup>
|
||||
<tr>
|
||||
<th>Constant</th><th>Value</th><th>Description</th><th>Defined By</th>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php foreach ($constants as $constant): ?>
|
||||
<tr<?= $constant->definedBy != $type->name ? ' class="inherited"' : '' ?> id="<?= $constant->name ?>">
|
||||
<td><?= $constant->name ?><a name="<?= $constant->name ?>-detail"></a></td>
|
||||
<td><?= $constant->value ?></td>
|
||||
<td><?= ApiMarkdown::process($constant->shortDescription . "\n" . $constant->description, $constant->definedBy, true) ?></td>
|
||||
<td><?= $renderer->createTypeLink($constant->definedBy) ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user