X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FCiUtil%2FCsvPrinter.php;h=4c4ec185a3efbd5d542725af792503a1549dbbbf;hb=b9e9e8ddfd1460d4a855b2017a194d87930b58e3;hp=9cab44a90fc32883f803aa67180954d9cbbdef2a;hpb=d92623decb352eab5b403d0c9cab181a831bfaac;p=civicrm-core.git diff --git a/Civi/CiUtil/CsvPrinter.php b/Civi/CiUtil/CsvPrinter.php index 9cab44a90f..4c4ec185a3 100644 --- a/Civi/CiUtil/CsvPrinter.php +++ b/Civi/CiUtil/CsvPrinter.php @@ -1,17 +1,26 @@ file = fopen($file, "w"); $this->headers = $headers; } - function printHeader() { + public function printHeader() { if ($this->hasHeader) { return; } @@ -23,10 +32,15 @@ class CsvPrinter { $this->hasHeader = TRUE; } - function printRow($test, $values) { + /** + * @param $test + * @param $values + */ + public function printRow($test, $values) { $this->printHeader(); $row = $values; array_unshift($row, $test); fputcsv($this->file, $row); } -} \ No newline at end of file + +}