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

Annotation of /trunk/obj/om_sig_map_wms.class.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 398 - (hide annotations)
Thu Sep 20 13:10:52 2012 UTC (12 years, 4 months ago) by nhaye
File size: 2551 byte(s)
Régénération et correction de surcharges suite à la maj 4.3.0 d'OM

1 fraynaud 339 <?php
2     //$Id$
3     //gen openMairie le 27/06/2012 11:37
4     require_once ("../gen/obj/om_sig_map_wms.class.php");
5    
6     class om_sig_map_wms extends om_sig_map_wms_gen {
7    
8     function om_sig_map_wms($id,&$db,$debug) {
9     $this->constructeur($id,$db,$debug);
10     }// fin constructeur
11 nhaye 398
12     function setType(&$form,$maj) {
13     parent::setType($form,$maj);
14     if($maj<2){
15     $form->setType('om_sig_wms','select');
16     $form->setType('om_sig_map', 'hidden');
17     $form->setType('visibility', 'checkbox');
18     $form->setType('panier', 'checkbox');
19     $form->setType('pa_type_geometrie','select');
20     }
21    
22     if ($maj == 2 or $maj == 3) {
23     $form->setType('om_sig_wms','selectstatic');
24     $form->setType('pa_type_geometrie','selectstatic');
25     }
26 fraynaud 339 }
27 nhaye 398
28 fraynaud 339 function setTaille(&$form,$maj) {
29 nhaye 398 parent::setTaille($form,$maj);
30     //taille des champs affiches (text)
31     $form->setTaille('om_sig_wms',20);
32     $form->setTaille('ol_map',50);
33     $form->setTaille('ordre',4);
34     $form->setTaille('pa_nom',20);
35     $form->setTaille('pa_layer',50);
36     $form->setTaille('pa_attribut',50);
37     $form->setTaille('pa_encaps',3);
38     $form->setTaille('pa_type_geometrie',30);
39     }
40    
41     function setMax(&$form,$maj) {
42     parent::setMax($form,$maj);
43     $form->setMax('ol_map',50);
44     $form->setMax('ordre',4);
45     $form->setMax('pa_nom',50);
46     $form->setMax('pa_layer',50);
47     $form->setMax('pa_attribut',50);
48     $form->setMax('pa_encaps',3);
49     }
50    
51     function setLib(&$form,$maj) {
52     parent::setLib($form,$maj);
53     //libelle des champs
54     $form->setLib('om_sig_wms',_('flux WMS : '));
55     $form->setLib('ol_map',_('nom map OpenLayer : '));
56     $form->setLib('ordre',_('ordre : '));
57     $form->setLib('visibility',_('visible par defaut :'));
58     $form->setLib('pa_nom',_('nom du panier :'));
59     $form->setLib('pa_layer',_('couche :'));
60     $form->setLib('pa_attribut',_('attribut :'));
61     $form->setLib('pa_encaps',_('champ encapsulation :'));
62     $form->setLib('pa_sql',_('requete (&lst) :'));
63     $form->setLib('pa_type_geometrie',_('type de geometrie'));
64     }
65    
66     function setSelect(&$form, $maj,&$db,$debug) {
67     parent::setSelect($form, $maj,$db,$debug);
68    
69     if(file_exists ("../dyn/var_sig.inc")) {
70     include ("../dyn/var_sig.inc");
71     }
72    
73     $form->setSelect("pa_type_geometrie",$type_geometrie);
74     }
75    
76 fraynaud 339 }// fin classe
77 nhaye 398 ?>

Properties

Name Value
svn:executable *

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26