You appear to be a bot. Output may be restricted
Description
Strip the preceeding docblock
We know where the api starts and the size of the docblock so we could attempt to determine which lines to strip e.g. docblock lines = 5 start = 10 ….ddddds But this assumes that the docblock actually starts there. We either need to match it up by checking the first line OR obtain the start information from the docblock_token.
Usage
oiksc_contents_strip_docblock( $contents_arr, $start, $end, $api );
Parameters
- $contents_arr
- ( mixed ) required –
- $start
- ( mixed ) required –
- $end
- ( mixed ) required –
- $api
- ( mixed ) required –
Returns
void
Source
File name: oik-shortcodes/admin/oik-files.php
Lines:
1 to 12 of 12
function oiksc_contents_strip_docblock( $contents_arr, $start, $end, $api ) { bw_trace2( null, null, true, BW_TRACE_DEBUG ); $docblock = $api->docblock; $docblock_lines = explode( "\n", $docblock ); $docblock_size = count( $docblock_lines ); //$docblock_start = $start - $docblock_size; //bw_trace2( $docblock_size, "docblock_size", false ); $docblock_start = $api->docblock_token[2]; $docblock_end = $docblock_start + $docblock_size - 1; $contents_arr = oiksc_contents_strip( $contents_arr, $docblock_start, $docblock_end ); return( $contents_arr ); }