You appear to be a bot. Output may be restricted
Description
Set the MD5 hash for the given file, API or class
Usage
md5_hasher::build_hash( $post, $id, $sourceref );
Parameters
- $post
- ( object ) required –
- $id
- ( ID ) required –
- $sourceref
- ( ID ) required –
Returns
voidSource
File name: oik-shortcodes/admin/set_md5_hash.phpLines:
1 to 21 of 21
function build_hash( $post, $id, $sourceref ) { $source = bw_array_get( $this->sourcerefs, $sourceref, null ); $source_type = $source->post_type; switch ( $source_type ) { case 'oik_file': $this->hash_oik_file( $post, $id, $sourceref, $source ); break; case 'oik_api': echo "building hash for API: $sourceref" . PHP_EOL; $this->hash_oik_api( $post, $id, $sourceref, $source ); break; case 'oik_class': echo "building hash for class: $sourceref" . PHP_EOL; gob(); break; default: gob(); } }View on GitHub