/**
* @param string $filename
* @return bool
*/
public function export_to_file( $filename ) { $fh =
fopen( $filename, 'wb'
);
if ( !
$fh ) { return false;
} $res =
$this->
export_to_file_handle( $fh );
fclose( $fh );
return $res;
} /**
* @return string|false
*/
public function export() { $tmp_fh =
fopen( 'php://temp', 'r+'
);
if ( !
$tmp_fh ) { return false;
}