/** * populates the member fields of a new object from the data in the http-post-request * to rebuild the object after the submission of the html-form. * * creates its own child objects from the post parameters and calls their * generateObjectFromPost(...) function * * @param string $id string that contains a prefix for the html-form-fields * that is common to all of the fields belonging to this object */ function generateObjectFromPost($id = "") { if (isset($_REQUEST[$id . "_stroke"])) { $this->stroke = new Stroke(); $this->stroke->generateObjectFromPost($id . "_stroke"); } }
/** * populates the member fields of a new object from the data in the http-post-request * to rebuild the object after the submission of the html-form. * * creates its own child objects from the post parameters and calls their * generateObjectFromPost(...) function * * @param string $id string that contains a prefix for the html-form-fields * that is common to all of the fields belonging to this object */ function generateObjectFromPost($id = "") { if (isset($_REQUEST[$id . "_graphic"])) { $this->graphic = new Graphic(); $this->graphic->generateObjectFromPost($id . "_graphic"); } }
/** * populates the member fields of a new object from the data in the http-post-request * to rebuild the object after the submission of the html-form. * * creates its own child objects from the post parameters and calls their * generateObjectFromPost(...) function * * @param string $id string that contains a prefix for the html-form-fields * that is common to all of the fields belonging to this object */ function generateObjectFromPost($id = "") { //Todo - Unterscheidung von PointPlacement und anderen Placements (wenn vorhanden) //not supported by Mapserver if (isset($_REQUEST[$id . "_placement"])) { $this->placement = new PointPlacement(); $this->placement->generateObjectFromPost($id . "_placement"); } }
/** * populates the member fields of a new object from the data in the http-post-request * to rebuild the object after the submission of the html-form. * * creates its own child objects from the post parameters and calls their * generateObjectFromPost(...) function * * @param string $id string that contains a prefix for the html-form-fields * that is common to all of the fields belonging to this object */ function generateObjectFromPost($id = "") { if (isset($_REQUEST[$id . "_opacity"])) { $this->opacity = $_REQUEST[$id . "_opacity"]; } if (isset($_REQUEST[$id . "_colormap"])) { $this->colormap = new ColorMap(); $this->colormap->generateObjectFromPost($id . "_colormap"); } }
/** * populates the member fields of a new object from the data in the http-post-request * to rebuild the object after the submission of the html-form. * * creates its own child objects from the post parameters and calls their * generateObjectFromPost(...) function * * @param string $id string that contains a prefix for the html-form-fields * that is common to all of the fields belonging to this object */ function generateObjectFromPost($id = "") { if (isset($_REQUEST[$id . "_wellknownname"])) { $this->wellknownname = $_REQUEST[$id . "_wellknownname"]; } if (isset($_REQUEST[$id . "_fill"])) { $this->fill = new Fill(); $this->fill->generateObjectFromPost($id . "_fill"); } if (isset($_REQUEST[$id . "_stroke"])) { $this->stroke = new Stroke(); $this->stroke->generateObjectFromPost($id . "_stroke"); } }
/** * populates the member fields of a new object from the data in the http-post-request * to rebuild the object after the submission of the html-form. * * creates its own child objects from the post parameters and calls their * generateObjectFromPost(...) function * * @param string $id string that contains a prefix for the html-form-fields * that is common to all of the fields belonging to this object */ function generateObjectFromPost($id = "") { if (isset($_REQUEST[$id . "_anchorpoint"])) { $this->anchorpoint = new AnchorPoint(); $this->anchorpoint->generateObjectFromPost($id . "_anchorpoint"); } if (isset($_REQUEST[$id . "_displacement"])) { $this->displacement = new Displacement(); $this->displacement->generateObjectFromPost($id . "_displacement"); } if (isset($_REQUEST[$id . "_rotation"])) { $this->rotation = $_REQUEST[$id . "_rotation"]; } }
/** * populates the member fields of a new object from the data in the http-post-request * to rebuild the object after the submission of the html-form. * * creates its own child objects from the post parameters and calls their * generateObjectFromPost(...) function * * @param string $id string that contains a prefix for the html-form-fields * that is common to all of the fields belonging to this object */ function generateObjectFromPost($id = "") { $this->name = $_REQUEST[$id . "_name"]; $this->title = $_REQUEST[$id . "_title"]; $this->filter = $_REQUEST[$id . "_filter"]; $this->minscaledenominator = $_REQUEST[$id . "_minscale"]; $this->maxscaledenominator = $_REQUEST[$id . "_maxscale"]; if (isset($_REQUEST[$id . "_legendgraphic"])) { $this->legendgraphic = new LegendGraphic(); $this->legendgraphic->generateObjectFromPost($id . "_legendgraphic"); } $countSymbolizers = 0; while (isset($_REQUEST[$id . "_symbolizer_" . $countSymbolizers])) { $symbolizer = ""; if ($_REQUEST[$id . "_symbolizer_" . $countSymbolizers] == "linesymbolizer") { $symbolizer = new LineSymbolizer(); } else { if ($_REQUEST[$id . "_symbolizer_" . $countSymbolizers] == "polygonsymbolizer") { $symbolizer = new PolygonSymbolizer(); } else { if ($_REQUEST[$id . "_symbolizer_" . $countSymbolizers] == "pointsymbolizer") { $symbolizer = new PointSymbolizer(); } else { if ($_REQUEST[$id . "_symbolizer_" . $countSymbolizers] == "textsymbolizer") { $symbolizer = new TextSymbolizer(); } else { if ($_REQUEST[$id . "_symbolizer_" . $countSymbolizers] == "rastersymbolizer") { $symbolizer = new RasterSymbolizer(); } } } } } $symbolizer->generateObjectFromPost($id . "_symbolizer_" . $countSymbolizers); $this->symbolizers[] = $symbolizer; $countSymbolizers++; } }
/** * populates the member fields of a new object from the data in the http-post-request * to rebuild the object after the submission of the html-form. * * creates its own child objects from the post parameters and calls their * generateObjectFromPost(...) function * * @param string $id string that contains a prefix for the html-form-fields * that is common to all of the fields belonging to this object */ function generateObjectFromPost($id = "") { if (isset($_REQUEST[$id . "_label"])) { $this->label = new ParameterValue(); $this->label->value = $_REQUEST[$id . "_label"]; } if (isset($_REQUEST[$id . "_font"])) { $this->font = new Font(); $this->font->generateObjectFromPost($id . "_font"); } if (isset($_REQUEST[$id . "_labelplacement"])) { $this->labelplacement = new LabelPlacement(); $this->labelplacement->generateObjectFromPost($id . "_labelplacement"); } if (isset($_REQUEST[$id . "_halo"])) { $this->halo = new Halo(); $this->halo->generateObjectFromPost($id . "_halo"); } if (isset($_REQUEST[$id . "_fill"])) { $this->fill = new Fill(); $this->fill->generateObjectFromPost($id . "_fill"); } }