You appear to be a bot. Output may be restricted
Description
Return dependencies to check as array of library => versionIf not already done create the dependency array for the library given a comma separated string, array of library:version or array of library => version Note: We don't expect libraries to just have numeric names.
Usage
$mixed = OIK_lib::deps();
Parameters
Returns
mixed dependency array or nullSource
File name: oik-lib/includes/class-oik-lib.phpLines:
1 to 27 of 27
function deps() { if ( null === $this->deps ) { $deps = bw_array_get( $this->args, 'deps', null ); if ( !is_array( $deps ) ) { if ( $deps ) { $deps = explode( ",", $deps ); } else { $deps = array(); } } bw_trace2( $deps, "deps", false, BW_TRACE_DEBUG ); $deps_array = array(); if ( count( $deps ) ) { foreach ( $deps as $key => $value ) { if ( is_numeric( $key ) ) { list( $key, $value ) = explode( ":", $value . ":*" ); } $deps_array[ $key ] = $value; } } $this->deps = $deps_array; } if ( count( $this->deps ) ) { return( $this->deps ); } return( null ); }View on GitHub