You appear to be a bot. Output may be restricted
Description
Create the APIs for a componentList the files for the component Components supported: "wordpress" – all files in the WordPress installation excluding wp-content <i>plugin</i> – all the files in the named plugin <i>theme</i> – all the files in the named theme Process each file in the component, defining the file, classes, methods and APIs
Usage
_ca_doaplugin( $component, $previous, $start );
Parameters
- $component
- ( string ) required – the name of the plugin or theme, or "wordpress"
- $previous
- ( string ) optional – the previous version to compare against – for performance
- $start
- ( mixed ) optional default: 1 –
Returns
voidSource
File name: oik-batch/createapi2.phpLines:
1 to 36 of 36
function _ca_doaplugin( $component, $previous=null, $start=1 ) { global $plugin, $apikey; $plugin = $component; if ( $plugin ) { $component_type = oiksc_query_component_type( $plugin ); if ( $component_type ) { echo "Doing a $component_type: " . $plugin . PHP_EOL; if ( $apikey ) { echo "Using apikey=$apikey" . PHP_EOL; } else { echo "Missing --apikey= parameter" . PHP_EOL; gobang(); oikb_login(); } $response = oikb_get_response( "Continue?", true ); if ( $response ) { oik_require( "admin/oik-apis.php", "oik-shortcodes" ); //wp_register_plugin_realpath( WP_PLUGIN_DIR . "/$plugin/." ); oik_require( "oik-list-previous-files.php", "oik-batch" ); $files = oikb_list_changed_files( $previous, $plugin, $component_type ); if ( null === $files ) { $files = oiksc_load_files( $plugin, $component_type ); $files = oikb_maybe_do_files( $files, $previous, $component, $component_type ); } oiksc_do_files( $files, $plugin, $component_type, "_ca_dofile", $start ); } } else { echo "Invalid plugin/theme: $component" . PHP_EOL; } } else { echo "Missing --plugin= parameter" . PHP_EOL; } }View on GitHub