eventDetails.php 842 Bytes
Newer Older
1 2
<?php

3
use yii\apidoc\helpers\ApiMarkdown;
4
use yii\apidoc\models\ClassDoc;
5 6
use yii\helpers\ArrayHelper;

7 8 9 10 11 12 13 14
/**
 * @var ClassDoc $type
 * @var yii\web\View $this
 */

$events = $type->getNativeEvents();
if (empty($events)) {
	return;
15 16 17
}
ArrayHelper::multisort($events, 'name');
?>
18 19
<h2>Event Details</h2>
<?php foreach($events as $event): ?>
20
	<div class="detailHeader h3" id="<?= $event->name.'-detail' ?>">
21
		<?php echo $event->name; ?>
22
		<span class="detailHeaderTag small">
23 24 25 26 27 28 29 30 31 32 33 34
		event
		<?php if(!empty($event->since)): ?>
			(available since version <?= $event->since ?>)
		<?php endif; ?>
		</span>
	</div>

	<?php /*
	<div class="signature">
		<?php echo $event->trigger->signature; ?>
	</div>*/ ?>

35
	<p><?= ApiMarkdown::process($event->description, $type); ?></p>
36 37 38 39

	<?= $this->render('seeAlso', ['object' => $event]); ?>

<?php endforeach; ?>