7 include_once (
'WHAT/Class.Param.php');
15 $appid =
$usage->addRequiredParameter(
"appid",
"application id");
16 $name =
$usage->addRequiredParameter(
"name",
"parameter name");
17 $type =
$usage->addRequiredParameter(
"type",
"type of parameter");
18 $value =
$usage->addOptionalParameter(
"value",
"value for parameter");
22 header(
'Content-type: text/xml; charset=utf-8');
29 "parameterid" => $name,
36 $out[
"success"] =
false;
37 $out[
"errors"] = sprintf(_(
"Application not found: [%s]") ,
$appid);
45 if (
$param->isAffected()) {
50 $out[
"success"] =
false;
51 $out[
"errors"] = sprintf(_(
"an error has occured: %s") ,
$err);
54 $out[
"modify"] =
true;
58 $out[
"errors"] = sprintf(_(
"Parameter [%s] not found") , $name);
59 $out[
"success"] =
false;
63 $action->lay->set(
"success",
$out[
"success"]);
64 $action->lay->set(
"warning",
$out[
"errors"]);
65 $action->lay->set(
"count", 1);
66 $action->lay->set(
"parameterid",
$out[
"parameterid"]);
67 $action->lay->set(
"modify",
$out[
"modify"]);
modapplicationparameter(Action &$action)
Verify arguments for action function.
if($file) if($subject==""&&$file) if($subject=="") $err