%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/public_html/vendor/cakephp/debug_kit/src/Template/Element/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/public_html/vendor/cakephp/debug_kit/src/Template/Element/sql_log_panel.ctp
<?php
/**
 * SQL Log Panel Element
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @since         DebugKit 0.1
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */

/**
 * @var \DebugKit\View\AjaxView $this
 * @var array $tables
 * @var \DebugKit\Database\Log\DebugLog[] $loggers
 */
$noOutput = true;

// Configure sqlformatter colours.
SqlFormatter::$quote_attributes = 'style="color: #004d40;"';
SqlFormatter::$backtick_quote_attributes = 'style="color: #26a69a;"';
SqlFormatter::$number_attributes = 'style="color: #ec407a;"';
SqlFormatter::$word_attributes = 'style="color: #9c27b0;"';
SqlFormatter::$pre_attributes = 'style="color: #222; background-color: transparent;"';
?>

<?php if (!empty($tables)): ?>
<h4><?= __d('debug_kit', 'Generated Models') ?></h4>
<p class="warning"><?= __d('debug_kit', 'The following Table objects used {0} instead of a concrete class:', '<code>Cake\ORM\Table</code>') ?></p>
<ul class="list">
<?php foreach ($tables as $table): ?>
    <li><?= h($table) ?></li>
<?php endforeach ?>
</ul>
<hr />
<?php endif; ?>

<?php if (!empty($loggers)): ?>
    <?php foreach ($loggers as $logger): ?>
    <?php
    $queries = $logger->queries();
    if (empty($queries)):
        continue;
    endif;

    $noOutput = false;
    ?>
    <div class="sql-log-panel-query-log">
        <h4><?= h($logger->name()) ?></h4>
        <h5>
        <?= __d(
            'debug_kit',
            'Total Time: {0} ms &mdash; Total Queries: {1} &mdash; Total Rows: {2}',
            $logger->totalTime(),
            count($queries),
            $logger->totalRows()
            );
        ?>
        </h5>

        <table cellspacing="0" cellpadding="0">
            <thead>
                <tr>
                    <th><?= __d('debug_kit', 'Query') ?></th>
                    <th><?= __d('debug_kit', 'Rows') ?></th>
                    <th><?= __d('debug_kit', 'Took (ms)') ?></th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($queries as $query): ?>
                <tr>
                    <td><?= SqlFormatter::format($query['query']) ?></td>
                    <td><?= h($query['rows']) ?></td>
                    <td><?= h($query['took']) ?></td>
                </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
    </div>
    <?php endforeach; ?>
<?php endif; ?>

<?php if ($noOutput): ?>
<div class="warning"><?= __d('debug_kit', 'No active database connections') ?></div>
<?php endif ?>

VaKeR 2022