1 |
fraynaud |
3 |
<?php |
2 |
|
|
//$Id$ |
3 |
|
|
//gen openMairie le 10/02/2011 20:40 |
4 |
|
|
require_once ("../gen/obj/parcelle.class.php"); |
5 |
|
|
|
6 |
|
|
class parcelle extends parcelle_gen { |
7 |
fraynaud |
38 |
|
8 |
|
|
function setvalF($val){ |
9 |
|
|
parent::setvalF($val); |
10 |
|
|
// enlever les valeurs a ne pas saisir |
11 |
|
|
unset ($this->valF['geom']); |
12 |
|
|
unset ($this->valF['sig']); |
13 |
|
|
// colone numerique |
14 |
|
|
if(!is_numeric($val['surface'])) unset ($this->valF['surface']); |
15 |
|
|
} |
16 |
fraynaud |
3 |
|
17 |
fraynaud |
38 |
function verifier($val,&$db,$DEBUG){ |
18 |
|
|
$this->correct=true; |
19 |
|
|
} |
20 |
|
|
|
21 |
fraynaud |
9 |
function parcelle($id,&$db,$debug) { |
22 |
|
|
$this->constructeur($id,$db,$debug); |
23 |
|
|
}// fin constructeur |
24 |
|
|
|
25 |
|
|
function setTaille(&$form, $maj) { |
26 |
|
|
$form->setTaille('parcelle',6); |
27 |
|
|
$form->setTaille('debut',4); |
28 |
|
|
$form->setTaille('proprietaire',6); |
29 |
|
|
$form->setTaille('pos',6); |
30 |
|
|
$form->setTaille('rivoli',4); |
31 |
|
|
$form->setTaille('sig',20); |
32 |
|
|
} |
33 |
|
|
|
34 |
|
|
function setMax(&$form, $maj) { |
35 |
|
|
$form->setMax('parcelle',6); |
36 |
|
|
$form->setMax('debut',4); |
37 |
|
|
$form->setMax('proprietaire',6); |
38 |
|
|
$form->setMax('pos',6); |
39 |
|
|
$form->setMax('rivoli',4); |
40 |
|
|
$form->setMax('sig',20); |
41 |
|
|
} |
42 |
fraynaud |
3 |
|
43 |
|
|
}// fin classe |
44 |
|
|
?> |