235 : void {
236 $this->log->debug("collect page elements");
237
238
239 $pages[] = [
240 "type" => $a_type,
241 "id" => $a_id
242 ];
243
244
246 foreach ($pcs as $pc) {
247
248 if ($pc["type"] == "incl") {
249 $pages[] = [
250 "type" => "mep:pg",
251 "id" => $pc["id"]
252 ];
253 }
254 }
255
256
258 $this->int_links = array_merge($this->int_links, $pg_links);
259 $this->glossary_terms = [];
260
261
262 foreach ($this->int_links as $int_link) {
263 if ($int_link["type"] == "git") {
264 $this->glossary_terms[] = $int_link["id"];
265
267 foreach ($defs as $def) {
268 $pages[] = [
269 "type" => "gdf:pg",
270 "id" => $def["id"]
271 ];
272 }
273 }
274 }
275
276
277 foreach ($pages as $page) {
278 $page_id = $page["id"];
279 $page_type = $page["type"];
280
281
283 foreach ($pg_mobs as $pg_mob) {
284 $this->mobs[$pg_mob] = $pg_mob;
286 " due to page $page_id, $page_type ).");
287 }
288
289
290 $files = ilObjFile::_getFilesOfObject($page_type, $page_id, 0,
$lang);
292 $this->files[
$f] =
$f;
293 }
294
295
297 foreach (
$q_ids as $q_id) {
298 $this->q_ids[$q_id] = $q_id;
299 }
300 }
301
302
303 $skill_tree = $ws_tree = null;
304
305
306 foreach ($pcs as $pc) {
307 if ($pc["type"] == "skmg") {
308 $skill_id = $pc["id"];
309
310
311 $user_id = null;
312 switch ($a_type) {
313 case "prtf:pg":
315 $user_id = $page->getCreationUserId();
316 break;
317
318 default:
319
320 break;
321 }
322
323 if ($user_id) {
324
325 if (!$skill_tree) {
326 $skill_tree = $this->skill_tree_service->getGlobalSkillTree();
327
329 }
330
331
332 $skill_id = (
int) $skill_id;
333 $vtree = $this->skill_tree_service->getVirtualSkillTreeForNodeId($skill_id);
334 $tref_id = 0;
336 $tref_id = $skill_id;
338 }
339 $b_skills = $vtree->getSubTreeForCSkillId($skill_id . ":" . $tref_id, true);
340
341 foreach ($b_skills as $bs) {
343 $level_data = $skill->getLevelData();
344 foreach ($level_data as $k => $v) {
345
347 if (count($mat)) {
348 foreach ($mat as $item) {
349 $wsp_id = $item["wsp_id"];
350 $obj_id = $ws_tree->lookupObjectId($wsp_id);
351
352
354 case "file":
355 $this->files[$obj_id] = $obj_id;
356 break;
357
358 case "tstv":
360 $this->files_direct[$obj_id] = array($obj->getFilePath(),
361 $obj->getOfflineFilename());
362 break;
363
364 case "excv":
366 $this->files_direct[$obj_id] = array($obj->getFilePath(),
367 $obj->getOfflineFilename());
368 break;
369
370 case "crsv":
372 $this->files_direct[$obj_id] = array($obj->getFilePath(),
373 $obj->getOfflineFilename());
374 break;
375
376 case "cmxv":
378 $this->files_direct[$obj_id] = array($obj->getFilePath(),
379 $obj->getOfflineFilename());
380 break;
381
382 case "ltiv":
384 $this->files_direct[$obj_id] = array($obj->getFilePath(),
385 $obj->getOfflineFilename());
386 break;
387
388 case "scov":
390 $this->files_direct[$obj_id] = array($obj->getFilePath(),
391 $obj->getOfflineFilename());
392 break;
393 }
394 }
395 }
396 }
397 }
398 }
399 }
400 }
401 }
static getDefinitionList(int $a_term_id)
static _getTargetsOfSource(string $a_source_type, int $a_source_id, string $a_source_lang="-")
Get all targets of a source object (e.g., a page)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupType(int $id, bool $reference=false)
static _lookupTitle(int $obj_id)
static _getQuestionIdsForPage(string $a_parent_type, int $a_page_id, string $a_lang="-")
static getUsagesOfPage(int $a_usage_id, string $a_usage_type, int $a_hist_nr=0, bool $a_all_hist_nrs=false, string $a_lang="-")
Get page content usages for page.
static getAssignedMaterial(int $a_user_id, int $a_tref_id, int $a_level)
Get assigned material (for a skill level and user)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupTemplateId(int $a_obj_id)
static getInstance(int $a_id=0)
static _lookupType(int $a_obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...