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

Curriculum for PageEditor, the GUI. More...

+ Inheritance diagram for ilPCCurriculumGUI:
+ Collaboration diagram for ilPCCurriculumGUI:

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

Curriculum for PageEditor, the GUI.

@ilCtrl_isCalledBy ilPCCurriculumGUI: ilPageEditorGUI

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

Member Function Documentation

◆ createNewPageContent()

ilPCCurriculumGUI::createNewPageContent ( )
protected

Definition at line 56 of file class.ilPCCurriculumGUI.php.

57 {
58 return new ilPCCurriculum(
59 $this->getPage()
60 );
61 }
Curriculum for PageEditor.

References ilPageContentGUI\getPage().

Referenced by insertNewContentObj().

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

◆ executeCommand()

ilPCCurriculumGUI::executeCommand ( )

Definition at line 31 of file class.ilPCCurriculumGUI.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
45 default:
46 throw new Exception('unknown command: ' . $cmd);
47 }
48 }
49 }

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

+ Here is the call graph for this function:

◆ insertNewContentObj()

ilPCCurriculumGUI::insertNewContentObj ( )

Definition at line 63 of file class.ilPCCurriculumGUI.php.

63 : void
64 {
65 $this->content_obj = $this->createNewPageContent();
66 $this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id);
67 $this->pg_obj->update();
68 }

References createNewPageContent().

Referenced by executeCommand().

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

◆ returnToParent()

ilPCCurriculumGUI::returnToParent ( )
protected

Definition at line 51 of file class.ilPCCurriculumGUI.php.

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

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 ilPCCurriculumGUI::CMD_EDIT = 'edit'

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

Referenced by executeCommand().

◆ CMD_INSERT

const ilPCCurriculumGUI::CMD_INSERT = 'insert'

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

Referenced by executeCommand().


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