ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilPCPRGActionNoteGUI Class Reference

PageComponent "Note" for PageEditor in PRGs, GUI. More...

+ Inheritance diagram for ilPCPRGActionNoteGUI:
+ Collaboration diagram for ilPCPRGActionNoteGUI:

Public Member Functions

 executeCommand ()
 
 insertNewContentObj ()
 
- Public Member Functions inherited from ilPageContentGUI
 __construct (ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id="", string $a_pc_id="0")
 
 setContentObject (ilPageContent $a_val)
 
 getContentObject ()
 
 setPage (ilPageObject $a_val)
 
 getPage ()
 
 setPageConfig (ilPageConfig $a_val)
 
 getPageConfig ()
 
 setStyleId (int $a_styleid)
 
 getStyleId ()
 
 getStyle ()
 
 getCharacteristicsOfCurrentStyle (array $a_type)
 Get characteristics of current style and call setCharacteristics, if style is given. More...
 
 setCharacteristics (array $a_chars)
 
 getCharacteristics ()
 
 getHierId ()
 
 setHierId (string $a_hier_id)
 set hierarchical id in dom object More...
 
 delete ()
 
 displayValidationError ()
 
 cancelCreate ()
 cancel creating page content More...
 
 cancelUpdate ()
 cancel update More...
 
 cancel ()
 Cancel. More...
 
 deactivate ()
 gui function set enabled if is not enabled and vice versa More...
 
 cut ()
 Cut single element. More...
 
 copy ()
 Copy single element. More...
 
 getTemplateOptions (string $a_type="")
 Get table templates. More...
 

Data Fields

const CMD_INSERT = 'insert'
 
const CMD_EDIT = 'edit'
 
- Data Fields inherited from ilPageContentGUI
ilPageContent $content_obj
 
ilGlobalTemplateInterface $tpl
 
ilLanguage $lng
 
ilCtrl $ctrl
 
ilPageObject $pg_obj
 
string $hier_id = ""
 
DOMDocument $dom
 
 $updated
 
string $target_script = ""
 
string $return_location = ""
 
ilPageConfig $page_config = null
 

Protected Member Functions

 returnToParent ()
 
 createNewPageContent ()
 
- Protected Member Functions inherited from ilPageContentGUI
 redirectToParent (string $hier_id="")
 
 getParentReturn (string $hier_id="")
 
 updateAndReturn ()
 
 setCurrentTextLang (string $lang_key)
 
 getCurrentTextLang ()
 
 setEditorToolContext ()
 
 initEditor ()
 
 getEditorScriptTag (string $form_pc_id="", string $form_cname="")
 

Additional Inherited Members

- Static Public Member Functions inherited from ilPageContentGUI
static _getCommonBBButtons ()
 
- Static Public Attributes inherited from ilPageContentGUI
static string $style_selector_reset = "margin-top:2px; margin-bottom:2px; text-indent:0px; position:static; float:none; width: auto;"
 
- Protected Attributes inherited from ilPageContentGUI
ILIAS COPage Editor GUIService $editor_gui
 
ILIAS COPage InternalGUIService $gui
 
EditSessionRepository $edit_repo
 
string $pc_id = ""
 
array $chars
 
ilObjStyleSheet $style = null
 
LOMServices $lom_services
 
ilLogger $log
 
int $styleid = 0
 
EditGUIRequest $request
 
string $sub_command = ""
 
int $requested_ref_id = 0
 
ILIAS GlobalScreen ScreenContext ContextServices $tool_context
 
Style Content CharacteristicManager $char_manager
 
- Static Protected Attributes inherited from ilPageContentGUI
static array $common_bb_buttons
 

Detailed Description

PageComponent "Note" for PageEditor in PRGs, GUI.

@ilCtrl_isCalledBy ilPCPRGActionNoteGUI: ilPageEditorGUI

Definition at line 26 of file class.ilPCPRGActionNoteGUI.php.

Member Function Documentation

◆ createNewPageContent()

ilPCPRGActionNoteGUI::createNewPageContent ( )
protected

Definition at line 55 of file class.ilPCPRGActionNoteGUI.php.

56 {
57 return new ilPCPRGActionNote(
58 $this->getPage()
59 );
60 }
PageComponent "Note" for PageEditor in PRGs.

References ilPageContentGUI\getPage().

Referenced by insertNewContentObj().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilPCPRGActionNoteGUI::executeCommand ( )

Definition at line 31 of file class.ilPCPRGActionNoteGUI.php.

31 : 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) {
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 }

References CMD_EDIT, CMD_INSERT, ILIAS\Repository\ctrl(), insertNewContentObj(), and returnToParent().

+ Here is the call graph for this function:

◆ insertNewContentObj()

ilPCPRGActionNoteGUI::insertNewContentObj ( )

Definition at line 62 of file class.ilPCPRGActionNoteGUI.php.

62 : 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 }

References createNewPageContent().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ returnToParent()

ilPCPRGActionNoteGUI::returnToParent ( )
protected

Definition at line 50 of file class.ilPCPRGActionNoteGUI.php.

50 : void
51 {
52 $this->ctrl->returnToParent($this, "jump" . $this->hier_id);
53 }

References ILIAS\Repository\ctrl().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ CMD_EDIT

const ilPCPRGActionNoteGUI::CMD_EDIT = 'edit'

Definition at line 29 of file class.ilPCPRGActionNoteGUI.php.

Referenced by executeCommand().

◆ CMD_INSERT

const ilPCPRGActionNoteGUI::CMD_INSERT = 'insert'

Definition at line 28 of file class.ilPCPRGActionNoteGUI.php.

Referenced by executeCommand().


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