ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
ILIAS\LearningModule\Media\PageRetrieval Class Reference
+ Inheritance diagram for ILIAS\LearningModule\Media\PageRetrieval:
+ Collaboration diagram for ILIAS\LearningModule\Media\PageRetrieval:

Public Member Functions

 __construct (protected int $obj_id, protected ilCtrl $ctrl)
 
 getPossibleTypes ()
 
 getAllIDsForType (string $type)
 
 getLinkToSubObject (string $type, int $id)
 
 getTitleOfSubObject (string $type, int $id)
 
 getPossibleTypes ()
 
 getAllIDsForType (string $type)
 
 getLinkToSubObject (string $type, int $id)
 
 getTitleOfSubObject (string $type, int $id)
 

Detailed Description

Definition at line 29 of file PageRetrieval.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LearningModule\Media\PageRetrieval::__construct ( protected int  $obj_id,
protected ilCtrl  $ctrl 
)

Definition at line 31 of file PageRetrieval.php.

34 {
35 }

Member Function Documentation

◆ getAllIDsForType()

ILIAS\LearningModule\Media\PageRetrieval::getAllIDsForType ( string  $type)
Returns
int[]

Implements ILIAS\MediaObjects\OverviewGUI\SubObjectRetrieval.

Definition at line 48 of file PageRetrieval.php.

48 : Generator
49 {
50 if ($type !== 'lm:pg') {
51 return;
52 }
53 foreach (ilLMPageObject::getPageList($this->obj_id) as $page) {
54 yield (int) $page['obj_id'];
55 }
56 }
static getPageList(int $lm_id)

References ilLMPageObject\getPageList().

+ Here is the call graph for this function:

◆ getLinkToSubObject()

ILIAS\LearningModule\Media\PageRetrieval::getLinkToSubObject ( string  $type,
int  $id 
)

Implements ILIAS\MediaObjects\OverviewGUI\SubObjectRetrieval.

Definition at line 58 of file PageRetrieval.php.

58 : string
59 {
60 if ($type !== 'lm:pg') {
61 return '';
62 }
63 $this->ctrl->setParameterByClass(ilLMPageObjectGUI::class, 'obj_id', $id);
64 $link = $this->ctrl->getLinkTargetByClass(ilLMPageObjectGUI::class, 'edit');
65 $this->ctrl->clearParameterByClass(ilLMPageObjectGUI::class, 'obj_id');
66 return $link;
67 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id, and ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ getPossibleTypes()

ILIAS\LearningModule\Media\PageRetrieval::getPossibleTypes ( )
Returns
string[]

Implements ILIAS\MediaObjects\OverviewGUI\SubObjectRetrieval.

Definition at line 40 of file PageRetrieval.php.

40 : Generator
41 {
42 yield 'lm:pg';
43 }

◆ getTitleOfSubObject()

ILIAS\LearningModule\Media\PageRetrieval::getTitleOfSubObject ( string  $type,
int  $id 
)

Implements ILIAS\MediaObjects\OverviewGUI\SubObjectRetrieval.

Definition at line 69 of file PageRetrieval.php.

69 : string
70 {
71 if ($type !== 'lm:pg') {
72 return '';
73 }
75 }
static _lookupTitle(int $a_obj_id)

References $id, and ilLMObject\_lookupTitle().

+ Here is the call graph for this function:

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