Query: bcompiler_write_class
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BCOMPILER_WRITE_CLASS(3) 1 BCOMPILER_WRITE_CLASS(3) bcompiler_write_class - Writes a defined class as bytecodesSYNOPSISbool bcompiler_write_class (resource $filehandle, string $className, [string $extends])DESCRIPTIONReads the bytecodes from PHP for an existing class, and writes them to the open file handle.PARAMETERSo $filehandle - A file handle as returned by fopen(3). o $className - The class name, as a string. o $extends -RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 bcompiler_write_class(3) example <?php $fh = fopen("/tmp/example","w"); bcompiler_write_header($fh); bcompiler_write_class($fh,"DB"); // you must write DB_common before DB_mysql, as DB_mysql extends DB_common. bcompiler_write_class($fh,"DB_common"); bcompiler_write_class($fh,"DB_mysql"); bcompiler_write_footer($fh); fclose($fh); ?>NOTESWarning This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. Note This function does not perform dependency checking, so make sure you write the classes in an order that will not result in an unde- fined class error occurring when you load it.SEE ALSObcompiler_write_header(3), bcompiler_write_footer(3). PHP Documentation Group BCOMPILER_WRITE_CLASS(3)
Related Man Pages |
---|
classkit_method_remove(3) - php |
bcompiler_write_constant(3) - php |
bcompiler_write_exe_footer(3) - php |
bcompiler_write_functions_from_file(3) - php |
runkit_method_remove(3) - php |
Similar Topics in the Unix Linux Community |
---|
POP 3 client class 2008.01.08 (Default branch) |
POP 3 client class 2008.04.24 (Default branch) |
POP 3 client class 2009.02.01 (Default branch) |