/
home
/
vianto5
/
ceibaresidencial.mx
/
wp-content
/
plugins
/
query-monitor
/
classes
/
/home/vianto5/ceibaresidencial.mx/wp-content/plugins/query-monitor/classes
mkdir
upload
Name
Size
Mode
Actions
Activation.php
3038
0644
edit
dl
rm
ArrayAccess.php
1105
0644
edit
dl
rm
Backtrace.php
22887
0644
edit
dl
rm
Backtrace_Frame.php
870
0644
edit
dl
rm
CLI.php
1568
0644
edit
dl
rm
Collector.php
8707
0644
edit
dl
rm
Collectors.php
3445
0644
edit
dl
rm
Collector_Assets.php
14500
0644
edit
dl
rm
Component.php
3866
0644
edit
dl
rm
Component_Altis_Vendor.php
356
0644
edit
dl
rm
Component_Core.php
263
0644
edit
dl
rm
Component_Dropin.php
346
0644
edit
dl
rm
Component_MU_Plugin.php
333
0644
edit
dl
rm
Component_MU_Vendor.php
342
0644
edit
dl
rm
Component_Other.php
170
0644
edit
dl
rm
Component_PHP.php
221
0644
edit
dl
rm
Component_Plugin.php
324
0644
edit
dl
rm
Component_Stylesheet.php
341
0644
edit
dl
rm
Component_Template.php
278
0644
edit
dl
rm
Component_Unknown.php
866
0644
edit
dl
rm
Component_VIP_Plugin.php
346
0644
edit
dl
rm
Data.php
428
0644
edit
dl
rm
DataCollector.php
396
0644
edit
dl
rm
DB.php
1546
0644
edit
dl
rm
debug_bar.php
1713
0644
edit
dl
rm
debug_bar_panel.php
1446
0644
edit
dl
rm
Deprecated_Argument_Run.php
1035
0644
edit
dl
rm
Deprecated_Class_Run.php
966
0644
edit
dl
rm
Deprecated_Constructor_Run.php
1144
0644
edit
dl
rm
Deprecated_File_Included.php
1095
0644
edit
dl
rm
Deprecated_Function_Run.php
983
0644
edit
dl
rm
Deprecated_Hook_Run.php
1098
0644
edit
dl
rm
Dispatcher.php
5097
0644
edit
dl
rm
Dispatchers.php
1241
0644
edit
dl
rm
Doing_It_Wrong_Run.php
892
0644
edit
dl
rm
Frame_Registry.php
1456
0644
edit
dl
rm
Hook.php
1379
0644
edit
dl
rm
Output.php
923
0644
edit
dl
rm
PHP.php
1397
0644
edit
dl
rm
Plugin.php
2400
0644
edit
dl
rm
QM.php
4451
0644
edit
dl
rm
QueryMonitor.php
8705
0644
edit
dl
rm
Timer.php
3326
0644
edit
dl
rm
Util.php
19901
0644
edit
dl
rm
Wrong.php
822
0644
edit
dl
rm
Edit:
/home/vianto5/ceibaresidencial.mx/wp-content/plugins/query-monitor/classes/Component.php
(3866B)
<?php declare(strict_types = 1); /** * Class representing a component. * * @package query-monitor */ /** * @phpstan-type QM_Component_Array array{ * type: string, * name: string, * context: string, * } * @property-read string $name */ class QM_Component implements JsonSerializable { public const TYPE_ALTIS_VENDOR = 'altis-vendor'; public const TYPE_CORE = 'core'; public const TYPE_DROPIN = 'dropin'; public const TYPE_MU_PLUGIN = 'mu-plugin'; public const TYPE_MU_VENDOR = 'mu-vendor'; public const TYPE_OTHER = 'other'; public const TYPE_PHP = 'php'; public const TYPE_PLUGIN = 'plugin'; public const TYPE_STYLESHEET = 'stylesheet'; public const TYPE_TEMPLATE = 'template'; public const TYPE_THEME = 'theme'; public const TYPE_UNKNOWN = 'unknown'; public const TYPE_VIP_CLIENT_MU_PLUGIN = 'vip-client-mu-plugin'; public const TYPE_VIP_PLUGIN = 'vip-plugin'; public const TYPE_VIP_SHARED_PLUGIN = 'vip-shared-plugin'; /** * @var string */ public $type; /** * @var string */ public $context; /** * @var string */ public $file; public function __construct( string $context, string $file = '', string $type = '' ) { $this->context = $context; $this->file = $file; $this->type = $type; } public function get_name(): string { if ( isset( $this->name ) ) { return $this->name; } return sprintf( $this->type, $this->context ); } final public function get_id(): string { return "{$this->type}-{$this->context}"; } final public function is_plugin(): bool { return ( $this->type === self::TYPE_PLUGIN ); } final public function is_core(): bool { return ( $this->type === self::TYPE_CORE ); } /** * @param QM_Component[] $components */ final public static function has_non_core( array $components ): bool { foreach ( $components as $component ) { if ( ! $component->is_core() ) { return true; } } return false; } final public static function from( string $type, string $context = '', string $file = '' ): QM_Component { switch ( $type ) { case self::TYPE_ALTIS_VENDOR: return new QM_Component_Altis_Vendor( $context, $file, $type ); case self::TYPE_PLUGIN: return new QM_Component_Plugin( $context, $file, $type ); case self::TYPE_MU_PLUGIN: return new QM_Component_MU_Plugin( $context, $file, $type ); case self::TYPE_MU_VENDOR: return new QM_Component_MU_Vendor( $context, $file, $type ); case self::TYPE_VIP_SHARED_PLUGIN: case self::TYPE_VIP_PLUGIN: case self::TYPE_VIP_CLIENT_MU_PLUGIN: return new QM_Component_VIP_Plugin( $context, $file, $type ); case self::TYPE_STYLESHEET: return new QM_Component_Stylesheet( $context, $file, $type ); case self::TYPE_TEMPLATE: return new QM_Component_Template( $context, $file, $type ); case self::TYPE_OTHER: return new QM_Component_Other( $context, $file, $type ); case self::TYPE_CORE: return new QM_Component_Core( $context, $file, $type ); case self::TYPE_DROPIN: return new QM_Component_Dropin( $context, $file, $type ); case self::TYPE_PHP: return new QM_Component_PHP( $context, $file, $type ); } return new QM_Component_Unknown( $context, $file, $type ); } /** * @return mixed */ public function __get( string $key ) { if ( 'name' === $key ) { return $this->get_name(); } } /** * @phpstan-return QM_Component_Array * @return array<string, string> */ public function toArray(): array { return array( 'type' => $this->type, 'name' => $this->name, 'context' => $this->context, ); } /** * @phpstan-return QM_Component_Array * @return array<string, string> */ public function jsonSerialize(): array { return $this->toArray(); } public static function sort( QM_Component $a, QM_Component $b ): int { return strcasecmp( $a->get_name(), $b->get_name() ); } }
Save
cmd:
run