Method |
Description |
|
__construct ( ) |
|
|
emit_php_error ( $number, $error, $file, $line, $options = ['show-errors' => E_ALL] ) |
This function actually emits handled PHP errors. It's here instead of
in handle_php_error because we want a static version to be used from
the bootstrap script. |
|
file_is_in_core ( $file, $options ) |
|
|
get_options ( ) : Array |
Parse options that are passed to us from stdin.Not sure what the format
should be yet. To start with, we probably need options to specify the
location of the wordpress installation to run. |
|
handle_php_error ( $number, $error, $file, $line, $context ) |
Called by the PHP core when an error occurs |
|
message ( $string ) |
Emits a message to STDOUT, prepended with the current time. |
|
print_r ( $variable ) |
Dumps an object to STDOUT, using print_r |
|
register_shutdown_function ( ) |
|
|
request_message ( ) |
Prints basic information about the request being processed |
|
run ( ) |
Called when the command is run. Sets up the options and environment and
then passes off to a more specific handler |
|
serve_file ( ) |
Serves a static file from the disk |
|
serve_headers ( ) |
The built-in webserver only emits a minimal set of headers, so add in the
usual ones. |
|
serve_script ( ) |
Serves a specific script; for example, /wp-admin/install.php |
|
serve_wordpress ( ) |
Serves a wordpress permalink |
|
startswith ( $haystack, $needle ) |
|
|
wps_filter_all ( $hook ) |
Emits the details of hooks and filters as they are called, if required |
|
wps_filter_parse_query ( $query ) |
Emits page parameters |
|
wps_filter_query ( $query ) |
Emits all queries to the console |
|
wps_filter_shutdown ( ) |
Runs right at the end of execution |
|
wps_filter_template_include ( $template ) |
Emits template loads to the console |
|