◆ __construct()
| ilMediaObjectOverviewGUI::__construct |
( |
protected SubObjectRetrieval |
$sub_object_retrieval | ) |
|
Definition at line 34 of file class.ilMediaObjectOverviewGUI.php.
36 {
38
39 $this->domain =
$DIC->mediaObjects()->internal()->domain();
40 $this->gui =
$DIC->mediaObjects()->internal()->gui();
41 $this->data_factory = new DataFactory();
42
43 $this->domain->lng()->loadLanguageModule('mob');
44 }
References $DIC.
◆ executeCommand()
| ilMediaObjectOverviewGUI::executeCommand |
( |
| ) |
|
Definition at line 46 of file class.ilMediaObjectOverviewGUI.php.
46 : void
47 {
48 $ctrl = $this->gui->ctrl();
49
50 switch ($ctrl->getNextClass($this)) {
51 default:
52 $cmd = $ctrl->getCmd('show');
53 $this->$cmd();
54 break;
55 }
56 }
◆ getFilter()
| ilMediaObjectOverviewGUI::getFilter |
( |
string |
$cmd | ) |
|
|
protected |
Definition at line 67 of file class.ilMediaObjectOverviewGUI.php.
68 {
69 $lng = $this->domain->lng();
70 $lom = $this->domain->learningObjectMetadata();
71
72 $filter = $this->gui->filter(
73 'mob_overview_filter',
74 [self::class],
75 $cmd
76 );
77
78 $filter = $filter->text(
'title',
$lng->txt(
'mob'));
79 if ($lom->copyrightHelper()->isCopyrightSelectionActive()) {
80 $cp_selection = [];
81 foreach ($lom->copyrightHelper()->getAllCopyrightPresets() as $copyright) {
82 $cp_selection[$copyright->identifier()] = $copyright->title();
83 }
84 $filter = $filter->multiSelect(
'copyright',
$lng->txt(
'mob_copyright'), $cp_selection);
85 }
86 $filter = $filter->duration(
'last_update',
$lng->txt(
'mob_last_update'),
true);
87
88 return $filter;
89 }
References $lng.
Referenced by show().
◆ getTableBuilder()
| ilMediaObjectOverviewGUI::getTableBuilder |
( |
string |
$cmd | ) |
|
|
protected |
Definition at line 91 of file class.ilMediaObjectOverviewGUI.php.
91 : TableBuilder
92 {
93 return new TableBuilder(
94 $this->domain,
95 $this->gui,
96 $this->data_factory,
97 $this->sub_object_retrieval,
98 $this,
99 $cmd
100 );
101 }
Referenced by show().
◆ show()
| ilMediaObjectOverviewGUI::show |
( |
| ) |
|
|
protected |
◆ $data_factory
| DataFactory ilMediaObjectOverviewGUI::$data_factory |
|
protected |
◆ $domain
◆ $gui
The documentation for this class was generated from the following file: