X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=SimpleExcel.php;fp=SimpleExcel.php;h=d56dd55878759780a24d64c52fe912b7ba7a42d9;hp=a660264257e57655ef9e2c5fdc3ade89975a75c5;hb=b444ccfc21001536bac990bf84d0791104a220ad;hpb=276bc98f8535a5572f3d72959eb5fccf95da8833 diff --git a/SimpleExcel.php b/SimpleExcel.php index a6602642..d56dd558 100644 --- a/SimpleExcel.php +++ b/SimpleExcel.php @@ -429,6 +429,20 @@ class Pman_Core_SimpleExcel extends Pman function send($fname) { + + if (!empty($this->postRender)) { + foreach($this->postRender as $ar) { + if (is_a($ar[0], 'Closure')) { + $ar[0]($ar[1], $ar[2], $ar[3], $ar[4], $ar[5]); + } else { + // not sure if row is correct here...!!!? + call_user_func($ar[0],$ar[2], $ar[3], $ar[4], $ar[5]); + } + } + + } + + if (!empty($this->workbook)) { $this->workbook->close(); $this->workbook = false;