ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
class.ilPCLauncherGUI.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
26
class
ilPCLauncherGUI
extends
ilPageContentGUI
27
{
28
public
const
CMD_INSERT
=
'insert'
;
29
public
const
CMD_EDIT
=
'edit'
;
30
31
public
function
executeCommand
(): void
32
{
33
$next_class = $this->
ctrl
->getNextClass($this);
34
switch
($next_class) {
35
default
:
36
$cmd = $this->
ctrl
->getCmd(self::CMD_EDIT);
37
switch
($cmd) {
38
39
case
self::CMD_INSERT:
40
$this->
insertNewContentObj
();
41
// no break
42
case
self::CMD_EDIT:
43
$this->
returnToParent
();
44
break
;
45
46
default
:
47
throw
new
Exception
(
'unknown command: '
. $cmd);
48
}
49
}
50
}
51
52
protected
function
returnToParent
(): void
53
{
54
$this->
ctrl
->returnToParent($this,
"jump"
. $this->hier_id);
55
}
56
57
protected
function
createNewPageContent
():
ilPCLauncher
58
{
59
return
new
ilPCLauncher
(
60
$this->
getPage
()
61
);
62
}
63
64
public
function
insertNewContentObj
(): void
65
{
66
$this->content_obj = $this->
createNewPageContent
();
67
$this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id);
68
$this->pg_obj->update();
69
}
70
}
ilPageContentGUI\getPage
getPage()
Definition:
class.ilPageContentGUI.php:117
ilPCLauncherGUI\insertNewContentObj
insertNewContentObj()
Definition:
class.ilPCLauncherGUI.php:64
ilPCLauncherGUI\createNewPageContent
createNewPageContent()
Definition:
class.ilPCLauncherGUI.php:57
ILIAS\Repository\ctrl
ctrl()
Definition:
trait.GlobalDICGUIServices.php:52
ilPageContentGUI
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
Definition:
class.ilPageContentGUI.php:29
ilPCLauncherGUI\CMD_EDIT
const CMD_EDIT
Definition:
class.ilPCLauncherGUI.php:29
ilPCLauncherGUI\returnToParent
returnToParent()
Definition:
class.ilPCLauncherGUI.php:52
ilPCLauncher
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilPCLauncher.php:24
ilPCLauncherGUI\CMD_INSERT
const CMD_INSERT
Definition:
class.ilPCLauncherGUI.php:28
ilPCLauncherGUI\executeCommand
executeCommand()
Definition:
class.ilPCLauncherGUI.php:31
Exception
ilPCLauncherGUI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilPCLauncherGUI.php:26
Modules
LearningSequence
classes
PageEditor
class.ilPCLauncherGUI.php
Generated on Sun Aug 31 2025 22:01:29 for ILIAS by
1.8.13 (using
Doxyfile
)