ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
5 include_once("./Services/COPage/interfaces/interface.ilCOPageCollectorInterface.php");
6 
14 {
18  public function getAllPageIds($obj_id)
19  {
20  $pages = [];
21  foreach (ilPageObject::getAllPages("lm", $obj_id) as $p) {
22  $pages[] = [
23  "parent_type" => "lm",
24  "id" => $p["id"],
25  "lang" => $p["lang"]
26  ];
27  }
28  return $pages;
29  }
30 }
getAllPageIds($obj_id)
Get all page IDs of an repository object.object id of repository object array[] inner array keys: "pa...
static getAllPages($a_parent_type, $a_parent_id, $a_lang="-")
Get all pages for parent object.
Page collector for learning modules.