You appear to be a bot. Output may be restricted
Description
Attempt to determine the API type based on the parameters$atts=null, $content=null, $tag=null -> "shortcode"
Usage
oikai_parm_match( $funcname, $refFunc, $docblock );
Parameters
- $funcname
- ( mixed ) required –
- $refFunc
- ( mixed ) required –
- $docblock
- ( mixed ) required –
Returns
voidSource
File name: oik-shortcodes/admin/oik-apitype.phpLines:
1 to 15 of 15
function oikai_parm_match( $funcname, $refFunc, $docblock ) { $params = $refFunc->getParameters(); //print_r( $params ); $type = null; $match = oikai_compare_param( $params, 0, "atts", true, true, null, false ); if ( $match ) { $match = oikai_compare_param( $params, 1, "content", true, true, null, false ); if ( $match ) { $match = oikai_compare_param( $params, 2, "tag", true, true, null, false ); if ( $match ) $type = "shortcode"; } } return( $type ); }View on GitHub