projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
276bc98
)
SimpleExcel.php
author
Alan Knowles
<alan@roojs.com>
Tue, 21 May 2019 08:58:59 +0000
(16:58 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 21 May 2019 08:58:59 +0000
(16:58 +0800)
SimpleExcel.php
patch
|
blob
|
history
diff --git
a/SimpleExcel.php
b/SimpleExcel.php
index
a660264
..
d56dd55
100644
(file)
--- 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;