You appear to be a bot. Output may be restricted
Description
Set the trace options to defined values
Here's an example of the array structure
Usage
Tests_oik_bwtrace::init_bw_trace_options();
Parameters
Returns
void
TO DO
Needs updating for rest_ and cli_ fields and limit
[file] => bwtraces.loh [reset] => on [trace] => 0 [file_ajax] => bwtraces.ajax [reset_ajax] => on [trace_ajax] => on [level] => 32 [qualified] => on [count] => on [date] => on [filters] => on [num_queries] => on [post_id] => on [memory] => on [files] => on [ip] => `
Source
File name: oik-bwtrace/tests/test–oik-bwtrace.php
Lines:
1 to 31 of 31
function init_bw_trace_options() { global $bw_trace_options; //print_r( $bw_trace_options ); $bw_trace_options['file'] = 'bwphpunit.loh'; $bw_trace_options['reset'] = 'on'; $bw_trace_options['trace'] = '0'; $bw_trace_options['file_ajax'] = 'bwphpunit.ajax'; $bw_trace_options['reset_ajax'] = 'on'; $bw_trace_options['trace_ajax'] = 'on'; $bw_trace_options['file_rest'] = 'bwphpunit.rest'; $bw_trace_options['reset_rest'] = 'on'; $bw_trace_options['trace_rest'] = 'on'; $bw_trace_options['file_cli'] = 'bwphpunit.cli'; $bw_trace_options['reset_cli'] = 'on'; $bw_trace_options['trace_cli'] = '0'; $bw_trace_options['limit'] = 10; $bw_trace_options['level'] = BW_TRACE_INFO; // 16 $bw_trace_options['qualified'] = 'on'; $bw_trace_options['count'] = 'on'; $bw_trace_options['date'] = 'on'; $bw_trace_options['filters'] = 'on'; $bw_trace_options['num_queries'] = 'on'; $bw_trace_options['post_id'] = 'on'; $bw_trace_options['memory'] = 'on'; $bw_trace_options['files'] = 'on'; $bw_trace_options['ip'] = php_sapi_name(); }