X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FCiUtil%2FCsvPrinter.php;h=4c4ec185a3efbd5d542725af792503a1549dbbbf;hb=b9e9e8ddfd1460d4a855b2017a194d87930b58e3;hp=8d4a73fac9d9456b5dc3c7c5a4f0c90ab055a26f;hpb=d44a51e500618f1d9abfad4cc6de65cf20226c10;p=civicrm-core.git diff --git a/Civi/CiUtil/CsvPrinter.php b/Civi/CiUtil/CsvPrinter.php index 8d4a73fac9..4c4ec185a3 100644 --- a/Civi/CiUtil/CsvPrinter.php +++ b/Civi/CiUtil/CsvPrinter.php @@ -1,11 +1,20 @@ file = fopen($file, "w"); $this->headers = $headers; @@ -23,10 +32,15 @@ class CsvPrinter { $this->hasHeader = TRUE; } + /** + * @param $test + * @param $values + */ public function printRow($test, $values) { $this->printHeader(); $row = $values; array_unshift($row, $test); fputcsv($this->file, $row); } + }