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

User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...) More...

+ Inheritance diagram for ilPageContentGUI:
+ Collaboration diagram for ilPageContentGUI:

Public Member Functions

 __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...
 

Static Public Member Functions

static _getCommonBBButtons ()
 

Data Fields

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
 

Static Public Attributes

static string $style_selector_reset = "margin-top:2px; margin-bottom:2px; text-indent:0px; position:static; float:none; width: auto;"
 

Protected Member Functions

 redirectToParent (string $hier_id="")
 
 getParentReturn (string $hier_id="")
 
 updateAndReturn ()
 
 setCurrentTextLang (string $lang_key)
 
 getCurrentTextLang ()
 
 setEditorToolContext ()
 
 initEditor ()
 
 getEditorScriptTag (string $form_pc_id="", string $form_cname="")
 

Protected Attributes

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

static array $common_bb_buttons
 

Detailed Description

User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Constructor & Destructor Documentation

◆ __construct()

ilPageContentGUI::__construct ( ilPageObject  $a_pg_obj,
?ilPageContent  $a_content_obj,
string  $a_hier_id = "",
string  $a_pc_id = "0" 
)

Definition at line 70 of file class.ilPageContentGUI.php.

References $DIC, $lng, $service, ILIAS\Repository\ctrl(), ilPageObject\getDomDoc(), ilLoggerFactory\getLogger(), and ILIAS\Repository\lng().

75  {
76  global $DIC;
77 
78  $lng = $DIC->language();
79  $ilCtrl = $DIC->ctrl();
80 
81  $this->log = ilLoggerFactory::getLogger('copg');
82 
83  $this->tpl = $DIC->ui()->mainTemplate();
84  $this->lng = $lng;
85  $this->pg_obj = $a_pg_obj;
86  $this->ctrl = $ilCtrl;
87  $this->lom_services = $DIC->learningObjectMetadata();
88  $this->content_obj = $a_content_obj;
89  $service = $DIC->copage()->internal();
90  $this->request = $service
91  ->gui()
92  ->pc()
93  ->editRequest();
94  $this->edit_repo = $service
95  ->repo()
96  ->edit();
97  $this->sub_command = $this->request->getSubCmd();
98  $this->requested_ref_id = $this->request->getRefId();
99  $this->gui = $service->gui();
100 
101  if ($a_hier_id !== "0") {
102  $this->hier_id = $a_hier_id;
103  $this->pc_id = $a_pc_id;
104  //echo "-".$this->pc_id."-";
105  $this->dom = $a_pg_obj->getDomDoc();
106  }
107  $this->tool_context = $DIC->globalScreen()->tool()->context();
108  $this->editor_gui = $DIC->copage()->internal()->gui()->edit();
109  }
static getLogger(string $a_component_id)
Get component logger.
getDomDoc()
Get dom doc (DOMDocument)
global $DIC
Definition: shib_login.php:22
$service
Definition: ltiservices.php:40
+ Here is the call graph for this function:

Member Function Documentation

◆ _getCommonBBButtons()

static ilPageContentGUI::_getCommonBBButtons ( )
static

Definition at line 141 of file class.ilPageContentGUI.php.

Referenced by ilPCParagraph\handleAjaxContent(), ilObjAdvancedEditingGUI\initPageEditorForm(), ilObjAdvancedEditingGUI\savePageEditorSettingsObject(), and ilPCParagraphGUI\xml2outputJS().

141  : array
142  {
143  return self::$common_bb_buttons;
144  }
+ Here is the caller graph for this function:

◆ cancel()

ilPageContentGUI::cancel ( )

Cancel.

Definition at line 283 of file class.ilPageContentGUI.php.

References ILIAS\Repository\ctrl().

283  : void
284  {
285  $this->ctrl->returnToParent($this, "jump" . $this->hier_id);
286  }
+ Here is the call graph for this function:

◆ cancelCreate()

ilPageContentGUI::cancelCreate ( )

cancel creating page content

Definition at line 267 of file class.ilPageContentGUI.php.

References ILIAS\Repository\ctrl().

267  : void
268  {
269  $this->ctrl->returnToParent($this, "jump" . $this->hier_id);
270  }
+ Here is the call graph for this function:

◆ cancelUpdate()

ilPageContentGUI::cancelUpdate ( )

cancel update

Definition at line 275 of file class.ilPageContentGUI.php.

References ILIAS\Repository\ctrl().

275  : void
276  {
277  $this->ctrl->returnToParent($this, "jump" . $this->hier_id);
278  }
+ Here is the call graph for this function:

◆ copy()

ilPageContentGUI::copy ( )

Copy single element.

Definition at line 323 of file class.ilPageContentGUI.php.

References ILIAS\Repository\ctrl().

323  : void
324  {
325  $this->pg_obj->copyContents(array($this->hier_id . ":" . $this->pc_id));
326  $this->ctrl->returnToParent($this, "jump" . $this->hier_id);
327  }
+ Here is the call graph for this function:

◆ cut()

ilPageContentGUI::cut ( )

Cut single element.

