[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

libs/oik-lib.php


Lines:
1 to 98 of 98
<?php // (C) Copyright Bobbing Wide 2015, 2018
if ( !defined( 'OIK_LIB_INCLUDED' ) ) {
define( 'OIK_LIB_INCLUDED', "0.1.1" );


/**
 * oik library management functions
 * 
 * Library: oik-lib
 * Provides: oik-lib
 * Depends: oik_boot, bwtrace
 * Shareable: No - since it expects to be part of the oik-lib plugin. See oik_require() below
 * Conflicts: oik:<=3.0.0
 * 
 * Notes: If we wanted to make oik-lib a shareable shared library then we might want to make
 * the plugin `oik-lib` and the shared library package `oik_lib` ... the difference being the underscore for the library
 * To do this it would also be better to locate it in /vendor/bobbingwide/oik_lib
 * 
 * 
 * These are the functions that implement shared library logic that enable
 * plugins and themes to define their dependencies on other plugins and/or library functions.
 * These functions are loaded as WordPress starts up.
 * 
 * Plugins should expect the base APIs to be available from "muplugins_loaded" - when this is also implemented in a Must-Use plugin
 * OR "plugins_loaded" otherwise.
 * 
 * They don't have to wait for "init" BUT they should actually wait for the appropriate "oik_lib_loaded" action message 
 * If they need a library then they should invoke oik_require_lib( $lib, $version ) and test the result.
 * If they need a library function then they should invoke oik_require_func( $func, $lib, $version ) and test the result
 * If they need a library file then they should invoke oik_require_file( $file, $lib ) and test the result
 * These functions may also support parameters passed as $args arrays
 
 * 
 * This logic is intended to be run as part of a must-use plugin ( __oik-lib-mu.php ) 
 * but may also be invoked as a normal plugin
 * 
 * Libraries implemented:
 *
 * Library    | Functionality
 * ---------- | -------------
 * oik_boot |Bootstrap functions equivalent to oik's oik_boot.php
 * bwtrace    | Trace functions equivalent to oik's bwtrace.php
 * 
 * 
 * Plugins that use/share these functions or provide other libraries are
 * summarised in the oik-libs master repository. 
 * 
 * Plugin | Functionality
 * ------ | --------------- 
 * oik    | oik_boot
 * oik    | bobbforms
 * oik    | bobbfunc
 * oik    | oik-admin
 * 
 * @TODO Correct this list to reflect actual libraries
 * oik    | lib-fields
 * oik    | lib-shortcodes
 * oik    | oik-depends
 * oik    | lib-update
 * etcetera...
 * 
 * Note: These "libraries" are more modular than the PHP libraries listed in 
 * {@link https://github.com/ziadoz/awesome-php#dependency-management-extras}
 * You may want to consider them as modules, similar to Drupal modules or those implemented by Jetpack.
 * The difference between a library and a plugin is that the library simply provides some functionality, the plugin implements it.
 * 
 * The difference between a library and an include file is that the library is dynamically fetched when required;
 * it's not just loaded at startup in the vain assumption that it's going to be needed.
 *  
 * The difference between a library and a package has yet to be defined.
 */
 
/* function oik_libs() – Return the singular instance of the OIK_libs class */
 
/* function oik_register_lib() – Register a library */
 
if ( !function_exists( "oik_require_lib" ) ) { 
/* function oik_require_lib() – Require a library */
}

/* function oik_lib_determine_lib() – Determine the library file to load */

/* function oik_require_func() – Require a library function */

/* function oik_lib_register_default_libs() – Register the default libraries */

/* function oik_lib_check_libs() – Check the existence of the available libraries for the given plugin */

/* function oik_lib_boot() – Satisfy pre-requisites for oik-lib shared library processing */

} /* end !defined */


 
 
 
 
 
 View on GitHub

Called by

    Invoked by

      Calls

      Call hooks

      File name: libs/oik-lib.php
      Plugin ref: oik-lib: shared library management
      Version: 0.2.1
      Deprecated?: No
      API Letters:

      Published: August 9, 2015 | Last updated: August 9, 2015

      Information

      File name: libs/oik-lib.php
      Plugin ref: oik-lib: shared library management
      Version: 0.2.1
      Deprecated?: No
      API Letters:

      Recent plugin updates

      sb-post-edit-block v0.3.2 Update to sb-post-edit-block v0.3.2 for support for PHP 8.1, 8.2 and 8.3 ...
      oik-user v0.9.0 Update to oik-user v0.9.0 for support for PHP 8.1, PHP 8.2 and PHP 8.3  ...
      oik-weight-zone-shipping v0.2.11 Update to oik-weight-zone-shipping v0.2.11 for WooCommerce High-Performance order storage compatibility ...
      sb-breadcrumbs-block v0.6.1 Update to sb-breadcrumbs-block v0.6.1 for support for PHP 8.1 and PHP 8.2 ...
      slog v1.5.1 Update to slog v1.5.1 for support for PHP 8.1 and PHP 8.2 ...

      Plugins

      • All Plugins
      • oik base plugin
      • FREE oik plugins
      • WordPress plugins
      • Premium oik plugins

      Themes

      • FREE themes
      • Bespoke themes
      • Premium themes

      Blocks

      • All Blocks
      • Block examples
      • About Blocks

      Shortcodes

      • All Shortcodes
      • Shortcode examples
      • About Shortcodes

      Reference

      • About APIs
      • All APIs
      • All Classes
      • All Files
      • All Hooks

      Support

      • Contact
      • Cookies policy
      • Get API key
      • Privacy
      • Request support
      • Sitemap
      • Stay informed
      • Terms and Conditions
      oik-plugins
      Email: herb@bobbingwide.com

      Weight shipping plugins

      Find out which cart weight shipping plugin you need for your WooCommerce site.
      Which cart weight based plugin do I need?

      Site:  www.oik-plugins.com
      © Copyright oik-plugins 2011-2023. All rights reserved.


      Website designed and developed by Herb Miller of Bobbing Wide
      Proudly powered by WordPress and oik-plugins
      WordPress 6.4.1. PHP: 7.4.33. Memory limit: 768M