@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phpmyadmin-ubuntu-m-2vcpu-16gb-blr1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Current Path :
/
var
/
www
/
html
/
-wp-content
/
plugins
/
query-monitor
/
classes
/
Path :
Upload File :
New :
File
Dir
/var/www/html/-wp-content/plugins/query-monitor/classes/Dispatchers.php
<?php /** * Container for dispatchers. * * @package query-monitor */ class QM_Dispatchers implements IteratorAggregate { private $items = array(); public function getIterator() { return new ArrayIterator( $this->items ); } public static function add( QM_Dispatcher $dispatcher ) { $dispatchers = self::init(); $dispatchers->items[ $dispatcher->id ] = $dispatcher; } public static function get( $id ) { $dispatchers = self::init(); if ( isset( $dispatchers->items[ $id ] ) ) { return $dispatchers->items[ $id ]; } return false; } public static function init() { static $instance; if ( ! $instance ) { $instance = new QM_Dispatchers(); } return $instance; } }