Conditions | 4 |
Paths | 5 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | function dumpHeaders($identifier, $multi_table = false) { |
||
38 | if ($_POST['output'] == 'zip') { |
||
39 | $this->filename = "$identifier." . ($multi_table && preg_match('~[ct]sv~', $_POST['format']) ? 'tar' : $_POST['format']); |
||
40 | header('Content-Type: application/zip'); |
||
41 | ob_start(array($this, '_zip')); |
||
42 | } |
||
43 | } |
||
44 | |||
46 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.