[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

oikai_load_and_reflect() – Create a dummy reflection object for the API

You appear to be a bot. Output may be restricted

Description

Create a dummy reflection object for the API

Load the function/method from the file and create a dummy reflection object that contains enough information for us to get by.

Usage

$refFunc = oikai_load_and_reflect( $funcname, $sourcefile, $component_slug, $classname );

Parameters

$funcname
( string ) required – the function or method name
$sourcefile
( string ) required – relative filename
$component_slug
( string ) required – the plugin or theme slug
$classname
( string ) required – the classname, if applicable

Returns

refFunc object or null

Source

File name: oik-shortcodes/shortcodes/oik-api-importer.php
Lines:
1 to 31 of 31
function oikai_load_and_reflect( $funcname, $sourcefile, $component_slug, $classname ) {
  global $filename, $plugin, $component_type;
  $refFunc = null;    
  bw_trace2( null, null, true, BW_TRACE_DEBUG );
  //bw_backtrace();
  if ( $sourcefile ) { 
    // oik_require( $sourcefile, $plugin );
    oik_require( "admin/oik-apis.php", "oik-shortcodes" );
    $component_type = oiksc_query_component_type( $component_slug );
    $filename = oik_pathw( $sourcefile, $component_slug, $component_type );
    if ( file_exists( $filename ) ) {
      //require_once( $filename );
      //$file = file_get_contents( $filename );
      //p( "TBC" );
      
      oik_require( "classes/oik-listapis2.php", "oik-shortcodes" );
      $functions = oiksc_list_file_functions2( $sourcefile, $component_type, $component_slug );
      //bw_trace2( $functions, "functions" );
      $function = oiksc_find_function( $functions, $funcname, $classname );
      //bw_trace2( $function );
      if ( $function ) {
        $filename = $sourcefile;
        $plugin = $component_slug;
        $refFunc = $function->load_and_reflect();
      }
    } else {
      p( "Source file not available: $sourcefile plugin: $plugin filename: $filename " );
    }
  }   
  return( $refFunc );
} 
 
 View on GitHub

Published: March 11, 2017 | Last updated: March 11, 2017

Information

Function name: oikai_load_and_reflect
Plugin ref: oik block shortcode and API server
Version: 1.41.1
Sourcefile: shortcodes/oik-api-importer.php
File ref: shortcodes/oik-api-importer.php
Deprecated?: No
API Letters: A,L,O,R

Recent plugin updates

oik v4.7.2 oik v4.7.2 includes a fix to the logic to render blocks for Content and Excerpts in the bw_pages shortcode. ...
oik v4.7.1 Upgrade to oik v4.7.1 for bw_pages rendering blocks for Content and Excerpts, and support for post_name attribute for shortcode which query posts ...
oik-shortcodes v1.41.1 Upgrade to oik-shortcodes v1.41.1 for a couple of minor changes. ...
oik-bob-bing-wide v2.2.2 Upgrade to oik-bob-bing-wide v2.2.2 for improvements to bw_dash examples and fixes to some SVG icon's visibility. ...
oik-bwtrace v3.3.1 Upgrade to oik-bwtrace v3.3.1 to measure plugin load times and ad hoc action timing points. ...

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: [email protected]

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-2022. All rights reserved.


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