ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilLearningModulePageCollector Class Reference

Page collector for learning modules. More...

+ Inheritance diagram for ilLearningModulePageCollector:
+ Collaboration diagram for ilLearningModulePageCollector:

Public Member Functions

 getAllPageIds ($obj_id)
 Get all page IDs of an repository object.
Parameters
int$obj_idobject id of repository object
Returns
array[] inner array keys: "parent_type", "id", "lang"
More...
 

Detailed Description

Page collector for learning modules.

Author
killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 11 of file class.ilLearningModulePageCollector.php.

Member Function Documentation

◆ getAllPageIds()

ilLearningModulePageCollector::getAllPageIds (   $obj_id)

Get all page IDs of an repository object.

Parameters
int$obj_idobject id of repository object
Returns
array[] inner array keys: "parent_type", "id", "lang"

Implements ilCOPageCollectorInterface.

Definition at line 16 of file class.ilLearningModulePageCollector.php.

References ilPageObject\getAllPages().

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  }
static getAllPages($a_parent_type, $a_parent_id, $a_lang="-")
Get all pages for parent object.
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: