PHP 클래스 The_SEO_Framework\Debug

Holds plugin debug functions.
부터: 2.7.1
상속: implements the_seo_framework\Debug_Interface
파일 보기 프로젝트 열기: sybrew/the-seo-framework

공개 프로퍼티들

프로퍼티 타입 설명
$the_seo_framework_debug Cached debug/profile properties.
$the_seo_framework_debug_hidden

보호된 프로퍼티들

프로퍼티 타입 설명
$add_debug_output Whether to accumulate data.
$debug_output Enqueue the debug output.

공개 메소드들

메소드 설명
_deprecated_filter ( string $filter, string $version, string $replacement = null ) Mark a filter as deprecated and inform when it has been used.
_deprecated_function ( string $function, string $version, string $replacement = null ) Mark a function as deprecated and inform when it has been used.
_doing_it_wrong ( string $function, string $message, string $version ) Mark a function as deprecated and inform when it has been used.
_inaccessible_p_or_m ( string $p_or_m, string $message = '' ) Mark a property or method inaccessible when it has been used.
debug_init ( string $method, boolean $store, double $debug_key ) : void Debug init. Simplified way of debugging a function, only works in admin.
debug_key_wrapper ( string $key, boolean $ignore = false ) : string Wrap debug key in a colored span.
debug_output ( ) Echos debug output.
debug_screens ( ) Adds found screens in the admin footer when debugging is enabled.
debug_value_wrapper ( string $value, boolean $ignore = false ) : string Wrap debug value in a colored span.
get_debug_information ( mixed $values = null ) : string Parses input values and wraps them in human-readable elements.
get_instance ( ) : object Gets the class instance. It's set when it's null.
has_debug_output ( ) : boolean Determines if there's debug output.
output_debug ( ) Outputs the debug_output property.
output_debug_header ( ) Outputs the debug header.
output_debug_query ( ) Outputs debug query.
profile ( boolean $echo = false, boolean $from_last = false, string $what = 'time', string $key = '' ) : float Count the timings and memory usage.
set_instance ( $debug = null, $hidden = null ) Sets the class instance.

보호된 메소드들

메소드 설명
__clone ( ) Cloning of this object is forbidden.
__construct ( ) Constructor.
__wakeup ( ) Unserializing instances of this object is forbidden.
error_handler ( array $error, string $message ) Echos error.
error_handler_deprecated ( $code, $message ) The SEO Framework error handler.
error_handler_doing_it_wrong ( $code, $message ) The SEO Framework error handler.
error_handler_inaccessible_call ( $code, $message ) The SEO Framework error handler.
get_debug_header_output ( ) : string Wraps header output in front-end code.
get_debug_query_output ( ) : string Wraps query status booleans in human-readable code.
timer ( $reset = false ) : float Times code until it's called again.

메소드 상세

__clone() 최종 보호된 메소드

Cloning of this object is forbidden.
final protected __clone ( )

__construct() 최종 보호된 메소드

Constructor.
final protected __construct ( )

__wakeup() 최종 보호된 메소드

Unserializing instances of this object is forbidden.
final protected __wakeup ( )

_deprecated_filter() 공개 메소드

Mark a filter as deprecated and inform when it has been used.
부터: 2.7.1
public _deprecated_filter ( string $filter, string $version, string $replacement = null )
$filter string The function that was called.
$version string The version of WordPress that deprecated the function.
$replacement string Optional. The function that should have been called. Default null.

_deprecated_function() 공개 메소드

Taken from WordPress core, but added extra parameters and linguistic alterations. The current behavior is to trigger a user error if WP_DEBUG is true.
부터: 2.6.0
public _deprecated_function ( string $function, string $version, string $replacement = null )
$function string The function that was called.
$version string The version of WordPress that deprecated the function.
$replacement string Optional. The function that should have been called. Default null.

_doing_it_wrong() 공개 메소드

Taken from WordPress core, but added extra parameters and linguistic alterations. The current behavior is to trigger a user error if WP_DEBUG is true.
부터: 2.6.0
public _doing_it_wrong ( string $function, string $message, string $version )
$function string The function that was called.
$message string A message explaining what has been done incorrectly.
$version string The version of WordPress where the message was added.

_inaccessible_p_or_m() 공개 메소드

The current behavior is to trigger a user error if WP_DEBUG is true.
부터: 2.7.0
public _inaccessible_p_or_m ( string $p_or_m, string $message = '' )
$p_or_m string The Property or Method.
$message string A message explaining what has been done incorrectly.

debug_init() 공개 메소드

Debug init. Simplified way of debugging a function, only works in admin.
부터: 2.6.0
public debug_init ( string $method, boolean $store, double $debug_key ) : void
$method string The function name.
$store boolean Whether to store the output in cache for next run to pick up on.
$debug_key double Use $debug_key as variable, it's reserved.
리턴 void early if debugging is disabled or when storing cache values.

debug_key_wrapper() 공개 메소드

Wrap debug key in a colored span.
부터: 2.3.9
public debug_key_wrapper ( string $key, boolean $ignore = false ) : string
$key string The debug key.
$ignore boolean Ignore the hidden output.
리턴 string

debug_output() 공개 메소드

Echos debug output.
부터: 2.6.0
부터: 2.7.1 is now static.
public debug_output ( )

debug_screens() 공개 메소드

Adds found screens in the admin footer when debugging is enabled.
부터: 2.5.2
public debug_screens ( )

debug_value_wrapper() 공개 메소드

Wrap debug value in a colored span.
부터: 2.3.9
public debug_value_wrapper ( string $value, boolean $ignore = false ) : string
$value string The debug value.
$ignore boolean Ignore the hidden output.
리턴 string

error_handler() 보호된 메소드

Echos error.
부터: 2.6.0
protected error_handler ( array $error, string $message )
$error array The Error location and file.
$message string The error message.

error_handler_deprecated() 보호된 메소드

Only handles notices.
또한 보기: E_USER_NOTICE
부터: 2.6.0
protected error_handler_deprecated ( $code, $message )

error_handler_doing_it_wrong() 보호된 메소드

Only handles notices.
또한 보기: E_USER_NOTICE
부터: 2.6.0
protected error_handler_doing_it_wrong ( $code, $message )

error_handler_inaccessible_call() 보호된 메소드

Only handles notices.
또한 보기: E_USER_NOTICE
부터: 2.6.0
protected error_handler_inaccessible_call ( $code, $message )

get_debug_header_output() 보호된 메소드

This won't consider hiding the output.
부터: 2.6.5
protected get_debug_header_output ( ) : string
리턴 string Wrapped SEO meta tags output.

get_debug_information() 공개 메소드

Parses input values and wraps them in human-readable elements.
부터: 2.6.0
public get_debug_information ( mixed $values = null ) : string
$values mixed Values to be parsed.
리턴 string $output The parsed value.

get_debug_query_output() 보호된 메소드

Wraps query status booleans in human-readable code.
부터: 2.6.6
protected get_debug_query_output ( ) : string
리턴 string Wrapped Query State debug output.

get_instance() 공개 정적인 메소드

Gets the class instance. It's set when it's null.
부터: 2.7.1
public static get_instance ( ) : object
리턴 object The current instance.

has_debug_output() 공개 정적인 메소드

Determines if there's debug output.
부터: 2.7.1
public static has_debug_output ( ) : boolean
리턴 boolean True if there's output.

output_debug() 공개 정적인 메소드

Outputs the debug_output property.
부터: 2.7.1
public static output_debug ( )

output_debug_header() 공개 정적인 메소드

Outputs the debug header.
부터: 2.7.1
public static output_debug_header ( )

output_debug_query() 공개 정적인 메소드

Outputs debug query.
부터: 2.7.1
public static output_debug_query ( )

profile() 공개 메소드

Memory usage fetching is unreliable, i.e. Opcode.
부터: 2.6.0
public profile ( boolean $echo = false, boolean $from_last = false, string $what = 'time', string $key = '' ) : float
$echo boolean Whether to echo the total plugin time.
$from_last boolean Whether to echo the differences from the last timing.
$what string Whether to return the time or memory.
$key string When used, it will detach the profiling separately.
리턴 float The timer in seconds. Or memory in Bytes when $what is 'memory'.

set_instance() 공개 정적인 메소드

Sets the class instance.
부터: 2.7.1
public static set_instance ( $debug = null, $hidden = null )

timer() 보호된 메소드

Times code until it's called again.
부터: 2.6.0
protected timer ( $reset = false ) : float
리턴 float PHP Microtime for code execution.

프로퍼티 상세

$add_debug_output 보호되어 있는 프로퍼티

Whether to accumulate data.
부터: 2.6.5
protected $add_debug_output

$debug_output 보호되어 있는 프로퍼티

Enqueue the debug output.
부터: 2.6.0
protected $debug_output

$the_seo_framework_debug 공개적으로 프로퍼티

Cached debug/profile properties.
부터: 2.7.1
public $the_seo_framework_debug

$the_seo_framework_debug_hidden 공개적으로 프로퍼티

public $the_seo_framework_debug_hidden