[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/layouts/joomla/error/ -> backtrace.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  Layout
   6   *
   7   * @copyright   (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  use Joomla\CMS\HTML\HTMLHelper;
  14  
  15  /** @var $displayData array */
  16  $backtraceList = $displayData['backtrace'];
  17  
  18  if (!$backtraceList) {
  19      return;
  20  }
  21  
  22  $class = $displayData['class'] ?? 'table table-striped table-bordered';
  23  ?>
  24  <table class="<?php echo $class ?>">
  25      <tr>
  26          <td colspan="3">
  27              <strong>Call stack</strong>
  28          </td>
  29      </tr>
  30  
  31      <tr>
  32          <td>
  33              <strong>#</strong>
  34          </td>
  35          <td>
  36              <strong>Function</strong>
  37          </td>
  38          <td>
  39              <strong>Location</strong>
  40          </td>
  41      </tr>
  42  
  43      <?php foreach ($backtraceList as $k => $backtrace) : ?>
  44      <tr>
  45          <td>
  46              <?php echo $k + 1; ?>
  47          </td>
  48  
  49          <?php if (isset($backtrace['class'])) : ?>
  50          <td>
  51              <?php echo $backtrace['class'] . $backtrace['type'] . $backtrace['function'] . '()'; ?>
  52          </td>
  53          <?php else : ?>
  54          <td>
  55              <?php echo $backtrace['function'] . '()'; ?>
  56          </td>
  57          <?php endif; ?>
  58  
  59          <?php if (isset($backtrace['file'])) : ?>
  60          <td>
  61              <?php echo HTMLHelper::_('debug.xdebuglink', $backtrace['file'], $backtrace['line']); ?>
  62          </td>
  63          <?php else : ?>
  64          <td>
  65              &#160;
  66          </td>
  67          <?php endif; ?>
  68      </tr>
  69      <?php endforeach; ?>
  70  </table>


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