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

3
use yii\apidoc\helpers\Markdown;
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
use yii\apidoc\models\ClassDoc;
/**
 * @var ClassDoc $type
 * @var yii\web\View $this
 */

$events = $type->getNativeEvents();
if (empty($events)) {
	return;
} ?>
<h2>Event Details</h2>
<?php foreach($events as $event): ?>
	<div class="detailHeader" id="<?= $event->name.'-detail' ?>">
		<?php echo $event->name; ?>
		<span class="detailHeaderTag">
		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>*/ ?>

31
	<p><?= Markdown::process($event->description, $type); ?></p>
32 33 34 35

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

<?php endforeach; ?>