Definition at line 307 of file class.ilPageContentGUI.php.

References $updated, and ILIAS\Repository\ctrl().

307  : void
308  {
309  $updated = $this->pg_obj->cutContents(array($this->hier_id . ":" . $this->pc_id));
310  if ($updated !== true) {
311  $this->edit_repo->setPageError($updated);
312  } else {
313  $this->edit_repo->clearPageError();
314  }
315 
316  $this->log->debug("return to parent jump" . $this->hier_id);
317  $this->ctrl->returnToParent($this, "jump" . $this->hier_id);
318  }
+ Here is the call graph for this function:

◆ deactivate()

ilPageContentGUI::deactivate ( )

gui function set enabled if is not enabled and vice versa

Definition at line 292 of file class.ilPageContentGUI.php.

References $content_obj, ilPageContent\disable(), and updateAndReturn().

292  : void
293  {
294  $obj = &$this->content_obj;
295 
296  if ($obj->isEnabled()) {
297  $obj->disable();
298  } else {
299  $obj->enable();
300  }
301  $this->updateAndReturn();
302  }
+ Here is the call graph for this function:

◆ delete()

ilPageContentGUI::delete ( )

Definition at line 236 of file class.ilPageContentGUI.php.

References $updated, and ILIAS\Repository\ctrl().

236  : void
237  {
238  $updated = $this->pg_obj->deleteContent($this->hier_id);
239  if ($updated !== true) {
240  $this->edit_repo->setPageError($updated);
241  } else {
242  $this->edit_repo->clearPageError();
243  }
244  $this->ctrl->returnToParent($this, "jump" . $this->hier_id);
245  }
+ Here is the call graph for this function:

◆ displayValidationError()

ilPageContentGUI::displayValidationError ( )

Definition at line 247 of file class.ilPageContentGUI.php.

