/** * Reset libraries * */ function reset() { $this->did_query_libs = false; $this->libraries = array(); oik_lib_register_default_libs(); }
/** * Satisfy pre-requisites for oik-lib shared library processing * * The "oik-lib" library is dependent upon "oik_boot" and "bwtrace". * "oik_boot" for functions such as oik_require() and "bwtrace" for the trace APIs * * These are shareable shared libraries from the "oik" and "oik-bwtrace" plugins. * * If they are not registered by these plugins then we need to load them ourselves. * Having loaded these shared libraries we register them so that other plugins can use oik_require_lib() * * @return bool true if "oik_boot" and "bwtrace" both loaded */ function oik_lib_boot() { $loaded = true; if (!function_exists("oik_path")) { $oik_boot_file = __DIR__ . "/oik_boot.php"; $loaded = (include_once $oik_boot_file); } if ($loaded && !function_exists("bw_trace2") && function_exists("oik_require")) { $trace_file = oik_path("libs/bwtrace.php", "oik-lib"); $loaded = (include_once $trace_file); } if ($loaded) { oik_lib_register_default_libs(); } return $loaded; }