public function getlink($parameters, $parametersDeleted = "action", $autoparent = true) { $aParameters = http_explode($parameters); $aParametersDeleted = explode("&", $parametersDeleted); $globalParemeters = $this->parameters; if ($autoparent) { $aParameters["parentform"] = $this->formid; $aParameters["parentobject"] = $this->parameters["object"]; $aParameters["parentaction"] = $this->parameters["action"]; $aParameters["parentidentifier"] = $this->parameters["identifier"]; } foreach ($globalParemeters as $parameter => $value) { // delete parameters from global accord to paramsdeleted if (in_array($parameter, $aParametersDeleted)) { unset($globalParemeters[$parameter]); } } $aLinkParameters = array_merge($globalParemeters, $aParameters); // just merge global parameters with parameters sent $link = "nothing=nothing&"; foreach ($aLinkParameters as $parameter => $value) { if (!isset($aParametersDeleted[$parameter])) { $link .= "&" . $parameter . "=" . $value; } } return $link; }
function get_param($cparam, $ckey, $delimiter = '|', $convert = true) { if (is_null($delimiter)) { $delimiter = '|'; } if ($delimiter == "array") { $delimiter = "|"; $cparam = implode("|", $cparam); } $a_parameters = http_explode($cparam, $delimiter); if ($a_parameters == null) { return ""; } $lvalue = f_getfromARowOne($a_parameters, $ckey); if ($convert == true) { $lvalue = str_replace(":", "=", $lvalue); } return $lvalue; }