You appear to be a bot. Output may be restricted
Description
Rebuild the MD5 hash for an API
Usage
md5_hasher::hash_oik_api( $post, $id, $sourceref, $source );
Parameters
- $post
- ( object ) required – the current parsed_source object
- $id
- ( ID ) required – the parsed_source post ID
- $sourceref
- ( ID ) required – the original source post
- $source
- ( mixed ) required –
Returns
voidSource
File name: oik-shortcodes/admin/set_md5_hash.phpLines:
1 to 24 of 24
function hash_oik_api( $post, $id, $sourceref, $source ) { global $filename; $fileref = get_post_meta( $sourceref, "_oik_fileref", true ); $filename = get_post_meta( $fileref, "_oik_file_name", true ); $apiname = get_post_meta( $sourceref, "_oik_api_name", true ); $component_id = $this->get_component_id( $sourceref ); $component_type = $this->get_component_type( $component_id ); $component_slug = $this->get_component_slug( $component_id, $component_type ); $file = oiksc_real_file( $filename, $component_type, $component_slug ); echo "file: $file API: $apiname component: $component_slug type: $component_type" . PHP_EOL; //$this->set_global_plugin_post( $component_id ); //_lf_dofile_local( $filename, $component_slug, $component_type ); $apis = _oiksc_get_apis2( $filename, true, $component_type, $component_slug ); foreach ( $apis as $api ) { $current_apiname = $api->getApiName(); if ( $current_apiname === $apiname ) { oiksc_local_oiksc_create_api( $component_slug, $filename, $component_type, $api ); $discard = bw_ret(); } } }View on GitHub