Subversion Repositories eFlore/Applications.moissonnage

Rev

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

Rev 26 Rev 31
Line 8... Line 8...
8
	private $longitudeEst;
8
	private $longitudeEst;
9
	private $indexLatitude;
9
	private $indexLatitude;
10
	private $indexLongitude;
10
	private $indexLongitude;
Line 11... Line 11...
11
	
11
	
12
	private $points = array();
12
	private $points = array();
-
 
13
	private $nombrePoints;
-
 
14
	private $observations = array();
Line 13... Line 15...
13
	private $nombrePoints = 0;
15
	private $nombreObservations;
14
	
16
	
15
	
17
	
Line 20... Line 22...
20
		$this->longitudeEst = $est;
22
		$this->longitudeEst = $est;
21
		$this->indexLatitude = $indexLat;
23
		$this->indexLatitude = $indexLat;
22
		$this->indexLongitude = $indexLng;
24
		$this->indexLongitude = $indexLng;
23
	}
25
	}
Line 24... Line 26...
24
	
26
	
25
	public function ajouterPoint(& $point) {
27
	public function ajouterPoint($point) {
26
		$this->points[] = $point;
28
		$this->points[] = $point;
-
 
29
		$this->nombrePoints ++;
-
 
30
		$this->observations[] = $point['observations'];
27
		$this->nombrePoints ++;
31
		$this->nombreObservations += $point['observations'];
Line 28... Line 32...
28
	}
32
	}
29
	
33
	
30
	public function getLatitudeNord() {
34
	public function getLatitudeNord() {
Line 49... Line 53...
49
	
53
	
50
	public function getIndexLongitude() {
54
	public function getIndexLongitude() {
51
		return $this->indexLongitude;
55
		return $this->indexLongitude;
Line -... Line 56...
-
 
56
	}
-
 
57
	
-
 
58
	public function getPoints() {
-
 
59
		return $this->points;
52
	}
60
	}
53
	
61
	
54
	public function getNombrePoints() {
62
	public function getNombrePoints() {
Line 55... Line 63...
55
		return $this->nombrePoints;
63
		return $this->nombrePoints;
56
	}
64
	}
57
	
65
	
Line -... Line 66...
-
 
66
	public function getObservations() {
-
 
67
		return $this->observations;
-
 
68
	}
-
 
69
	
58
	public function getPoint($index = 0) {
70
	public function getNombreObservations() {
59
		return (!isset($this->points[$index])) ? NULL : $this->points[$index];
71
		return $this->nombreObservations;
-
 
72
	}
-
 
73
 
-
 
74
	public function totalNonNul() {
-
 
75
		return count($this->points) > 0;
-
 
76
	}
60
	}
77
	
Line 61... Line 78...
61
	
78
	public function combinerMailles(& $maille) {
Line 62... Line 79...
62
	public function totalNonNul() {
79
		$this->nombrePoints += $maille->nombre_sites;
63
		return !is_null($this->nombrePoints);
80
		$this->nombreObservations += $maille->nombre_observations;