\om_map

Définition de la classe 'om_map'.

Summary

Methods
Properties
Constants
__destruct()
__construct()
recupOmSigMap()
getSelectRestrict()
getGeoJsonDatas()
getGeoJsonCart()
getGeoJsonMarkers()
computeFilters()
recupOmSigflux()
setParamsExternalBaseLayer()
prepareJS()
setCanevas()
prepareCanevas()
prepareCanevasMenu()
prepareCanevasTitre()
prepareCanevasEdit()
prepareCanevasTools()
prepareCanevasInfos()
prepareCanevasPrint()
prepareCanevasLayers()
prepareCanevasNavigation()
prepareCanevasGetfeatures()
getComputeGeom()
prepareForm()
beforePrepareForm()
prepareFormSpecific()
prepareFormBeforeUpdate()
prepareFormAfterUpdate()
$defBaseProjection
$defDisplayProjection
$obj
$idx
$sql_lst_idx
$idx_sel
$popup
$seli
$etendue
$reqmo
$premier
$recherche
$selectioncol
$tricol
$advs_id
$valide
$style
$onglet
$type_utilisation
$affichageZones
$recordMultiComp
$recordMode
$recordFields
$sm_titre
$sm_source_flux
$sm_zoom
$sm_fond_sat
$sm_fond_osm
$sm_fond_bing
$sm_layer_info
$sm_fond_default
$sm_projection_externe
$sm_retour
$om_sig_map
$sm_url
$sm_om_sql
$sm_om_sql_idx
$sm_restrict_extent
$sm_sld_marqueur
$sm_sld_data
$sm_point_centrage
$sm_point_centrage_x
$sm_point_centrage_y
$cg_obj_class
$cg_maj
$cg_table
$cg_champ_idx
$cg_champ
$cg_geometrie
$cg_lib_geometrie
$fl_om_sig_map_flux
$fl_m_ol_map
$fl_m_visibility
$fl_m_panier
$fl_m_pa_nom
$fl_m_pa_layer
$fl_m_pa_attribut
$fl_m_pa_encaps
$fl_m_pa_sql
$fl_m_pa_type_geometrie
$fl_m_sql_filter
$fl_m_filter
$fl_m_baselayer
$fl_m_singletile
$fl_m_maxzoomlevel
$fl_w_libelle
$fl_w_attribution
$fl_w_id
$fl_w_chemin
$fl_w_couches
$fl_w_cache_type
$fl_w_cache_gfi_chemin
$fl_w_cache_gfi_couches
$pebl_http_google
$pebl_cle_bing
$pebl_cle_google
$pebl_zoom_osm_maj
$pebl_zoom_osm
$pebl_zoom_sat_maj
$pebl_zoom_sa
$pebl_zoom_bing_maj
$pebl_zoom_bing
$img_maj
$img_maj_hover
$img_consult
$img_consult_hover
$img_w
$img_h
$img_click
$cart_type
$edit_toolbar
$form_champ_maj
No constants found
init_om_application()
addToLog()
$f
N/A
No private methods found
No private properties found
N/A

Properties

$defBaseProjection

$defBaseProjection :

Projection base

Type

$defDisplayProjection

$defDisplayProjection :

Projection display

Type

$obj

$obj :

paramètre

Type

$idx

$idx :

paramètre

Type

$sql_lst_idx

$sql_lst_idx :

paramètre

Type

$idx_sel

$idx_sel :

paramètre

Type

$popup

$popup :

paramètre

Type

$seli

$seli :

paramètre

Type

$etendue

$etendue :

paramètre

Type

$reqmo

$reqmo :

paramètre

Type

$premier

$premier :

paramètre

Type

$recherche

$recherche :

paramètre

Type

$selectioncol

$selectioncol :

paramètre

Type

$tricol

$tricol :

paramètre

Type

$advs_id

$advs_id :

paramètre

Type

$valide

$valide :

paramètre

Type

$style

$style :

paramètre

Type

$onglet

$onglet :

paramètre

Type

$type_utilisation

$type_utilisation :

paramètre

Type

$affichageZones

$affichageZones :array

