index.php 985 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 $types ClassDoc[]|InterfaceDoc[]|TraitDoc[] */
/* @var $this yii\web\View */
/* @var $renderer \yii\apidoc\templates\html\ApiRenderer */
10

11 12
$renderer = $this->context;

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

17 18 19
?><h1>Class Reference</h1>

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