17 include_once (
"DATA/Class.Document.php");
32 $this->name =
$app->name;
43 $this->error = sprintf(_(
"application not initialized"));
46 $out->value = $this->_app->getParam($key, null);
47 if (
$out->value === null) $this->error = sprintf(_(
"parameter %s not exists") , $key);
48 $js = json_decode(
$out->value);
49 if ($js)
$out->value = $js;
51 $out->error = $this->error;
61 $this->error = sprintf(_(
"application not initialized"));
65 if ($op->isAffected()) {
66 if ($op->isuser ==
"Y") {
67 $this->_app->setParamU($key,
$nv);
68 $out->value = $this->_app->getParam($key);
69 }
else $this->error = sprintf(_(
"not authorized : parameter %s is not a user parameter") , $key);
71 $this->error = sprintf(_(
"parameter %s not exists") , $key);
74 $out->error = $this->error;
83 "id" => $this->_app->id,
84 "name" => $this->_app->name,
85 "description" => $this->_app->description ? _($this->_app->description) :
'',
86 "label" => $this->_app->short_name ? _($this->_app->short_name) :
'',
87 "icon" => $this->_app->icon ?
'Images/' . $this->_app->icon :
'',
88 "available" => ($this->_app->available !=
'N') ,
89 "version" => $this->_app->getParam(
"VERSION") ,
90 "displayable" => ($this->_app->displayable !=
'N')
102 $queryact->AddQuery(sprintf(
"id_application=%d", $this->
id));
103 $queryact->AddQuery(
"available!='N'");
104 $listact = $queryact->Query(0, 0,
"TABLE");
106 foreach ($listact as $k => $v) {
107 if ($this->_app->HasPermission($v[
"acl"])) {
110 "name" => $v[
"name"],
111 "root" => ($v[
"root"] ==
"Y") ,
112 "label" => ($v[
"short_name"]) ? _($v[
"short_name"]) :
''