You appear to be a bot. Output may be restricted
Description
List the APIs for a specific fileWe process .php and .inc files which are not in 'ignore list'
Usage
_la_dofile( $file, $plugin, $component_type );
Parameters
- $file
- ( string ) required –
- $plugin
- ( mixed ) optional –
- $component_type
- ( string ) optional default: plugin – "plugin" or "theme"
Returns
voidSource
File name: oik-batch/listapis2.phpLines:
1 to 14 of 14
function _la_dofile( $file, $plugin=null, $component_type="plugin" ) { echo "Processing: $file". PHP_EOL; $ext = pathinfo( $file, PATHINFO_EXTENSION ); $ext = strtolower( $ext ); $exts = bw_assoc( array( "php", "inc" )); $validext = bw_array_get( $exts, $ext, false ); if ( $validext ) { $inignorelist = _la_checkignorelist( $file ); if ( !$inignorelist ) { //_lf_dofile_ajax( $file ); - not required in listapis2 - see createapi2 _la_doapis( $file, $plugin, $component_type ); } } }View on GitHub