/[openfoncier]/trunk/obj/parcelle.class.php
ViewVC logotype

Contents of /trunk/obj/parcelle.class.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 152 - (show annotations)
Thu Sep 29 15:23:51 2011 UTC (13 years, 4 months ago) by fraynaud
File size: 1421 byte(s)
mise au point sig interne



1 <?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
8 function parcelle($id,&$db,$debug) {
9 $this->constructeur($id,$db,$debug);
10 }// fin constructeur
11
12 function setvalF($val){
13 parent::setvalF($val);
14 // enlever les valeurs a ne pas saisir
15 unset ($this->valF['geom']);
16 // colone numerique
17 if(!is_numeric($val['surface'])) unset ($this->valF['surface']);
18 }
19
20 function verifier($val,&$db,$DEBUG){
21 $this->correct=true;
22 }
23
24 function setType(&$form,$maj) {
25 parent::setType($form,$maj);
26 if ($maj < 2) { //ajouter et modifier
27 $form->setType('geom', 'hidden');
28 $form->setType('section', 'hidden');
29 $form->setType('commune', 'hidden');
30 }
31 }
32
33
34 function setTaille(&$form, $maj) {
35 $form->setTaille('parcelle',6);
36 $form->setTaille('debut',4);
37 $form->setTaille('proprietaire',6);
38 $form->setTaille('pos',6);
39 $form->setTaille('rivoli',4);
40 $form->setTaille('sig',20);
41 }
42
43 function setMax(&$form, $maj) {
44 $form->setMax('parcelle',6);
45 $form->setMax('debut',4);
46 $form->setMax('proprietaire',6);
47 $form->setMax('pos',6);
48 $form->setMax('rivoli',4);
49 $form->setMax('sig',20);
50 }
51
52 }// fin classe
53 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26