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.
46 lines
1.6 KiB
46 lines
1.6 KiB
12 years ago
|
<?php
|
||
|
/**
|
||
12 years ago
|
* @var string|null $file
|
||
|
* @var integer|null $line
|
||
|
* @var string|null $class
|
||
|
* @var string|null $method
|
||
12 years ago
|
* @var integer $index
|
||
|
* @var string[] $lines
|
||
|
* @var integer $begin
|
||
|
* @var integer $end
|
||
11 years ago
|
* @var \yii\base\ErrorHandler $handler
|
||
12 years ago
|
*/
|
||
|
?>
|
||
11 years ago
|
<li class="<?php if (!$handler->isCoreFile($file) || $index === 1) echo 'application'; ?> call-stack-item"
|
||
11 years ago
|
data-line="<?= (int)($line - $begin) ?>">
|
||
12 years ago
|
<div class="element-wrap">
|
||
|
<div class="element">
|
||
11 years ago
|
<span class="item-number"><?= (int)$index ?>.</span>
|
||
11 years ago
|
<span class="text"><?php if ($file !== null) echo 'in ' . $handler->htmlEncode($file); ?></span>
|
||
12 years ago
|
<?php if ($method !== null): ?>
|
||
|
<span class="call">
|
||
|
<?php if ($file !== null) echo '–' ?>
|
||
11 years ago
|
<?php if ($class !== null) echo $handler->addTypeLinks($class) . '::'; ?><?= $handler->addTypeLinks($method . '()') ?>
|
||
12 years ago
|
</span>
|
||
|
<?php endif; ?>
|
||
|
<span class="at"><?php if ($line !== null) echo 'at line'; ?></span>
|
||
12 years ago
|
<span class="line"><?php if ($line !== null) echo (int)$line + 1; ?></span>
|
||
12 years ago
|
</div>
|
||
|
</div>
|
||
12 years ago
|
<?php if (!empty($lines)): ?>
|
||
|
<div class="code-wrap">
|
||
12 years ago
|
<div class="error-line"></div>
|
||
|
<?php for ($i = $begin; $i <= $end; ++$i): ?><div class="hover-line"></div><?php endfor; ?>
|
||
12 years ago
|
<div class="code">
|
||
11 years ago
|
<?php for ($i = $begin; $i <= $end; ++$i): ?><span class="lines-item"><?= (int)($i + 1) ?></span><?php endfor; ?>
|
||
12 years ago
|
<pre><?php
|
||
|
// fill empty lines with a whitespace to avoid rendering problems in opera
|
||
|
for ($i = $begin; $i <= $end; ++$i) {
|
||
11 years ago
|
echo (trim($lines[$i]) == '') ? " \n" : $handler->htmlEncode($lines[$i]);
|
||
12 years ago
|
}
|
||
|
?></pre>
|
||
12 years ago
|
</div>
|
||
12 years ago
|
</div>
|
||
12 years ago
|
<?php endif; ?>
|
||
12 years ago
|
</li>
|