You appear to be a bot. Output may be restricted
Description
Create the apis for a particular file in a pluginObtain a list of the APIs in the source file. For each API send a message to the server to create/update the API. Note: We ignore classes – these are created dynamically
Usage
_lf_dofile_local( $file, $plugin, $component_type );
Parameters
- $file
- ( string ) required – file name to load
- $plugin
- ( mixed ) required –
- $component_type
- ( mixed ) required –
Returns
voidSource
File name: oik-shortcodes/admin/oik-create-apis.phpLines:
1 to 22 of 22
function _lf_dofile_local( $file, $plugin, $component_type ) { //global $plugin; //if ( oikb_get_site() ) { if ( $plugin == "wordpress" ) { $file = strip_directory_path( ABSPATH, $file ); } else { //echo $file . PHP_EOL; } echo "Processing file: $plugin,$file" . PHP_EOL; $response = oikb_get_response( "Continue to process file?" ); if ( $response ) { //$apikey = oikb_get_apikey(); //oik_require( "oik-admin-ajax.inc", "oik-batch" ); //oikb_admin_ajax_post_create_file( oikb_get_site(), $plugin, $file, $apikey ); oiksc_local_oiksc_create_file( $plugin, $file, $component_type ); $discard = bw_ret(); } echo "Processing file: $plugin,$file ended" . PHP_EOL; //} }View on GitHub