ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilPCCurriculumGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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 ()
 
 moveAfter ()
 move content element after another element More...
 
 moveBefore ()
 move content element before another element More...
 
 splitPage ()
 split page to new page at specified position More...
 
 splitPageNext ()
 split page to next page at specified position More...
 
 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 = ""
 
php4DOMDocument $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 ()
 

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
EditSessionRepository $edit_repo
 
string $pc_id = ""
 
array $chars
 
ilObjStyleSheet $style = null
 
ilLogger $log
 
int $styleid = 0
 
EditGUIRequest $request
 
string $sub_command = ""
 
int $requested_ref_id = 0
 
Style Content CharacteristicManager $char_manager
 
- Static Protected Attributes inherited from ilPageContentGUI
static array $common_bb_buttons
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Curriculum for PageEditor, the GUI

ilPCCurriculumGUI: ilPageEditorGUI

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

Member Function Documentation

◆ createNewPageContent()

ilPCCurriculumGUI::createNewPageContent ( )
protected

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

References ilPageContentGUI\getPage().

Referenced by insertNewContentObj().

58  {
59  return new ilPCCurriculum(
60  $this->getPage()
61  );
62  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ 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.

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

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) {
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  }
+ Here is the call graph for this function:

◆ insertNewContentObj()

ilPCCurriculumGUI::insertNewContentObj ( )

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

References createNewPageContent().

Referenced by executeCommand().

64  : 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  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ returnToParent()

ilPCCurriculumGUI::returnToParent ( )
protected

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

References ILIAS\Repository\ctrl().

Referenced by executeCommand().

52  : void
53  {
54  $this->ctrl->returnToParent($this, "jump" . $this->hier_id);
55  }
+ 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.

◆ CMD_INSERT

const ilPCCurriculumGUI::CMD_INSERT = 'insert'

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


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