Gestion de l'affichage

Type

array

$recordMultiComp

$recordMultiComp :mixed

Gestion de l'enregistrement true: enregistrement de l'ensemble des champs géométriques ; false: enregistrement un par un des champs géométriques (par défaut)

Type

mixed

$recordMode

$recordMode :

1 (par défaut): via form_sig; 2 retour des valeurs dans des champs fournis dans le tableau recordFields

Type

$recordFields

$recordFields :array

listes des champs retour (même index que comp)

Type

array

$sm_titre

$sm_titre :

om_sig_map

Type

$sm_source_flux

$sm_source_flux :

om_sig_map

Type

$sm_zoom

$sm_zoom :

om_sig_map

Type

$sm_fond_sat

$sm_fond_sat :

om_sig_map

Type

$sm_fond_osm

$sm_fond_osm :

om_sig_map

Type

$sm_fond_bing

$sm_fond_bing :

om_sig_map

Type

$sm_layer_info

$sm_layer_info :

om_sig_map

Type

$sm_fond_default

$sm_fond_default :

om_sig_map

Type

$sm_projection_externe

$sm_projection_externe :

om_sig_map

Type

$sm_retour

$sm_retour :

om_sig_map

Type

$om_sig_map

$om_sig_map :

om_sig_map

Type

$sm_url

$sm_url :

om_sig_map

Type

$sm_om_sql

$sm_om_sql :

om_sig_map

Type

$sm_om_sql_idx

$sm_om_sql_idx :

om_sig_map

Type

$sm_restrict_extent

$sm_restrict_extent :

om_sig_map

Type

$sm_sld_marqueur

$sm_sld_marqueur :

om_sig_map

Type

$sm_sld_data

$sm_sld_data :

om_sig_map

Type

$sm_point_centrage

$sm_point_centrage :

om_sig_map

Type

$sm_point_centrage_x

$sm_point_centrage_x :

om_sig_map

Type

$sm_point_centrage_y

$sm_point_centrage_y :

om_sig_map

Type

$cg_obj_class

$cg_obj_class :array

champs geom

Type

array

$cg_maj

$cg_maj :array

champs geom

Type

array

$cg_table

$cg_table :array

champs geom

Type

array

$cg_champ_idx

$cg_champ_idx :array

champs geom

Type

array

$cg_champ

$cg_champ :array

champs geom

Type

array

$cg_geometrie

$cg_geometrie :array

champs geom

Type

array

$cg_lib_geometrie

$cg_lib_geometrie :array

champs geom

Type

array

$fl_om_sig_map_flux

$fl_om_sig_map_flux :array

champs flux

Type

array

$fl_m_ol_map

$fl_m_ol_map :array

champs flux

Type

array

$fl_m_visibility

$fl_m_visibility :array

champs flux

Type

array

$fl_m_panier

$fl_m_panier :array

champs flux

Type

array

$fl_m_pa_nom

$fl_m_pa_nom :array

champs flux

Type

array

$fl_m_pa_layer

$fl_m_pa_layer :array

champs flux

Type

array

$fl_m_pa_attribut

$fl_m_pa_attribut :array

champs flux

Type

array

$fl_m_pa_encaps

$fl_m_pa_encaps :array

champs flux

Type

array

$fl_m_pa_sql

$fl_m_pa_sql :array

champs flux

Type

array

$fl_m_pa_type_geometrie

$fl_m_pa_type_geometrie :array

champs flux

Type

array

$fl_m_sql_filter

$fl_m_sql_filter :array

champs flux

Type

array

$fl_m_filter

$fl_m_filter :array

champs flux

Type

array

$fl_m_baselayer

$fl_m_baselayer :array

champs flux

Type

array

$fl_m_singletile

$fl_m_singletile :array

champs flux

Type

array

$fl_m_maxzoomlevel

$fl_m_maxzoomlevel :array

champs flux

Type

array

$fl_w_libelle

$fl_w_libelle :array

champs flux

Type

array

$fl_w_attribution

$fl_w_attribution :array

champs flux

Type

array

$fl_w_id

$fl_w_id :array

champs flux

Type

array

