ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 13 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 18 of file class.ilLearningModulePageCollector.php.

References ilPageObject\getAllPages().

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  }
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: