You appear to be a bot. Output may be restricted
Description
Extract the source of a file to a temporary fileNote: We don't need to worry about Fatal messages from parent:: or self:: when no class scope is active.
Usage
oiksc_file_loader::extract_to_tmp();
Parameters
Returns
voidTO DO
Find out why not! Maybe we don't ever read the file!Source
File name: oik-shortcodes/classes/class-oiksc-file-loader.phpLines:
1 to 31 of 31
function extract_to_tmp() { bw_trace2(); $this->tempnam = tempnam( sys_get_temp_dir(), "oikscloa"); $line = "<?php function "; $line .= $this->dummy_function_name; $line .= "(){ ?>\n"; $this->write( $line ); $this->contents = array(); foreach ( $this->contents_arr as $line ) { if ( $line != "" ) { $line = str_replace( "parent::", "Quarent::", $line ); $line = str_replace( "self", "Telf", $line ); //$line = str_replace( "new static", "new Ttatic", $line ); $this->write( $line ); $this->contents[] = $line ; } } /* $tokens = token_get_all( $contents ); if ( _oiksc_get_token( $tokens, count( $tokens )-1, T_INLINE_HTML ) ) { $line = "\n<?php } // ended in html ?>"; } else { $line = "\n}"; } */ $this->write( $line ); }View on GitHub