/** * 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."_graphicfill"])) // { // $this->graphicfill = new GraphicFill(); // $this->graphicfill->generateObjectFromPost($id."_graphicfill"); // } // if (isset($_REQUEST[$id."_graphicstroke"])) // { // $this->graphicstroke = new GraphicStroke(); // $this->graphicstroke->generateObjectFromPost($id."_graphicstroke"); // } $countCssParameters = 0; while (isset($_REQUEST[$id . "_cssparameter_" . $countCssParameters])) { $cssParameter = new CssParameter(); $cssParameter->generateObjectFromPost($id . "_cssparameter_" . $countCssParameters); $this->cssparameters[] = $cssParameter; $countCssParameters++; } }
/** * 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 = "") { $countCssParameters = 0; while (isset($_REQUEST[$id . "_cssparameter_" . $countCssParameters])) { $cssParameter = new CssParameter(); $cssParameter->generateObjectFromPost($id . "_cssparameter_" . $countCssParameters); $this->cssparameters[] = $cssParameter; $countCssParameters++; } }