Subversion Repositories eFlore/Applications.cel

Rev

Rev 1571 | Rev 1610 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1571 Rev 1579
Line 60... Line 60...
60
		'date_fin' => 'date_fin',
60
		'date_fin' => 'date_fin',
61
		'taxon' => 'taxon'
61
		'taxon' => 'taxon'
62
	);
62
	);
Line 63... Line 63...
63
	
63
	
-
 
64
	private $format = 'csv';
-
 
65
	
-
 
66
	public function getRessource() {
-
 
67
		return $this->getElement(array());
Line 64... Line 68...
64
	private $format = 'csv';
68
	}
65
		
69
		
66
	/**
70
	/**
67
	 * Méthode appelée avec une requête de type GET.
71
	 * Méthode appelée avec une requête de type GET.
Line 79... Line 83...
79
		
83
		
80
		unset($criteres['limite']);
84
		unset($criteres['limite']);
Line 81... Line 85...
81
		unset($criteres['debut']);
85
		unset($criteres['debut']);
82
	
-
 
-
 
86
	
83
		$observations = $chercheur_observations->rechercherObservations(null, $criteres, $numero_page, $limite);
87
		$observations = $chercheur_observations->rechercherObservations(null, $criteres, $numero_page, $limite);
84
		//echo count($observations);exit;
88
 
85
		switch($this->format) {
89
		switch($this->format) {
86
			case 'csv':
90
			case 'csv':
87
				$csv = $this->convertirEnCsv($observations);
91
				$csv = $this->convertirEnCsv($observations);