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
_ca_doapis_local( $file, $plugin_p, $component_type );
Parameters
- $file
- ( string ) required – file name to load
- $plugin_p
- ( mixed ) required –
- $component_type
- ( mixed ) required –
Returns
voidSource
File name: oik-shortcodes/admin/oik-create-apis.phpLines:
1 to 18 of 18
function _ca_doapis_local( $file, $plugin_p, $component_type ) { global $plugin; $plugin = $plugin_p; echo "Processing valid: $plugin $file $component_type" . PHP_EOL; $apis = _oiksc_get_apis2( $file, true, $component_type, $plugin_p ); $file = strip_directory_path( ABSPATH, $file ); foreach ( $apis as $api ) { $apiname = $api->getApiName(); echo "Processing API: $apiname, $file, $plugin, $component_type " . PHP_EOL; $needs_processing = _ca_does_api_need_processing( $api, $file, $component_type, $plugin ); if ( $needs_processing ) { oiksc_local_oiksc_create_api( $plugin, $file, $component_type, $api ); $discard = bw_ret(); } else { echo "Nothing to do for: $apiname" . PHP_EOL; } } }View on GitHub