ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilLearningModulePageCollector Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 getAllPageIds (int $obj_id)
 Get all page IDs of an repository object. More...
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Page collector for learning modules

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

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

Member Function Documentation

◆ getAllPageIds()

ilLearningModulePageCollector::getAllPageIds ( int  $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 26 of file class.ilLearningModulePageCollector.php.

References ilPageObject\getAllPages().

26  : array
27  {
28  $pages = [];
29  foreach (ilPageObject::getAllPages("lm", $obj_id) as $p) {
30  $pages[] = [
31  "parent_type" => "lm",
32  "id" => $p["id"],
33  "lang" => $p["lang"]
34  ];
35  }
36  return $pages;
37  }
static getAllPages(string $a_parent_type, int $a_parent_id, string $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: