/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/debug_kit/src/Panel
NameSizeModeActions
CachePanel.php26480644editdlrm
DeprecationsPanel.php43480644editdlrm
EnvironmentPanel.php26560644editdlrm
HistoryPanel.php12160644editdlrm
IncludePanel.php33980644editdlrm
LogPanel.php15550644editdlrm
MailPanel.php27390644editdlrm
PackagesPanel.php12900644editdlrm
PanelRegistry.php27410644editdlrm
RequestPanel.php18550644editdlrm
RoutesPanel.php16090644editdlrm
SessionPanel.php11250644editdlrm
SqlLogPanel.php30720644editdlrm
TimerPanel.php46980644editdlrm
VariablesPanel.php38240644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/debug_kit/src/Panel/SqlLogPanel.php (3072B)
configName() === 'debug_kit' || !$connection instanceof ConnectionInterface ) { continue; } $logger = null; if ($connection->isQueryLoggingEnabled()) { $logger = $connection->getLogger(); } if ($logger instanceof DebugLog) { $logger->setIncludeSchema($includeSchemaReflection); $this->_loggers[] = $logger; continue; } $logger = new DebugLog($logger, $name, $includeSchemaReflection); $connection->enableQueryLogging(true); $connection->setLogger($logger); $this->_loggers[] = $logger; } } /** * Get the data this panel wants to store. * * @return array */ public function data() { return [ 'tables' => array_map(function (Table $table) { return $table->getAlias(); }, $this->getTableLocator()->genericInstances()), 'loggers' => $this->_loggers, ]; } /** * Get summary data from the queries run. * * @return string */ public function summary() { $count = $time = 0; foreach ($this->_loggers as $logger) { $count += count($logger->queries()); $time += $logger->totalTime(); } if (!$count) { return '0'; } return "$count / $time ms"; } }