$fl_w_chemin

$fl_w_chemin :array

champs flux

Type

array

$fl_w_couches

$fl_w_couches :array

champs flux

Type

array

$fl_w_cache_type

$fl_w_cache_type :array

champs flux

Type

array

$fl_w_cache_gfi_chemin

$fl_w_cache_gfi_chemin :array

champs flux

Type

array

$fl_w_cache_gfi_couches

$fl_w_cache_gfi_couches :array

champs flux

Type

array

$pebl_http_google

$pebl_http_google :

champ pour fonds de carte externes (Google)

Type

$pebl_cle_bing

$pebl_cle_bing :

champ pour fonds de carte externes (Bing)

Type

$pebl_cle_google

$pebl_cle_google :

champ pour fonds de carte externes (Google)

Type

$pebl_zoom_osm_maj

$pebl_zoom_osm_maj :

champ pour fonds de carte externes (OSM)

Type

$pebl_zoom_osm

$pebl_zoom_osm :

champ pour fonds de carte externes (OSM)

Type

$pebl_zoom_sat_maj

$pebl_zoom_sat_maj :

champ pour fonds de carte externes (Google)

Type

$pebl_zoom_sa

$pebl_zoom_sa :

champ pour fonds de carte externes (OSM, Bing, Google)

Type

$pebl_zoom_bing_maj

$pebl_zoom_bing_maj :

champ pour fonds de carte externes (Bing)

Type

$pebl_zoom_bing

$pebl_zoom_bing :

champ pour fonds de carte externes (Bing)

Type

$img_maj

$img_maj :string

paramètres de style pour la couche marqueur

Type

string

$img_maj_hover

$img_maj_hover :string

paramètres de style pour la couche marqueur

Type

string

$img_consult

$img_consult :string

paramètres de style pour la couche marqueur

Type

string

$img_consult_hover

$img_consult_hover :string

paramètres de style pour la couche marqueur

Type

string

$img_w

$img_w :integer

paramètres de style pour la couche marqueur

Type

integer

$img_h

$img_h :integer

paramètres de style pour la couche marqueur

Type

integer

$img_click

$img_click :string

paramètres de style pour la couche marqueur multiplicateur hauteur et largeur image cliquee

Type

string

$cart_type

$cart_type :array

gestion des paniers

Type

array

$edit_toolbar

$edit_toolbar :array

Tableau de la barre du menu d'édition menu (id html, false)

Type

array

$form_champ_maj

$form_champ_maj :array

Actions disponibles sur la mise à jour d'un champ geom.

Type

array

$f

$f :null|\application

Instance de la classe 'application'.

Type

null|\application

Methods

__destruct()

__destruct()

Destructeur.

__construct()

__construct(string  $obj,array  $options)

Constructeur.

Parameters

string $obj
array $options

recupOmSigMap()

recupOmSigMap(): 

Récupération du paramétrage de l'objet dans les tables om_sig_map et om_sig_map_comp. Préalable à toute utilisation de la classe.

Returns

getSelectRestrict()

getSelectRestrict(mixed  $idx,mixed  $seli): 

Génère un tableau (idx, sql_lst_idx) correspondant aux données idx/Reqmo/Recherche.

Parameters

mixed $idx
mixed $seli

Returns

getGeoJsonDatas()

getGeoJsonDatas(string  $idx,string  $seli): 

Génère un tableau GeoJson correspondant aux données idx/Reqmo/Recherche.

Parameters

string $idx
string $seli

Returns

getGeoJsonCart()

getGeoJsonCart(mixed  $cart,mixed  $lst): 

Génère un tableau GeoJson correspondant au panier $cart (n de flux) avec la liste des enregistrement $lst.

Parameters

mixed $cart
mixed $lst

Returns

getGeoJsonMarkers()

getGeoJsonMarkers(mixed  $idx): 

Génère un tableau GeoJson correspondant aux données idx/Reqmo/Recherche

Parameters

mixed $idx

Returns

computeFilters()

computeFilters(  $idx): 

calcul des filtres pour les flux de type WMS (fl_m_filter)

Parameters

$idx

Returns

recupOmSigflux()

recupOmSigflux(): void

Récupération du paramétrage des flux associés à l'objet dans les tables om_sig_map_flux et om_sig_map_flux

setParamsExternalBaseLayer()

setParamsExternalBaseLayer(): void

Initialisation des propriétés relatives aux fonds de carte externe, ajout des librairies associées si nécessaire.

prepareJS()

prepareJS(): void

Ecrit les propriétés de l'instance dans la page html pour JavaScript

setCanevas()

setCanevas(mixed  $zone,mixed  $val): 

Paramétrage des zones du canevas

Parameters

mixed $zone
mixed $val

Returns

prepareCanevas()

prepareCanevas(): void

Préparation du canevas html: pilote les autres fonctions prepareCanevas.

prepareCanevasMenu()

prepareCanevasMenu(): void

Préparation du canevas html: menu avec regroupement (au moins une valeur à 1)

prepareCanevasTitre()

prepareCanevasTitre(): void

Préparation du canevas html: Titre

prepareCanevasEdit()

prepareCanevasEdit(): void

Préparation du canevas html: fonctions d'éditions

prepareCanevasTools()

prepareCanevasTools(): void

Préparation du canevas html: boite à outils

prepareCanevasInfos()

prepareCanevasInfos(): void

Préparation du canevas html: Informations

prepareCanevasPrint()

prepareCanevasPrint(): void

Préparation du canevas html: Impressions

prepareCanevasLayers()

prepareCanevasLayers(): void

Préparation du canevas html: Menu des couches

prepareCanevasNavigation()

prepareCanevasNavigation(): void

Préparation du canevas html: navigation

prepareCanevasGetfeatures()

prepareCanevasGetfeatures(): void

Préparation du canevas html: getFeature

getComputeGeom()

getComputeGeom(mixed  $seli,mixed  $geojson): 

Calcul la géométrie validé dans l'interface

Parameters

mixed $seli
mixed $geojson

Returns

prepareForm()

prepareForm(integer  $min,integer  $max,integer  $validation,mixed  $geojson): 

Préparation du canevas html: pilote les autres fonctions prepareCanevas.

..

Parameters

integer $min
integer $max
integer $validation
mixed $geojson

Returns

beforePrepareForm()

beforePrepareForm(integer  $min,integer  $max,integer  $validation,mixed  $geojson): string

Fonction pour surcharge de prepareForm: execute ou non le prepareForm en fonction du return 'chaine vide ok".

Parameters

integer $min
integer $max
integer $validation
mixed $geojson

Returns

string

prepareFormSpecific()

prepareFormSpecific(integer  $min,integer  $max,integer  $validation,mixed  $geojson): string

Point d'entrée pour surcharge de la méthode om_map::prepareForm().

Parameters

integer $min
integer $max
integer $validation
mixed $geojson

Returns

string

prepareFormBeforeUpdate()

prepareFormBeforeUpdate(integer  $min,integer  $max,integer  $validation,mixed  $geojson): string

Fonction pour surcharge dans prepareForm: avant l'exécution des requètes de modification des champs géométriques retourner t si ok, sinon retourner le message à afficher.

Parameters

integer $min
integer $max
integer $validation
mixed $geojson

Returns

string

prepareFormAfterUpdate()

prepareFormAfterUpdate(integer  $min,integer  $max,integer  $validation,mixed  $geojson): string

Fonction pour surcharge dans prepareForm: après l'exécution des requètes de modification des champs géométriques et avant le commit retourner t si ok, sinon retourner le message à afficher.

Parameters

integer $min
integer $max
integer $validation
mixed $geojson

Returns

string

init_om_application()

init_om_application(): boolean

Initialisation de la classe 'application'.

Cette méthode permet de vérifier que l'attribut f de la classe contient bien la ressource utils du framework et si ce n'est pas le cas de la récupérer.

Returns

boolean

addToLog()

addToLog(string  $message,integer  $type = DEBUG_MODE): void

Ajout d'un message au système de logs.

Cette méthode permet de logger un message.

Parameters

string $message

Message à logger.

integer $type

Niveau de log du message.