24 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
38 $a_c_type, $a_c_name, $a_slot_id)
42 include_once(
"./Services/Component/classes/class.ilPluginSlot.php");
43 $this->slot =
new ilPluginSlot($a_c_type, $a_c_name, $a_slot_id);
48 $this->
addColumn($lng->txt(
"cmps_plugin"));
49 $this->
addColumn($lng->txt(
"cmps_basic_files"));
50 $this->
addColumn($lng->txt(
"cmps_languages"));
51 $this->
addColumn($lng->txt(
"cmps_database"));
56 "Services/Component");
64 $this->
setTitle($lng->txt(
"cmps_plugins"));
72 $plugins = $this->slot->getPluginsInformation();
85 $ilCtrl->setParameter($this->parent_obj,
"ctype",
$_GET[
"ctype"]);
86 $ilCtrl->setParameter($this->parent_obj,
"cname",
$_GET[
"cname"]);
87 $ilCtrl->setParameter($this->parent_obj,
"slot_id",
$_GET[
"slot_id"]);
88 $ilCtrl->setParameter($this->parent_obj,
"pname", $a_set[
"name"]);
97 include_once(
"./Services/Component/classes/class.ilPluginDBUpdate.php");
99 $_GET[
"slot_id"], $a_set[
"name"], $ilDB,
true,
"");
114 $this->tpl->setCurrentBlock(
"db_versions");
115 $this->tpl->setVariable(
"TXT_CURRENT_VERSION",
116 $lng->txt(
"cmps_current_version"));
117 $this->tpl->setVariable(
"VAL_CURRENT_VERSION",
118 $dbupdate->getCurrentVersion());
119 $this->tpl->setVariable(
"TXT_FILE_VERSION",
120 $lng->txt(
"cmps_file_version"));
121 $this->tpl->setVariable(
"VAL_FILE_VERSION",
122 $dbupdate->getFileVersion());
123 $this->tpl->parseCurrentBlock();
125 $this->tpl->setCurrentBlock(
"db_update");
126 $this->tpl->setVariable(
"DB_UPDATE_FILE",
131 $this->tpl->setCurrentBlock(
"db_update");
132 $this->tpl->setVariable(
"DB_UPDATE_FILE",
133 $lng->txt(
"cmps_no_db_update_file_available"));
135 $this->tpl->parseCurrentBlock();
140 $a_set[
"name"].
"/lang");
141 if (count($langs) == 0)
143 $this->tpl->setCurrentBlock(
"lang");
144 $this->tpl->setVariable(
"VAL_LANG_FILE",
145 $lng->txt(
"cmps_no_language_file_available"));
146 $this->tpl->parseCurrentBlock();
148 foreach($langs as
$lang)
150 $this->tpl->setCurrentBlock(
"lang");
151 $this->tpl->setVariable(
"VAL_LANG_FILE",
153 $this->tpl->parseCurrentBlock();
157 if ($a_set[
"activation_possible"])
159 $this->tpl->setCurrentBlock(
"activate");
160 $this->tpl->setVariable(
"HREF_ACTIVATE",
161 $ilCtrl->getLinkTarget($this->parent_obj,
"activatePlugin"));
162 $this->tpl->setVariable(
"TXT_ACTIVATE",
163 $lng->txt(
"cmps_activate"));
164 $this->tpl->parseCurrentBlock();
168 if ($a_set[
"is_active"])
171 $this->tpl->setCurrentBlock(
"deactivate");
172 $this->tpl->setVariable(
"HREF_DEACTIVATE",
173 $ilCtrl->getLinkTarget($this->parent_obj,
"deactivatePlugin"));
174 $this->tpl->setVariable(
"TXT_DEACTIVATE",
175 $lng->txt(
"cmps_deactivate"));
176 $this->tpl->parseCurrentBlock();
179 if (count($langs) > 0)
181 $this->tpl->setCurrentBlock(
"refresh_langs");
182 $this->tpl->setVariable(
"HREF_REFRESH_LANGS",
183 $ilCtrl->getLinkTarget($this->parent_obj,
"refreshLanguages"));
184 $this->tpl->setVariable(
"TXT_REFRESH_LANGS",
185 $lng->txt(
"cmps_refresh"));
186 $this->tpl->parseCurrentBlock();
192 if ($a_set[
"needs_update"])
194 $this->tpl->setCurrentBlock(
"update");
195 $this->tpl->setVariable(
"HREF_UPDATE",
196 $ilCtrl->getLinkTarget($this->parent_obj,
"updatePlugin"));
197 $this->tpl->setVariable(
"TXT_UPDATE",
198 $lng->txt(
"cmps_update"));
199 $this->tpl->parseCurrentBlock();
202 if (strlen($a_set[
"responsible"]))
204 $this->tpl->setCurrentBlock(
"responsible_mail");
205 $this->tpl->setVariable(
"VAL_PLUGIN_RESPONSIBLE_MAIL", $a_set[
"responsible_mail"]);
206 $this->tpl->parseCurrentBlock();
207 $this->tpl->setCurrentBlock(
"responsible");
208 $this->tpl->setVariable(
"TXT_RESPONSIBLE", $lng->txt(
"cmps_responsible"));
209 $this->tpl->setVariable(
"VAL_PLUGIN_RESPONSIBLE", $a_set[
"responsible"]);
210 $this->tpl->parseCurrentBlock();
213 $this->tpl->setVariable(
"VAL_PLUGIN_NAME", $a_set[
"name"]);
214 $this->tpl->setVariable(
"VAL_PLUGIN_ID", $a_set[
"id"]);
215 $this->tpl->setVariable(
"TXT_PLUGIN_NAME", $lng->txt(
"cmps_name"));
216 $this->tpl->setVariable(
"TXT_PLUGIN_ID", $lng->txt(
"cmps_id"));
217 $this->tpl->setVariable(
"TXT_PLUGIN_VERSION", $lng->txt(
"cmps_version"));
218 $this->tpl->setVariable(
"TXT_PHP_FILE",
"plugin.php");
219 $this->tpl->setVariable(
"TXT_CLASS_FILE", $lng->txt(
"cmps_class_file"));
220 $this->tpl->setVariable(
"VAL_CLASS_FILE", $a_set[
"class_file"]);
221 $this->tpl->setVariable(
"TXT_VERSION", $lng->txt(
"cmps_version"));
222 $this->tpl->setVariable(
"VAL_PLUGIN_VERSION", $a_set[
"version"]);
223 $this->tpl->setVariable(
"TXT_ILIAS_MIN", $lng->txt(
"cmps_ilias_min_version"));
224 $this->tpl->setVariable(
"VAL_ILIAS_MIN", $a_set[
"ilias_min_version"]);
225 $this->tpl->setVariable(
"TXT_ILIAS_MAX", $lng->txt(
"cmps_ilias_max_version"));
226 $this->tpl->setVariable(
"VAL_ILIAS_MAX", $a_set[
"ilias_max_version"]);
227 $this->tpl->setVariable(
"TXT_STATUS", $lng->txt(
"cmps_status"));
229 if ($a_set[
"is_active"])
231 $this->tpl->setVariable(
"VAL_STATUS", $lng->txt(
"cmps_active"));
235 $r = ($a_set[
"inactive_reason"] !=
"")
236 ?
" (".$a_set[
"inactive_reason"].
")"
239 $this->tpl->setVariable(
"VAL_STATUS", $lng->txt(
"cmps_inactive").$r);
242 if ($a_set[
"plugin_php_file_status"])
244 $this->tpl->setVariable(
"VAL_PLUGIN_PHP_FILE_STATUS", $lng->txt(
"cmps_available"));
248 $this->tpl->setVariable(
"VAL_PLUGIN_PHP_FILE_STATUS", $lng->txt(
"cmps_missing"));
250 if ($a_set[
"class_file_status"])
252 $this->tpl->setVariable(
"VAL_CLASS_FILE_STATUS", $lng->txt(
"cmps_available"));
256 $this->tpl->setVariable(
"VAL_CLASS_FILE_STATUS", $lng->txt(
"cmps_missing"));