Description
Load the libraries upon which this library is dependentHere we assume that this will be possible It's first come first served when it comes to library hell ( similar to DLL hell ) We'll let composer or some other thing resolve the version incompatibilities.
Usage
OIK_libs::load_dependencies( $lib );Parameters
- $lib
- ( mixed ) required –
Returns
voidSource
File name: oik-lib/includes/class-oik-libs.phpLines:
1 to 16 of 16
function load_dependencies( $lib ) { $checked = $this->checked( $lib ); if ( !$checked ) { $lib_deps = $lib->deps(); if ( $lib_deps ) { bw_trace2( $lib_deps, "lib_deps", true, BW_TRACE_VERBOSE ); foreach ( $lib_deps as $library => $version ) { $checked = $this->require_lib( $library, $version ); } } } if ( !$checked ) { $checked = $lib; } return( $checked ); }View on GitHub
Invoked by
Calls
1 to 3 of 3
Call hooks
API Letters:
