You appear to be a bot. Output may be restricted
Description
Display the registered librariesNothing fancy here as we cannot alter the settings So we just convert each OIK_lib in the OIK_libs class to an array of fields We can display $oik_libs->libraries, $oik_libs->loaded_libraries and $oik_libs->checked_libraries If deps is an assoc array then we only get the '*' – so we copy the value of args['deps'] which we know is set [library] => oik_boot [src] => C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\libs\oik_boot.php [deps] => [version] => 2.6 [init_function] => [args] => Array
Usage
oik_lib_display_libraries();
Parameters
Returns
voidSource
File name: oik-lib/admin/oik-lib.phpLines:
1 to 19 of 19
function oik_lib_display_libraries() { p( "Registered libraries, showing the versions and dependencies." ); $oik_libs = oik_libs(); //bw_trace2( $oik_libs, "oik_libs" ); //$oik_libs->display_libs(); $libraries = $oik_libs->libraries; stag( "table", "wide-fat" ); $labels = bw_as_array( __( "Library,Source,Dependencies,Version,Args", 'oik-lib' ) ); bw_tablerow( $labels, "tr", "th" ); foreach ( $libraries as $lib => $data ) { //print_r( $lib ); //bw_trace2( $data, "data" ); //$data->deps(); $data->deps = $data->args['deps']; unset( $data->error ); bw_tablerow( $data ); } etag( "table" ); }View on GitHub