| Server IP : 145.239.37.162 / Your IP : 216.73.217.81 Web Server : Apache System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaa ( 38250) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaa/www2024/wp-content/plugins/query-monitor/classes/ |
Upload File : |
<?php declare(strict_types = 1);
/**
* Mock 'Debug Bar' panel class.
*
* @package query-monitor
*/
abstract class Debug_Bar_Panel {
/**
* @var string
*/
public $_title = '';
/**
* @var bool
*/
public $_visible = true;
/**
* @param string $title
*/
public function __construct( $title = '' ) {
$this->title( $title );
if ( $this->init() === false ) {
$this->set_visible( false );
return;
}
add_filter( 'debug_bar_classes', array( $this, 'debug_bar_classes' ) );
}
/**
* Initializes the panel.
*
* @return false|void
*/
public function init() {}
/**
* @return void
*/
public function prerender() {}
/**
* Renders the panel.
*
* @return void
*/
public function render() {}
/**
* @return bool
*/
public function is_visible() {
return $this->_visible;
}
/**
* @param bool $visible
* @return void
*/
public function set_visible( $visible ) {
$this->_visible = $visible;
}
/**
* @param string|null $title
* @return string|void
*/
public function title( $title = null ) {
if ( ! isset( $title ) ) {
return $this->_title;
}
$this->_title = $title;
}
/**
* @param array<int, string> $classes
* @return array<int, string>
*/
public function debug_bar_classes( $classes ) {
return $classes;
}
/**
* @param string $title
* @return void
*/
public function Debug_Bar_Panel( $title = '' ) {
self::__construct( $title );
}
}