ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilPCPRGStatusInfoGUI Class Reference

PageComponent "Status Information" for PageEditor in PRGs, GUI. More...

+ Inheritance diagram for ilPCPRGStatusInfoGUI:
+ Collaboration diagram for ilPCPRGStatusInfoGUI:

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 "Status Information" for PageEditor in PRGs, GUI.

ilPCPRGStatusInfoGUI: ilPageEditorGUI

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

Member Function Documentation

◆ createNewPageContent()

ilPCPRGStatusInfoGUI::createNewPageContent ( )
protected

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

References ilPageContentGUI\getPage().

Referenced by insertNewContentObj().

57  {
58  return new ilPCPRGStatusInfo(
59  $this->getPage()
60  );
61  }
PageComponent "Status Information" for PageEditor in PRGs.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilPCPRGStatusInfoGUI::executeCommand ( )

Definition at line 31 of file class.ilPCPRGStatusInfoGUI.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  case self::CMD_INSERT:
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  }
+ Here is the call graph for this function:

◆ insertNewContentObj()

ilPCPRGStatusInfoGUI::insertNewContentObj ( )

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

References createNewPageContent().

Referenced by executeCommand().

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

◆ returnToParent()

ilPCPRGStatusInfoGUI::returnToParent ( )
protected

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

References ILIAS\Repository\ctrl().

Referenced by executeCommand().

51  : void
52  {
53  $this->ctrl->returnToParent($this, "jump" . $this->hier_id);
54  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ CMD_EDIT

const ilPCPRGStatusInfoGUI::CMD_EDIT = 'edit'

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

◆ CMD_INSERT

const ilPCPRGStatusInfoGUI::CMD_INSERT = 'insert'

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


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