You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
984 B
40 lines
984 B
11 years ago
|
<?php
|
||
|
|
||
|
use yii\apidoc\models\ClassDoc;
|
||
|
/**
|
||
11 years ago
|
* @var ClassDoc $type
|
||
11 years ago
|
* @var yii\web\View $this
|
||
|
*/
|
||
|
|
||
11 years ago
|
if (empty($type->events)) {
|
||
11 years ago
|
return;
|
||
|
} ?>
|
||
|
<div class="summary docEvent">
|
||
|
<h2>Events</h2>
|
||
|
|
||
|
<p><a href="#" class="toggle">Hide inherited events</a></p>
|
||
|
|
||
|
<table class="summaryTable">
|
||
|
<colgroup>
|
||
|
<col class="col-event" />
|
||
|
<col class="col-description" />
|
||
|
<col class="col-defined" />
|
||
|
</colgroup>
|
||
|
<tr>
|
||
11 years ago
|
<th>Event</th><th>Type</th><th>Description</th><th>Defined By</th>
|
||
11 years ago
|
</tr>
|
||
11 years ago
|
<?php foreach($type->events as $event): ?>
|
||
|
<tr<?= $event->definedBy != $type->name ? ' class="inherited"' : '' ?> id="<?= $event->name ?>">
|
||
11 years ago
|
<td><?= $this->context->subjectLink($event) ?></td>
|
||
|
<td><?= $this->context->typeLink($event->types) ?></td>
|
||
|
<td>
|
||
|
<?= $event->shortDescription ?>
|
||
|
<?php if(!empty($event->since)): ?>
|
||
|
(available since version <?php echo $event->since; ?>)
|
||
|
<?php endif; ?>
|
||
|
</td>
|
||
|
<td><?= $this->context->typeLink($event->definedBy) ?></td>
|
||
11 years ago
|
</tr>
|
||
|
<?php endforeach; ?>
|
||
|
</table>
|
||
|
</div>
|