// $oo_path : source ooofile path
// $outfile : output file name without extension
// func : function for calculte $temp_arr
// $sn_arr : the paraments of func
// $ext_arr : external $temp_arr already exists
// $paging : per data send a page-break or not
- loading and copying files in $oo_path with content.xml
- split content.xml into $head, $body, $foot
- insert page-break style into $head if $paging is true
- foreach $sn in $sn_arr do {
- $temp = & call_user_func($func,$sn)
- temp_arr=arr_merge($temp,$ext_arr) if exists $ext_arr otherwize $temp_arr=$temp
- replace tags with $temp_arr into $new_body
- clear no values tags
- add page-break if $paging is true }
- output $head.$new_body.$foot as content.xml
- output ooofile.
沒有留言:
張貼留言