10,7 → 10,9 |
private $indexLongitude; |
|
private $points = array(); |
private $nombrePoints = 0; |
private $nombrePoints; |
private $observations = array(); |
private $nombreObservations; |
|
|
public function __construct($sud, $ouest, $nord, $est, $indexLat, $indexLng) { |
22,9 → 24,11 |
$this->indexLongitude = $indexLng; |
} |
|
public function ajouterPoint(& $point) { |
public function ajouterPoint($point) { |
$this->points[] = $point; |
$this->nombrePoints ++; |
$this->observations[] = $point['observations']; |
$this->nombreObservations += $point['observations']; |
} |
|
public function getLatitudeNord() { |
51,18 → 55,31 |
return $this->indexLongitude; |
} |
|
public function getPoints() { |
return $this->points; |
} |
|
public function getNombrePoints() { |
return $this->nombrePoints; |
} |
|
public function getPoint($index = 0) { |
return (!isset($this->points[$index])) ? NULL : $this->points[$index]; |
public function getObservations() { |
return $this->observations; |
} |
|
public function getNombreObservations() { |
return $this->nombreObservations; |
} |
|
public function totalNonNul() { |
return !is_null($this->nombrePoints); |
return count($this->points) > 0; |
} |
|
public function combinerMailles(& $maille) { |
$this->nombrePoints += $maille->nombre_sites; |
$this->nombreObservations += $maille->nombre_observations; |
} |
|
} |
|
?> |