callStackItem.php 1.12 KB
Newer Older
resurtm committed
1 2 3 4 5 6 7 8 9
<?php
/**
 * @var \yii\base\View $this
 * @var string $file
 * @var integer $line
 * @var integer $index
 * @var string[] $lines
 * @var integer $begin
 * @var integer $end
10
 * @var \yii\base\ErrorHandler $context
resurtm committed
11
 */
12
$context = $this->context;
resurtm committed
13 14
?>

15
<li class="<?php if (!$context->isCoreFile($file)) echo 'application'; ?> call-stack-item">
resurtm committed
16 17 18
	<div class="element-wrap">
		<div class="element">
			<span class="number"><?php echo (int)$index; ?>.</span>
19
			<span class="text">in <?php echo $context->htmlEncode($file); ?></span>
resurtm committed
20 21 22 23 24 25 26 27 28 29 30
			<span class="at">at line</span>
			<span class="line"><?php echo (int)$line; ?></span>
		</div>
	</div>
	<div class="code-wrap">
		<div class="error-line" style="top: <?php echo 18 * (int)($line - $begin); ?>px;"></div>
		<?php for ($i = $begin; $i <= $end; ++$i): ?>
			<div class="hover-line" style="top: <?php echo 18 * (int)($i - $begin); ?>px;"></div>
		<?php endfor; ?>
		<div class="code">
			<span class="lines"><?php for ($i = $begin; $i <= $end; ++$i) echo (int)$i . '<br/>'; ?></span>
31
			<pre><?php for ($i = $begin; $i <= $end; ++$i) echo $context->htmlEncode($lines[$i]); ?></pre>
resurtm committed
32 33 34
		</div>
	</div>
</li>