Referenced by ilPCMediaObjectGUI\changeObjectReference(), ilPCContentTemplateGUI\create(), ilPCLayoutTemplateGUI\create(), ilPCMapGUI\create(), ilPCVerificationGUI\edit(), ilPCMapGUI\edit(), ilPCLoginPageElementGUI\edit(), ilPCAMDPageListGUI\edit(), ilPCMyCoursesGUI\edit(), ilPCResourcesGUI\edit(), ilPCLearningHistoryGUI\edit(), ilPCConsultationHoursGUI\edit(), ilPCSourceCodeGUI\edit(), ilPCProfileGUI\edit(), ilPCSkillsGUI\edit(), ilPCBlogGUI\edit(), ilPCPluggedGUI\edit(), ilPCListGUI\edit(), ilPCSectionGUI\edit(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellSpan(), ilPCTableGUI\editCellStyle(), ilPCTableGUI\editCellWidth(), ilPCTableGUI\editData(), ilPCAMDFormGUI\editPortfolio(), ilPCBlogGUI\editPosting(), ilPCTabsGUI\editProperties(), ilPCTableGUI\editProperties(), ilPCMediaObjectGUI\editStyle(), ilPCAMDFormGUI\editTemplate(), ilPCVerificationGUI\insert(), ilPCMyCoursesGUI\insert(), ilPCAMDPageListGUI\insert(), ilPCMapGUI\insert(), ilPCSkillsGUI\insert(), ilPCConsultationHoursGUI\insert(), ilPCLayoutTemplateGUI\insert(), ilPCProfileGUI\insert(), ilPCListGUI\insert(), ilPCLearningHistoryGUI\insert(), ilPCContentTemplateGUI\insert(), ilPCGridGUI\insert(), ilPCTabsGUI\insert(), ilPCBlogGUI\insert(), ilPCFileListGUI\insert(), ilPCAMDFormGUI\insert(), ilPCSourceCodeGUI\insert(), ilPCInteractiveImageGUI\insert(), ilPCQuestionGUI\insert(), ilPCMediaObjectGUI\insert(), ilPCTableGUI\insert(), ilPCBlogGUI\insertPosting(), ilPCFileListGUI\newFileItem(), ilPCFileItemGUI\newItemAfter(), ilPCFileItemGUI\newItemBefore(), ilPCFileListGUI\selectFile(), and ilPCMapGUI\update().

247  : void
248  {
249  if (is_array($this->updated)) {
250  $error_str = "<strong>Error(s):</strong><br>";
251  foreach ($this->updated as $error) {
252  $err_mess = implode(" - ", $error);
253  if (!is_int(strpos($err_mess, ":0:"))) {
254  $error_str .= htmlentities($err_mess) . "<br />";
255  }
256  }
257  $this->tpl->setOnScreenMessage('failure', $error_str);
258  } elseif ($this->updated != "" && $this->updated !== true) {
259  $this->tpl->setOnScreenMessage('failure', "<strong>Error(s):</strong><br />" .
260  $this->updated);
261  }
262  }
+ Here is the caller graph for this function:

◆ getCharacteristics()

◆ getCharacteristicsOfCurrentStyle()

ilPageContentGUI::getCharacteristicsOfCurrentStyle ( array  $a_type)

Get characteristics of current style and call setCharacteristics, if style is given.

Definition at line 170 of file class.ilPageContentGUI.php.

References $DIC, $service, ilObject\_lookupType(), getStyleId(), and setCharacteristics().

Referenced by ilPCTableGUI\editCellStyle(), ilPCMediaObjectGUI\editStyle(), ilPCFileListGUI\executeCommand(), ilPCDataTableGUI\executeCommand(), ilPCTableGUI\executeCommand(), ilPCParagraphGUI\executeCommand(), ilPCSectionGUI\executeCommand(), ilPCMediaObjectGUI\getEnabledMapAreas(), ilPCSectionGUI\getHTML(), ilPCDataTableGUI\initCellPropertiesForm(), ilPCListGUI\initListForm(), and ilPCTableGUI\initPropertiesForm().

170  : void
171  {
172  global $DIC;
173  $service = $DIC->contentStyle()->internal();
174  $access_manager = $service->domain()->access(
175  $this->requested_ref_id,
176  $DIC->user()->getId()
177  );
178 
179  if ($this->getStyleId() > 0 &&
180  ilObject::_lookupType($this->getStyleId()) == "sty") {
181  $char_manager = $service->domain()->characteristic(
182  $this->getStyleId(),
183  $access_manager
184  );
185 
186  if (!is_array($a_type)) {
187  $a_type = array($a_type);
188  }
189  $chars = $char_manager->getByTypes($a_type, false, false);
190  $new_chars = array();
191  foreach ($chars as $char) {
192  if (($this->chars[$char->getCharacteristic()] ?? "") != "") { // keep lang vars for standard chars
193  $title = $char_manager->getPresentationTitle(
194  $char->getType(),
195  $char->getCharacteristic()
196  );
197  if ($title == "") {
198  $title = $this->chars[$char->getCharacteristic()];
199  }
200  $new_chars[$char->getCharacteristic()] = $title;
201  } else {
202  $new_chars[$char->getCharacteristic()] = $char_manager->getPresentationTitle(
203  $char->getType(),
204  $char->getCharacteristic()
205  );
206  }
207  }
208  $this->setCharacteristics($new_chars);
209  }
210  }
setCharacteristics(array $a_chars)
Style Content CharacteristicManager $char_manager
global $DIC
Definition: shib_login.php:22
static _lookupType(int $id, bool $reference=false)
$service
Definition: ltiservices.php:40
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getContentObject()

ilPageContentGUI::getContentObject ( )

Definition at line 116 of file class.ilPageContentGUI.php.

References $content_obj.

116  : ?ilPageContent
117  {
118  return $this->content_obj;
119  }
Content object of ilPageObject (see ILIAS DTD).

◆ getCurrentTextLang()

ilPageContentGUI::getCurrentTextLang ( )
protected

Definition at line 384 of file class.ilPageContentGUI.php.

Referenced by ilPCFileListGUI\initEditForm(), ilPCTableGUI\initPropertiesForm(), and ilPCSourceCodeGUI\insert().

384  : string
385  {
386  return $this->edit_repo->getTextLang($this->requested_ref_id);
387  }
+ Here is the caller graph for this function:

◆ getEditorScriptTag()

ilPageContentGUI::getEditorScriptTag ( string  $form_pc_id = "",
string  $form_cname = "" 
)
protected

Definition at line 405 of file class.ilPageContentGUI.php.

Referenced by ilPCSourceCodeGUI\edit(), ilPCTabsGUI\edit(), and ilPCTableGUI\editData().

405  : string
406  {
407  return $this->editor_gui->init()->getInitHtml("", $form_pc_id, $form_cname);
408  }
+ Here is the caller graph for this function:

◆ getHierId()

◆ getPage()

ilPageContentGUI::getPage ( )

Definition at line 126 of file class.ilPageContentGUI.php.

References $pg_obj.

Referenced by ilPCLoginPageElementGUI\__construct(), ilPCQuestionGUI\copyQuestion(), ilPCListGUI\create(), ilPCPlaceHolderGUI\create(), ilPCContentTemplateGUI\create(), ilPCLayoutTemplateGUI\create(), ilPCMyCoursesGUI\create(), ilPCLoginPageElementGUI\create(), ilPCBlogGUI\create(), ilPCAMDPageListGUI\create(), ilPCAMDFormGUI\create(), ilPCContentIncludeGUI\create(), ilPCSkillsGUI\create(), ilPCGridGUI\create(), ilPCLearningHistoryGUI\create(), ilPCMapGUI\create(), ilPCConsultationHoursGUI\create(), ilPCProfileGUI\create(), ilPCFileListGUI\create(), ilPCVerificationGUI\create(), ilPCQuestionGUI\create(), ilPCSourceCodeGUI\create(), ilPCResourcesGUI\create(), ilPCTabsGUI\create(), ilPCSectionGUI\create(), ilPCMediaObjectGUI\create(), ilPCPluggedGUI\createElement(), ilPCPRGActionNoteGUI\createNewPageContent(), ilPCCurriculumGUI\createNewPageContent(), ilPCLauncherGUI\createNewPageContent(), ilPCPRGStatusInfoGUI\createNewPageContent(), ilPCPluggedGUI\edit(), ilPCPluggedGUI\executeCommand(), ilPCAMDFormGUI\getAdvRecords(), ilPCPlaceHolderGUI\getAvailableTypes(), ilPCTabsGUI\getCaptionForm(), ilPCTableGUI\getCellContent(), ilPCDataTableGUI\getNewTableObject(), ilPCTableGUI\getNewTableObject(), ilPCAMDFormGUI\getPortfolioForm(), ilPCTableGUI\getPropertiesFormValues(), ilPCLayoutTemplateGUI\initCreationForm(), ilPCContentTemplateGUI\initForm(), ilPCAMDPageListGUI\initForm(), and ilPCAMDFormGUI\isTemplate().

126  : ilPageObject
127  {
128  return $this->pg_obj;
129  }
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
+ Here is the caller graph for this function:

◆ getPageConfig()

ilPageContentGUI::getPageConfig ( )

Definition at line 136 of file class.ilPageContentGUI.php.

References $page_config.

Referenced by ilPCSkillsGUI\create(), ilPCSkillsGUI\edit(), ilPCPlaceHolderGUI\edit(), ilPCQuestionGUI\feedback(), ilPCPlaceHolderGUI\getAvailableTypes(), ilPCProfileGUI\initForm(), ilPCSectionGUI\initForm(), ilPCSkillsGUI\insert(), ilPCParagraphGUI\insertHelp(), ilPCSectionGUI\setValuesFromForm(), and ilPCSkillsGUI\update().

136  : ilPageConfig
137  {
138  return $this->page_config;
139  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ getParentReturn()

ilPageContentGUI::getParentReturn ( string  $hier_id = "")
protected

Definition at line 358 of file class.ilPageContentGUI.php.

References $ctrl, $hier_id, and ilCtrl\getParentReturn().

358  : string
359  {
360  if ($hier_id == "") {
362  }
363  $ilCtrl = $this->ctrl;
364  $pcid = $this->pg_obj->getPCIdForHierId($hier_id);
365  return $ilCtrl->getParentReturn($this) . "#add" . $pcid;
366  }
getParentReturn(object $a_gui_obj)
+ Here is the call graph for this function:

◆ getStyle()

ilPageContentGUI::getStyle ( )

Definition at line 156 of file class.ilPageContentGUI.php.

References $style, ilObject\_lookupType(), and getStyleId().

Referenced by getTemplateOptions().

156  : ?ilObjStyleSheet
157  {
158  if ((!is_object($this->style) || $this->getStyleId() != $this->style->getId()) && $this->getStyleId() > 0) {
159  if (ilObject::_lookupType($this->getStyleId()) == "sty") {
160  $this->style = new ilObjStyleSheet($this->getStyleId());
161  }
162  }
163  return $this->style;
164  }
static _lookupType(int $id, bool $reference=false)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getStyleId()

ilPageContentGUI::getStyleId ( )

◆ getTemplateOptions()

ilPageContentGUI::getTemplateOptions ( string  $a_type = "")

Get table templates.

Definition at line 333 of file class.ilPageContentGUI.php.

References getStyle(), and ilObjStyleSheet\getTemplates().

Referenced by ilPCTabsGUI\initForm().

333  : array
334  {
335  $style = $this->getStyle();
336 
337  if (is_object($style)) {
338  $ts = $style->getTemplates($a_type);
339  $options = array();
340  foreach ($ts as $t) {
341  $options["t:" . $t["id"] . ":" . $t["name"]] = $t["name"];
342  }
343  return $options;
344  }
345  return array();
346  }
getTemplates(string $a_type)
Get table templates of style.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initEditor()

ilPageContentGUI::initEditor ( )
protected

Definition at line 399 of file class.ilPageContentGUI.php.

References setEditorToolContext().

Referenced by ilPCSourceCodeGUI\edit(), ilPCTabsGUI\edit(), and ilPCTableGUI\editData().

399  : void
400  {
401  $this->setEditorToolContext();
402  $this->editor_gui->init()->initUI($this->tpl);
403  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ redirectToParent()

ilPageContentGUI::redirectToParent ( string  $hier_id = "")
protected

Definition at line 348 of file class.ilPageContentGUI.php.

References $ctrl, and $hier_id.

Referenced by ilPCMediaObjectGUI\create(), and updateAndReturn().

348  : void
349  {
350  $ilCtrl = $this->ctrl;
351  if ($hier_id == "") {
353  }
354  $pcid = $this->pg_obj->getPCIdForHierId($hier_id);
355  $ilCtrl->returnToParent($this, "add" . $pcid);
356  }
+ Here is the caller graph for this function:

◆ setCharacteristics()

ilPageContentGUI::setCharacteristics ( array  $a_chars)

◆ setContentObject()

ilPageContentGUI::setContentObject ( ilPageContent  $a_val)

Definition at line 111 of file class.ilPageContentGUI.php.

111  : void
112  {
113  $this->content_obj = $a_val;
114  }

◆ setCurrentTextLang()

ilPageContentGUI::setCurrentTextLang ( string  $lang_key)
protected

Definition at line 379 of file class.ilPageContentGUI.php.

Referenced by ilPCFileListGUI\create(), and ilPCSourceCodeGUI\create().

379  : void
380  {
381  $this->edit_repo->setTextLang($this->requested_ref_id, $lang_key);
382  }
+ Here is the caller graph for this function:

◆ setEditorToolContext()

ilPageContentGUI::setEditorToolContext ( )
protected

Definition at line 389 of file class.ilPageContentGUI.php.

References ilCOPageEditGSToolProvider\SHOW_EDITOR.

Referenced by initEditor(), and ilPCInteractiveImageGUI\initInteractiveImageEditor().

389  : void
390  {
391  $collection = $this->tool_context->current()->getAdditionalData();
392  if ($collection->exists(ilCOPageEditGSToolProvider::SHOW_EDITOR)) {
393  $collection->replace(ilCOPageEditGSToolProvider::SHOW_EDITOR, true);
394  } else {
395  $collection->add(ilCOPageEditGSToolProvider::SHOW_EDITOR, true);
396  }
397  }
+ Here is the caller graph for this function:

◆ setHierId()

ilPageContentGUI::setHierId ( string  $a_hier_id)

set hierarchical id in dom object

Definition at line 230 of file class.ilPageContentGUI.php.

Referenced by ilPCGridGUI\afterCreation(), ilPCTabsGUI\afterCreation(), and ilPCMediaObjectGUI\create().

230  : void
231  {
232  $this->hier_id = $a_hier_id;
233  }
+ Here is the caller graph for this function:

◆ setPage()

ilPageContentGUI::setPage ( ilPageObject  $a_val)

Definition at line 121 of file class.ilPageContentGUI.php.

121  : void
122  {
123  $this->pg_obj = $a_val;
124  }

◆ setPageConfig()

ilPageContentGUI::setPageConfig ( ilPageConfig  $a_val)

Definition at line 131 of file class.ilPageContentGUI.php.

Referenced by ilPCPlaceHolderEditorGUI\getEditComponentForm().

131  : void
132  {
133  $this->page_config = $a_val;
134  }
+ Here is the caller graph for this function:

◆ setStyleId()

ilPageContentGUI::setStyleId ( int  $a_styleid)

◆ updateAndReturn()

ilPageContentGUI::updateAndReturn ( )
protected

Definition at line 368 of file class.ilPageContentGUI.php.

References redirectToParent().

Referenced by ilPCInteractiveImageGUI\centerAlign(), ilPCTableGUI\centerAlign(), ilPCMediaObjectGUI\centerAlign(), deactivate(), ilPCGridCellGUI\deleteCell(), ilPCTableDataGUI\deleteCol(), ilPCListItemGUI\deleteItem(), ilPCFileItemGUI\deleteItem(), ilPCTableDataGUI\deleteRow(), ilPCInteractiveImageGUI\leftAlign(), ilPCTableGUI\leftAlign(), ilPCMediaObjectGUI\leftAlign(), ilPCInteractiveImageGUI\leftFloatAlign(), ilPCTableGUI\leftFloatAlign(), ilPCMediaObjectGUI\leftFloatAlign(), ilPCGridCellGUI\moveCellLeft(), ilPCGridCellGUI\moveCellRight(), ilPCTableDataGUI\moveColLeft(), ilPCTableDataGUI\moveColRight(), ilPCListItemGUI\moveItemDown(), ilPCFileItemGUI\moveItemDown(), ilPCListItemGUI\moveItemUp(), ilPCFileItemGUI\moveItemUp(), ilPCTableDataGUI\moveRowDown(), ilPCTableDataGUI\moveRowUp(), ilPCTableDataGUI\newColAfter(), ilPCTableDataGUI\newColBefore(), ilPCListItemGUI\newItemAfter(), ilPCListItemGUI\newItemBefore(), ilPCTableDataGUI\newRowAfter(), ilPCTableDataGUI\newRowBefore(), ilPCInteractiveImageGUI\rightAlign(), ilPCTableGUI\rightAlign(), ilPCMediaObjectGUI\rightAlign(), ilPCInteractiveImageGUI\rightFloatAlign(), ilPCTableGUI\rightFloatAlign(), and ilPCMediaObjectGUI\rightFloatAlign().

368  : void
369  {
370  $up = $this->pg_obj->update();
371  if ($up === true) {
372  $this->edit_repo->clearPageError();
373  } else {
374  $this->edit_repo->setPageError($this->pg_obj->update());
375  }
376  $this->redirectToParent();
377  }
redirectToParent(string $hier_id="")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $char_manager

Style Content CharacteristicManager ilPageContentGUI::$char_manager
protected

◆ $chars

◆ $common_bb_buttons

array ilPageContentGUI::$common_bb_buttons
staticprotected
Initial value:
= array(
"str" => "Strong", "emp" => "Emph", "imp" => "Important",
"sup" => "Sup", "sub" => "Sub",
"com" => "Comment",
"quot" => "Quotation", "acc" => "Accent", "code" => "Code", "tex" => "Tex",
"fn" => "Footnote", "xln" => "ExternalLink"
)

Definition at line 61 of file class.ilPageContentGUI.php.

◆ $content_obj

◆ $ctrl

ilCtrl ilPageContentGUI::$ctrl

Definition at line 40 of file class.ilPageContentGUI.php.

Referenced by ilPCFileListGUI\addFileItem(), ilPCInteractiveImageGUI\addPopup(), ilPCTabsGUI\addTab(), ilPCDataTableGUI\afterCreation(), ilPCTabsGUI\afterCreation(), ilPCTabsGUI\cancelTabDeletion(), ilPCMediaObjectGUI\changeObjectReference(), ilPCInteractiveImageGUI\confirmDeleteOverlays(), ilPCInteractiveImageGUI\confirmPopupDeletion(), ilPCTabsGUI\confirmTabsDeletion(), ilPCQuestionGUI\copyQuestion(), ilPCMediaObjectGUI\create(), ilPCGridGUI\deleteCells(), ilPCFileListGUI\deleteFileItem(), ilPCInteractiveImageGUI\deleteOverlays(), ilPCInteractiveImageGUI\deletePopups(), ilPCTabsGUI\deleteTabs(), ilPCLoginPageElementGUI\edit(), ilPCPluggedGUI\edit(), ilPCInteractiveImageGUI\edit(), ilPCQuestionGUI\edit(), ilPCTabsGUI\edit(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellSpan(), ilPCTableGUI\editCellStyle(), ilPCTableGUI\editCellWidth(), ilPCTableGUI\editData(), ilPCMediaObjectGUI\editStyle(), ilPCPluggedGUI\executeCommand(), ilPCQuestionGUI\executeCommand(), ilPCQuestionGUI\feedback(), getParentReturn(), ilPCAMDFormGUI\getPortfolioForm(), ilPCInteractiveImageGUI\getTabs(), ilPCMediaObjectGUI\getTabs(), ilPCAMDFormGUI\getTemplateForm(), ilPCFileItemGUI\initAddFileForm(), ilPCInteractiveImageGUI\initAddOverlaysForm(), ilPCMediaObjectGUI\initAliasForm(), ilPCDataTableGUI\initCellPropertiesForm(), ilPCLayoutTemplateGUI\initCreationForm(), ilPCDataTableGUI\initCreationForm(), ilPCFileListGUI\initEditForm(), ilPCDataTableGUI\initEditingForm(), ilPCContentTemplateGUI\initForm(), ilPCResourcesGUI\initForm(), ilPCAMDPageListGUI\initForm(), ilPCMyCoursesGUI\initForm(), ilPCMapGUI\initForm(), ilPCLearningHistoryGUI\initForm(), ilPCConsultationHoursGUI\initForm(), ilPCProfileGUI\initForm(), ilPCBlogGUI\initForm(), ilPCTabsGUI\initForm(), ilPCSkillsGUI\initForm(), ilPCInteractiveImageGUI\initForm(), ilPCSectionGUI\initForm(), ilPCDataTableGUI\initImportForm(), ilPCBlogGUI\initPostingForm(), ilPCTableGUI\initPropertiesForm(), ilPCInteractiveImageGUI\insert(), ilPCQuestionGUI\insert(), ilPCMediaObjectGUI\insert(), ilPCContentIncludeGUI\insertFromPool(), ilPCMediaObjectGUI\insertFromPool(), ilPCFileListGUI\insertFromRepository(), ilPCFileItemGUI\insertFromRepository(), ilPCFileListGUI\insertFromWorkspace(), ilPCFileItemGUI\insertFromWorkspace(), ilPCInteractiveImageGUI\listOverlayImages(), ilPCQuestionGUI\listPoolQuestions(), ilPCContentIncludeGUI\poolSelection(), ilPCQuestionGUI\poolSelection(), ilPCMediaObjectGUI\poolSelection(), redirectToParent(), ilPCInteractiveImageGUI\savePopups(), ilPCFileListGUI\savePositions(), ilPCFileListGUI\savePositionsAndClasses(), ilPCFileListGUI\saveProperties(), ilPCTabsGUI\saveTabs(), ilPCMediaObjectGUI\selectObjectReference(), ilPCContentIncludeGUI\selectPool(), ilPCMediaObjectGUI\selectPool(), ilPCQuestionGUI\selectPool(), ilPCTableGUI\setCellPropertiesSubTabs(), ilPCQuestionGUI\setInsertTabs(), ilPCFileListGUI\setItemTabs(), ilPCTableGUI\setTabs(), ilPCFileItemGUI\setTabs(), ilPCQuestionGUI\setTabs(), ilPCFileListGUI\setTabs(), ilPCTabsGUI\setTabs(), ilPCDataTableGUI\tableAction(), ilPCInteractiveImageGUI\update(), ilPCDataTableGUI\updateJS(), and ilPCInteractiveImageGUI\uploadOverlayImages().

◆ $dom

DOMDocument ilPageContentGUI::$dom

Definition at line 44 of file class.ilPageContentGUI.php.

◆ $edit_repo

EditSessionRepository ilPageContentGUI::$edit_repo
protected

Definition at line 33 of file class.ilPageContentGUI.php.

◆ $editor_gui

ILIAS COPage Editor GUIService ilPageContentGUI::$editor_gui
protected

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

◆ $gui

ILIAS COPage InternalGUIService ilPageContentGUI::$gui
protected

◆ $hier_id

string ilPageContentGUI::$hier_id = ""

Definition at line 43 of file class.ilPageContentGUI.php.

Referenced by getHierId(), getParentReturn(), and redirectToParent().

◆ $lng

ilLanguage ilPageContentGUI::$lng

Definition at line 39 of file class.ilPageContentGUI.php.

Referenced by __construct(), ilPCTableGUI\_addAlignmentCheckboxes(), ilPCTableGUI\_addSpanInputs(), ilPCTableGUI\_addStyleCheckboxes(), ilPCTableGUI\_addWidthInputs(), ilPCParagraphGUI\_getStandardCharacteristics(), ilPCSectionGUI\_getStandardCharacteristics(), ilPCInteractiveImageGUI\addPopup(), ilPCTabsGUI\addTab(), ilPCMediaObjectGUI\changeObjectReference(), ilPCInteractiveImageGUI\confirmDeleteOverlays(), ilPCInteractiveImageGUI\confirmPopupDeletion(), ilPCTabsGUI\confirmTabsDeletion(), ilPCAMDFormGUI\create(), ilPCTabsGUI\create(), ilPCMediaObjectGUI\create(), ilPCFileListGUI\createFileItem(), ilPCInteractiveImageGUI\deleteOverlays(), ilPCInteractiveImageGUI\deletePopups(), ilPCLoginPageElementGUI\edit(), ilPCTabsGUI\edit(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellSpan(), ilPCTableGUI\editCellStyle(), ilPCTableGUI\editCellWidth(), ilPCMediaObjectGUI\editStyle(), ilPCPluggedGUI\executeCommand(), ilPCMediaObjectGUI\getAliasValues(), ilPCTabsGUI\getCaptionForm(), ilPCMediaObjectGUI\getEnabledMapAreas(), ilPCLearningHistoryGUI\getPlaceholderPresentation(), ilPCAMDFormGUI\getPortfolioForm(), ilPCInteractiveImageGUI\getTabs(), ilPCMediaObjectGUI\getTabs(), ilPCPlaceHolderGUI\getTypeCaptions(), ilPCFileItemGUI\initAddFileForm(), ilPCInteractiveImageGUI\initAddOverlaysForm(), ilPCMediaObjectGUI\initAliasForm(), ilPCDataTableGUI\initCellPropertiesForm(), ilPCLayoutTemplateGUI\initCreationForm(), ilPCGridGUI\initCreationForm(), ilPCPlaceHolderGUI\initCreationForm(), ilPCDataTableGUI\initCreationForm(), ilPCFileListGUI\initEditForm(), ilPCDataTableGUI\initEditingForm(), ilPCContentTemplateGUI\initForm(), ilPCResourcesGUI\initForm(), ilPCLearningHistoryGUI\initForm(), ilPCMapGUI\initForm(), ilPCTabsGUI\initForm(), ilPCInteractiveImageGUI\initForm(), ilPCSectionGUI\initForm(), ilPCDataTableGUI\initImportForm(), ilPCListGUI\initListForm(), ilPCTableGUI\initPropertiesForm(), ilPCInteractiveImageGUI\insert(), ilPCQuestionGUI\insert(), ilPCMediaObjectGUI\insert(), ilPCContentIncludeGUI\insertFromPool(), ilPCMediaObjectGUI\insertFromPool(), ilPCParagraphGUI\insertHelp(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilPCInteractiveImageGUI\listOverlayImages(), ilPCQuestionGUI\listPoolQuestions(), ilPCFileItemGUI\newFileItem(), ilPCInteractiveImageGUI\savePopups(), ilPCFileListGUI\saveProperties(), ilPCTabsGUI\saveTabs(), ilPCMediaObjectGUI\selectObjectReference(), ilPCTableGUI\setAlignment(), ilPCQuestionGUI\setInsertTabs(), ilPCTableGUI\setSpans(), ilPCTableGUI\setStyles(), ilPCTableGUI\setTabs(), ilPCFileListGUI\setTabs(), ilPCTabsGUI\setTabs(), ilPCTableGUI\setWidths(), ilPCDataTableGUI\update(), ilPCAMDFormGUI\update(), ilPCInteractiveImageGUI\update(), ilPCAMDFormGUI\updateAdvancedMetaData(), ilPCDataTableGUI\updateJS(), and ilPCInteractiveImageGUI\uploadOverlayImages().

◆ $log

ilLogger ilPageContentGUI::$log
protected

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

◆ $lom_services

LOMServices ilPageContentGUI::$lom_services
protected

Definition at line 41 of file class.ilPageContentGUI.php.

◆ $page_config

ilPageConfig ilPageContentGUI::$page_config = null

Definition at line 49 of file class.ilPageContentGUI.php.

Referenced by getPageConfig().

◆ $pc_id

string ilPageContentGUI::$pc_id = ""
protected

◆ $pg_obj

ilPageObject ilPageContentGUI::$pg_obj

Definition at line 42 of file class.ilPageContentGUI.php.

Referenced by getPage().

◆ $request

◆ $requested_ref_id

◆ $return_location

string ilPageContentGUI::$return_location = ""

Definition at line 48 of file class.ilPageContentGUI.php.

◆ $style

◆ $style_selector_reset

string ilPageContentGUI::$style_selector_reset = "margin-top:2px; margin-bottom:2px; text-indent:0px; position:static; float:none; width: auto;"
static

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

◆ $styleid

int ilPageContentGUI::$styleid = 0
protected

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

Referenced by ilPCPlaceHolderGUI\getStyleId(), and getStyleId().

◆ $sub_command

◆ $target_script

string ilPageContentGUI::$target_script = ""

Definition at line 47 of file class.ilPageContentGUI.php.

◆ $tool_context

ILIAS GlobalScreen ScreenContext ContextServices ilPageContentGUI::$tool_context
protected

Definition at line 58 of file class.ilPageContentGUI.php.

◆ $tpl

ilGlobalTemplateInterface ilPageContentGUI::$tpl

Definition at line 38 of file class.ilPageContentGUI.php.

Referenced by ilPCInteractiveImageGUI\addOverlayImages(), ilPCInteractiveImageGUI\confirmDeleteOverlays(), ilPCInteractiveImageGUI\confirmPopupDeletion(), ilPCTabsGUI\confirmTabsDeletion(), ilPCListGUI\create(), ilPCContentTemplateGUI\create(), ilPCLayoutTemplateGUI\create(), ilPCAMDFormGUI\create(), ilPCMapGUI\create(), ilPCInteractiveImageGUI\deleteOverlays(), ilPCMapGUI\edit(), ilPCAMDPageListGUI\edit(), ilPCLoginPageElementGUI\edit(), ilPCMyCoursesGUI\edit(), ilPCResourcesGUI\edit(), ilPCLearningHistoryGUI\edit(), ilPCConsultationHoursGUI\edit(), ilPCProfileGUI\edit(), ilPCBlogGUI\edit(), ilPCSkillsGUI\edit(), ilPCPluggedGUI\edit(), ilPCSectionGUI\edit(), ilPCTabsGUI\edit(), ilPCMediaObjectGUI\editAlias(), ilPCInteractiveImageGUI\editBaseImage(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellSpan(), ilPCTableGUI\editCellStyle(), ilPCTableGUI\editCellWidth(), ilPCAMDFormGUI\editPortfolio(), ilPCBlogGUI\editPosting(), ilPCTabsGUI\editProperties(), ilPCTableGUI\editProperties(), ilPCMediaObjectGUI\editStyle(), ilPCAMDFormGUI\editTemplate(), ilPCInteractiveImageGUI\executeCommand(), ilPCMediaObjectGUI\getEnabledMapAreas(), ilPCResourcesGUI\initForm(), ilPCMyCoursesGUI\insert(), ilPCAMDPageListGUI\insert(), ilPCMapGUI\insert(), ilPCSkillsGUI\insert(), ilPCConsultationHoursGUI\insert(), ilPCLayoutTemplateGUI\insert(), ilPCProfileGUI\insert(), ilPCLearningHistoryGUI\insert(), ilPCContentTemplateGUI\insert(), ilPCTabsGUI\insert(), ilPCBlogGUI\insert(), ilPCAMDFormGUI\insert(), ilPCInteractiveImageGUI\insert(), ilPCMediaObjectGUI\insert(), ilPCTableGUI\insert(), ilPCContentIncludeGUI\insertFromPool(), ilPCMediaObjectGUI\insertFromPool(), ilPCFileListGUI\insertFromRepository(), ilPCFileItemGUI\insertFromRepository(), ilPCFileListGUI\insertFromWorkspace(), ilPCFileItemGUI\insertFromWorkspace(), ilPCBlogGUI\insertPosting(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilPCInteractiveImageGUI\listOverlayImages(), ilPCQuestionGUI\listPoolQuestions(), ilPCContentIncludeGUI\poolSelection(), ilPCQuestionGUI\poolSelection(), ilPCMediaObjectGUI\poolSelection(), ilPCListGUI\saveProperties(), ilPCFileListGUI\saveProperties(), ilPCMapGUI\update(), and ilPCAMDFormGUI\update().

◆ $updated

ilPageContentGUI::$updated

Definition at line 46 of file class.ilPageContentGUI.php.

Referenced by cut(), and delete().


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