You appear to be a bot. Output may be restricted
Description
List functions implemented in the fileOriginal commentary note: The wp_doc_link_parse() function in wp-admin/includes/misc.php does almost exactly the opposite of what we want. It lists functions that might be documented as WordPress or PHP functions. We want to list the ones that aren't.. so basically we want the contents of the $ignore_functions array!
Usage
$array = oiksc_list_file_functions2( $file, $component_type, $component_slug );
Parameters
- $file
- ( string ) required – plugin source file name
- $component_type
- ( string ) required – "plugin"|"theme"
- $component_slug
- ( mixed ) required –
Returns
array $functions – array of implemented classes, methods and functions. In format:- "Class::" – class name only
- "Class::Method" – methods defined for the class
- "Function" – standalone functions
Source
File name: oik-shortcodes/classes/oik-listapis2.phpLines:
1 to 19 of 19
function oiksc_list_file_functions2( $file, $component_type, $component_slug ) { bw_backtrace( BW_TRACE_DEBUG ); //echo "Loading: $file, $component_type, $component_slug" . PHP_EOL; $contents_arr = oiksc_load_file( $file, $component_type, $component_slug ); if ( $contents_arr ) { $contents = implode( $contents_arr ); /** * Process each of the classes and their methods */ //bw_context( "dummy_TCES", false ); oikai_dummy_TCES( false ); $tokens = token_get_all( $contents ); $classes = _oiksc_list_classes2( $tokens ); } else { $classes = null; } return( $classes ); }View on GitHub