index.php 984 Bytes
Newer Older
1 2 3 4 5
<?php

use yii\apidoc\models\ClassDoc;
use yii\apidoc\models\InterfaceDoc;
use yii\apidoc\models\TraitDoc;
AlexGx committed
6

7 8 9
/**
 * @var ClassDoc[]|InterfaceDoc[]|TraitDoc[] $types
 * @var yii\web\View $this
10
 * @var \yii\apidoc\templates\html\ApiRenderer $renderer
11 12
 */

13 14
$renderer = $this->context;

15
if (isset($readme)) {
16
    echo \yii\apidoc\helpers\ApiMarkdown::process($readme);
17 18
}

19 20 21
?><h1>Class Reference</h1>

<table class="summaryTable docIndex table table-bordered table-striped table-hover">
22 23 24 25 26 27 28 29 30
    <colgroup>
        <col class="col-package" />
        <col class="col-class" />
        <col class="col-description" />
    </colgroup>
    <tr>
        <th>Class</th>
        <th>Description</th>
    </tr>
31 32
<?php
ksort($types);
Alexander Mohorev committed
33
foreach ($types as $i => $class):
34
?>
35 36 37 38
    <tr>
        <td><?= $renderer->createTypeLink($class, $class, $class->name) ?></td>
        <td><?= \yii\apidoc\helpers\ApiMarkdown::process($class->shortDescription, $class, true) ?></td>
    </tr>
39 40
<?php endforeach; ?>
</table>