primo commit
This commit is contained in:
15
templates/tabulizer/modify/replaceemptycell.php
Normal file
15
templates/tabulizer/modify/replaceemptycell.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
class TabulizerModifyReplaceemptycell {
|
||||
function modify(&$rows, $args = null) {
|
||||
if (empty($rows)) {
|
||||
return;
|
||||
}
|
||||
$replace_str = (isset($args))?$args:' ';
|
||||
foreach ($rows as &$row) {
|
||||
foreach ($row as &$cell) {
|
||||
if ($cell == '') $cell = $replace_str;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user