You appear to be a bot. Output may be restricted
Description
Implement "oik_query_libs" filter for oik-bwtraceIn order for this function to have been invoked the oik-lib logic must be in place. So we can happily register the libraries in the libs folder using the available functions and methods Here we're determining the subset of oik functions that are actually used by oik-bwtrace. We may eventually determine that these really do need to be implemented as dependencies. Does this mean that we need to implement the bwtrace admin as a library with dependencies on "oik-admin" … probably. In which case automatically building the libraries from files that are present is not a good idea
Usage
oik_bwtrace_query_libs( $libraries );
Parameters
- $libraries
- ( mixed ) required –
Returns
voidSource
File name: oik-bwtrace/oik-bwtrace.phpLines:
1 to 17 of 17
function oik_bwtrace_query_libs( $libraries ) { $lib_args = array(); $libs = array( "bobbfunc" => null, "bobbforms" => "bobbfunc", "oik-admin" => "bobbforms", 'hexdump' => null ); $versions = array( "bobbfunc" => "3.2.0", "bobbforms" => "3.2.0", "oik-admin" => "3.2.0" ); foreach ( $libs as $library => $depends ) { $lib_args['library'] = $library; $lib_args['src'] = oik_path( "libs/$library.php", "oik-bwtrace" ); $lib_args['deps'] = $depends; // Here we should consider deferring the version setting until it's actually time to check compatibility $lib_args['version'] = bw_array_get( $versions, $library, null ); $lib = new OIK_lib( $lib_args ); $libraries[] = $lib; } bw_trace2( null, null, true, BW_TRACE_VERBOSE ); //bw_backtrace(); return( $libraries ); }View on GitHub View on Trac