Autoloading : Add Export Csv to a new class

This commit is contained in:
Michael RICOIS 2013-11-25 14:58:04 +00:00
parent 763dd9b483
commit 83d80a5045
2 changed files with 2 additions and 3 deletions

View File

@ -1182,8 +1182,7 @@ class RechercheController extends Zend_Controller_Action
$c = Zend_Registry::get('config');
$file = $c->profil->path->files . '/'.$user->getIdClient().'-'.$user->getLogin().'-'.date('YmdHis').'.csv';
require_once 'Scores/ExportCSV.php';
$export = new ExportCSV($etabs, 'rechercheEntreprise');
$export = new Scores_Export_ArrayCsv($etabs, 'rechercheEntreprise');
$export->writeFile($file);
$content_type = 'application/csv-tab-delimited-table';

View File

@ -1,5 +1,5 @@
<?php
class ExportCSV
class Scores_Export_ArrayCsv
{
protected $entete = array();
protected $enteteKey = array();