ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilLearningModulePageCollector.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12{
16 public function getAllPageIds($obj_id)
17 {
18 $pages = [];
19 foreach (ilPageObject::getAllPages("lm", $obj_id) as $p) {
20 $pages[] = [
21 "parent_type" => "lm",
22 "id" => $p["id"],
23 "lang" => $p["lang"]
24 ];
25 }
26 return $pages;
27 }
28}
An exception for terminatinating execution or to throw for unit testing.
Page collector for learning modules.
getAllPageIds($obj_id)
Get all page IDs of an repository object.array[] inner array keys: "parent_type", "id",...
static getAllPages($a_parent_type, $a_parent_id, $a_lang="-")
Get all pages for parent object.