ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilPCPRGActionNoteGUI.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
26
class
ilPCPRGActionNoteGUI
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
case
self::CMD_INSERT:
39
$this->
insertNewContentObj
();
40
//no break
41
case
self::CMD_EDIT:
42
$this->
returnToParent
();
43
break
;
44
default
:
45
throw
new
Exception
(
'unknown command: '
. $cmd);
46
}
47
}
48
}
49
50
protected
function
returnToParent
(): void
51
{
52
$this->
ctrl
->returnToParent($this,
"jump"
. $this->hier_id);
53
}
54
55
protected
function
createNewPageContent
():
ilPCPRGActionNote
56
{
57
return
new
ilPCPRGActionNote
(
58
$this->
getPage
()
59
);
60
}
61
62
public
function
insertNewContentObj
(): void
63
{
64
$this->content_obj = $this->
createNewPageContent
();
65
$this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id);
66
$this->pg_obj->update();
67
}
68
}
ilPageContentGUI\getPage
getPage()
Definition:
class.ilPageContentGUI.php:126
ilPCPRGActionNoteGUI\CMD_EDIT
const CMD_EDIT
Definition:
class.ilPCPRGActionNoteGUI.php:29
ilPCPRGActionNoteGUI\createNewPageContent
createNewPageContent()
Definition:
class.ilPCPRGActionNoteGUI.php:55
ilPCPRGActionNoteGUI\returnToParent
returnToParent()
Definition:
class.ilPCPRGActionNoteGUI.php:50
ILIAS\Repository\ctrl
ctrl()
Definition:
trait.GlobalDICGUIServices.php:63
ilPageContentGUI
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
Definition:
class.ilPageContentGUI.php:29
ilPCPRGActionNoteGUI\insertNewContentObj
insertNewContentObj()
Definition:
class.ilPCPRGActionNoteGUI.php:62
ilPCPRGActionNoteGUI\CMD_INSERT
const CMD_INSERT
Definition:
class.ilPCPRGActionNoteGUI.php:28
ilPCPRGActionNote
PageComponent "Note" for PageEditor in PRGs.
Definition:
class.ilPCPRGActionNote.php:25
ilPCPRGActionNoteGUI\executeCommand
executeCommand()
Definition:
class.ilPCPRGActionNoteGUI.php:31
ilPCPRGActionNoteGUI
PageComponent "Note" for PageEditor in PRGs, GUI.
Definition:
class.ilPCPRGActionNoteGUI.php:26
Exception
components
ILIAS
StudyProgramme
classes
PageEditor
class.ilPCPRGActionNoteGUI.php
Generated on Sun Aug 31 2025 23:03:48 for ILIAS by
1.8.13 (using
Doxyfile
)