holds = array(); if (count($this->ids) > 0 && $this->ids[0]) { $req = "select map_emprises.map_emprise_id, map_emprises.map_emprise_obj_num, AsText(map_emprises.map_emprise_data) as map, map_hold_areas.bbox_area as bbox_area, map_hold_areas.center as center from map_emprises join map_hold_areas on map_emprises.map_emprise_id = map_hold_areas.id_obj where map_emprises.map_emprise_type=" . TYPE_SUR_LOCATION . " and map_emprises.map_emprise_obj_num in (" . implode(",", $this->ids) . ")"; $res = pmb_mysql_query($req, $dbh); if (pmb_mysql_num_rows($res)) { while ($r = pmb_mysql_fetch_object($res)) { $geometric = strtolower(substr($r->map, 0, strpos($r->map, "("))); $hold_class = "map_hold_" . $geometric; if (class_exists($hold_class)) { $emprise = new $hold_class("sur_location", $r->map_emprise_obj_num, $r->map); $emprise->set_normalized_bbox_area($r->bbox_area); $emprise->set_center($r->center); $this->holds[$r->map_emprise_id] = $emprise; } } } } $this->color = $pmb_map_holds_location_color; } // end of member function fetch_datas protected function get_layer_model_type() { return "sur_location"; } protected function get_layer_model_name() { return "sur_location"; } } // end of map_layer_model_records