[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/symfony/error-handler/Resources/views/ -> trace.html.php (source)

   1  <div class="trace-line-header break-long-words <?= $trace['file'] ? 'sf-toggle' : ''; ?>" data-toggle-selector="#trace-html-<?= $prefix; ?>-<?= $i; ?>" data-toggle-initial="<?= 'expanded' === $style ? 'display' : ''; ?>">
   2      <?php if ($trace['file']) { ?>
   3          <span class="icon icon-close"><?= $this->include('assets/images/icon-minus-square.svg'); ?></span>
   4          <span class="icon icon-open"><?= $this->include('assets/images/icon-plus-square.svg'); ?></span>
   5      <?php } ?>
   6  
   7      <?php if ('compact' !== $style && $trace['function']) { ?>
   8          <span class="trace-class"><?= $this->abbrClass($trace['class']); ?></span><?php if ($trace['type']) { ?><span class="trace-type"><?= $trace['type']; ?></span><?php } ?><span class="trace-method"><?= $trace['function']; ?></span><?php if (isset($trace['args'])) { ?><span class="trace-arguments">(<?= $this->formatArgs($trace['args']); ?>)</span><?php } ?>
   9      <?php } ?>
  10  
  11      <?php if ($trace['file']) { ?>
  12          <?php
  13          $lineNumber = $trace['line'] ?: 1;
  14          $fileLink = $this->getFileLink($trace['file'], $lineNumber);
  15          $filePath = strtr(strip_tags($this->formatFile($trace['file'], $lineNumber)), [' at line '.$lineNumber => '']);
  16          $filePathParts = explode(\DIRECTORY_SEPARATOR, $filePath);
  17          ?>
  18          <span class="block trace-file-path">
  19              in
  20              <a href="<?= $fileLink; ?>">
  21                  <?= implode(\DIRECTORY_SEPARATOR, array_slice($filePathParts, 0, -1)).\DIRECTORY_SEPARATOR; ?><strong><?= end($filePathParts); ?></strong>
  22              </a>
  23              <?php if ('compact' === $style && $trace['function']) { ?>
  24                  <span class="trace-type"><?= $trace['type']; ?></span>
  25                  <span class="trace-method"><?= $trace['function']; ?></span>
  26              <?php } ?>
  27              (line <?= $lineNumber; ?>)
  28              <span class="icon icon-copy hidden" data-clipboard-text="<?php echo implode(\DIRECTORY_SEPARATOR, $filePathParts).':'.$lineNumber; ?>">
  29                  <?php echo $this->include('assets/images/icon-copy.svg'); ?>
  30              </span>
  31          </span>
  32      <?php } ?>
  33  </div>
  34  <?php if ($trace['file']) { ?>
  35      <div id="trace-html-<?= $prefix.'-'.$i; ?>" class="trace-code sf-toggle-content">
  36          <?= strtr($this->fileExcerpt($trace['file'], $trace['line'], 5), [
  37              '#DD0000' => 'var(--highlight-string)',
  38              '#007700' => 'var(--highlight-keyword)',
  39              '#0000BB' => 'var(--highlight-default)',
  40              '#FF8000' => 'var(--highlight-comment)',
  41          ]); ?>
  42      </div>
  43  <?php } ?>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer