1 |
<?php |
2 |
//$Id$ |
3 |
//gen openMairie le 11/05/2012 14:50 |
4 |
require_once ("../gen/obj/om_sig_wms.class.php"); |
5 |
|
6 |
class om_sig_wms extends om_sig_wms_gen { |
7 |
|
8 |
function om_sig_wms($id,&$db,$debug) { |
9 |
$this->constructeur($id,$db,$debug); |
10 |
}// fin constructeur |
11 |
//-- AB-DEB 2012-05-11 - divers |
12 |
function verifier($val,&$db,$DEBUG) { |
13 |
parent::verifier($val,$db,$DEBUG); |
14 |
if ($this->valF['id']==""){ |
15 |
$this->msg= $this->msg." id obligatoire"; |
16 |
$this->correct=False; |
17 |
} |
18 |
if ($this->valF['libelle']==""){ |
19 |
$this->msg= $this->msg." libelle obligatoire"; |
20 |
$this->correct=False; |
21 |
} |
22 |
if ($this->valF['chemin']==""){ |
23 |
$this->msg= $this->msg." chemin obligatoire"; |
24 |
$this->correct=False; |
25 |
} |
26 |
if ($this->valF['couches']==""){ |
27 |
$this->msg= $this->msg." couches obligatoire"; |
28 |
$this->correct=False; |
29 |
} |
30 |
|
31 |
} // fin verifier [end verify] |
32 |
|
33 |
function setTaille(&$form,$maj) { |
34 |
parent::setTaille($form,$maj); |
35 |
//taille des champs affiches (text) |
36 |
$form->setTaille('om_sig_wms',4); |
37 |
$form->setTaille('om_collectivite',4); |
38 |
$form->setTaille('id',20); |
39 |
$form->setTaille('libelle',30); |
40 |
$form->setTaille('chemin',150); |
41 |
$form->setTaille('couches',150); |
42 |
} |
43 |
function setMax(&$form,$maj) { |
44 |
parent::setMax($form,$maj); |
45 |
$form->setMax('om_sig_wms',4); |
46 |
$form->setMax('om_collectivite',4); |
47 |
$form->setMax('id',50); |
48 |
$form->setMax('libelle',50); |
49 |
$form->setMax('chemin',255); |
50 |
$form->setMax('couches',255); |
51 |
} |
52 |
|
53 |
function setLib(&$form,$maj) { |
54 |
parent::setLib($form,$maj); |
55 |
//libelle des champs |
56 |
$form->setLib('libelle',_('libellé : ')); |
57 |
$form->setLib('chemin',_('chemin (url) : ')); |
58 |
$form->setLib('couches',_('couches (séparées par ,) : ')); |
59 |
} |
60 |
//-- AB-FIN 2012-05-11 - divers |
61 |
}// fin classe |
62 |
?> |