Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3505 Rev 3507
Line 29... Line 29...
29
	private $chpsEtendus = null;
29
	private $chpsEtendus = null;
30
	private $donnees = null;
30
	private $donnees = null;
Line 31... Line 31...
31
 
31
 
32
	public function __construct($config) {
32
	public function __construct($config) {
33
		parent::__construct($config);
33
		parent::__construct($config);
34
		$this->rechercheObs = new RechercheObservation($config);
34
		$this->rechercheObs = new RechercheObservationExport($config, array("standard"=>"0"));
Line 35... Line 35...
35
		$this->chpsEtendus = new GestionChampsEtendus($config, 'obs');
35
		$this->chpsEtendus = new GestionChampsEtendus($config, 'obs');
36
 
36
 
Line 47... Line 47...
47
	public function getElement($ressources){
47
	public function getElement($ressources){
48
		$retour = false;
48
		$retour = false;
49
		$idObs = $ressources[0];
49
		$idObs = $ressources[0];
50
		if (isset($idObs) && preg_match('/^[0-9]+$/', $idObs)) {
50
		if (isset($idObs) && preg_match('/^[0-9]+$/', $idObs)) {
Line 51... Line 51...
51
 
51
 
52
			$criteres = array('id_observation' => $idObs, 'transmission' => 1);
52
			$criteres = array('id_observation' => $idObs, 'transmission' => 1, 'standard' => 0);
Line 53... Line 53...
53
			$obsTrouvee = $this->rechercheObs->rechercherObservations(null, $criteres, 0, 1)->get();
53
			$obsTrouvee = $this->rechercheObs->rechercherObservations(null, $criteres, 0, 1)->get();
54
 
54
 
55
			$observation = array();
55
			$observation = array();