From: Maxious Date: Mon, 17 Sep 2012 09:26:22 +0000 Subject: add positions like ministers X-Git-Url: https://maxious.lambdacomplex.org/git/?p=disclosr.git&a=commitdiff&h=36978577f234b373328e513c36baf9a457e160aa --- add positions like ministers Former-commit-id: 530348e74a431e061f4c15a5ee6d6b37db3efed5 --- --- a/alaveteli/exportAgencies.csv.php +++ b/alaveteli/exportAgencies.csv.php @@ -95,6 +95,13 @@ fputcsv($fp, array_values($row)); } } + if (isset($agency->value->positions)) { + foreach ($agency->value->positions as $position) { + $row['name'] = iconv("UTF-8", "ASCII//TRANSLIT",$position); + $row["short_name"] = shortName($position); + fputcsv($fp, array_values($row)); + } + } } } } catch (SetteeRestClientException $e) {