' .
'
';
foreach ( $data['functions'] as $label => $function ) {
if ( is_callable( array( $this->collector, $function ) ) )
echo '
' .
'
' . esc_html( $label ) . '
' .
'
' . $this->collector->$function() . '
' .
'
';
}
echo '
';
?>
';
}
public function panel_menu( array $menu ) {
$menu['time'] = $this->menu( array(
'title' => esc_html__( 'Time', 'query-monitor-extend' ),
'id' => 'query-monitor-extend-time',
) );
return $menu;
}
}
function register_qmx_output_html_time( array $output ) {
if ( $collector = QMX_Collectors::get( 'time' ) ) {
$output['time'] = new QMX_Output_Html_Time( $collector );
}
return $output;
}
add_filter( 'qmx/outputter/html', 'register_qmx_output_html_time', 70 );