You appear to be a bot. Output may be restricted
Description
Display the API descriptionsDisplay the short description then the long description.
Content | How to deal with it |
---|---|
@ TODO | Refer to a TODO CPT |
@ link | Convert the link into a link |
other | How do we handle something like this? |
Usage
oikai_reflect_descriptions( $docblock );
Parameters
- $docblock
- ( object ) required – the docBlock object
Returns
voidTO DO
Properly handle TODO's and links – these are stored separately from the long description in the[tags:protected] => Array ( [0] => @TODO: Handle markdown and other attempts at formatting the notes such as plain tables [1] => @TODO: Properly handle TODO's and links - these are stored separately from the long description! [2] => @param object $docblock - the docBlock object ) `
Source
File name: oik-shortcodes/shortcodes/oik-api-importer.phpLines:
1 to 10 of 10
function oikai_reflect_descriptions( $docblock ) { h2( "Description" ); //p( esc_html( $docblock->getShortDescription() ) ); oikai_format_description( $docblock->getShortDescription() ); //p( esc_html( $docblock->getLongDescription() ) ); sp(); oikai_format_description( $docblock->getLongDescription() ); ep(); //bw_trace2( $docblock ); }View on GitHub