ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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

 ilPageContentGUI ($a_pg_obj, $a_content_obj, $a_hier_id=0, $a_pc_id="")
 Constructor @access public. More...
 
 setContentObject ($a_val)
 Set content object. More...
 
 getContentObject ()
 Get content object. More...
 
 setPage ($a_val)
 Set page. More...
 
 getPage ()
 Get page. More...
 
 setPageConfig ($a_val)
 Set Page Config. More...
 
 getPageConfig ()
 Get Page Config. More...
 
 setStyleId ($a_styleid)
 Set Style Id. More...
 
 getStyleId ()
 Get Style Id. More...
 
 getStyle ()
 Get style object. More...
 
 setCharacteristics ($a_chars)
 Set Characteristics. More...
 
 getCharacteristics ()
 Get characteristics. More...
 
 getHierId ()
 get hierarchical id in dom object More...
 
 setHierId ($a_hier_id)
 get hierarchical id in dom object More...
 
 getBBMenu ($a_ta_name="par_content")
 Get the bb menu incl. More...
 
 delete ()
 delete content element More...
 
 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 ()
 display validation errors More...
 
 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 ($a_type)
 Get table templates. More...
 

Static Public Member Functions

static _getCommonBBButtons ()
 Get common bb buttons. More...
 

Data Fields

 $content_obj
 
 $ilias
 
 $tpl
 
 $lng
 
 $ctrl
 
 $pg_obj
 
 $hier_id
 
 $dom
 
 $updated
 
 $target_script
 
 $return_location
 
 $page_config = null
 

Static Public Attributes

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

Protected Member Functions

 getCharacteristicsOfCurrentStyle ($a_type)
 Get characteristics of current style. More...
 

Protected Attributes

 $log
 

Static Protected Attributes

static $common_bb_buttons
 

Detailed Description

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

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

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

Member Function Documentation

◆ _getCommonBBButtons()

static ilPageContentGUI::_getCommonBBButtons ( )
static

◆ cancel()

ilPageContentGUI::cancel ( )

Cancel.

Reimplemented in ilPCParagraphGUI, and ilPCPlaceHolderGUI.

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

564 {
565 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
566 }

◆ cancelCreate()

ilPageContentGUI::cancelCreate ( )

cancel creating page content

Reimplemented in ilPCSourceCodeGUI.

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

548 {
549 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
550 }

◆ cancelUpdate()

ilPageContentGUI::cancelUpdate ( )

cancel update

Reimplemented in ilPCSourceCodeGUI.

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

556 {
557 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
558 }

◆ copy()

ilPageContentGUI::copy ( )

Copy single element.

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

621 {
622 global $lng;
623
624 $obj = $this->content_obj;
625
626 ilUtil::sendSuccess($lng->txt("cont_sel_el_copied_use_paste"), true);
627 $this->pg_obj->copyContents(array($this->hier_id.":".$this->pc_id));
628
629 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
630 }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.

References $content_obj, $lng, and ilUtil\sendSuccess().

+ Here is the call graph for this function:

◆ cut()

ilPageContentGUI::cut ( )

Cut single element.

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

598 {
599 global $lng;
600
601 $obj = $this->content_obj;
602
603 $updated = $this->pg_obj->cutContents(array($this->hier_id.":".$this->pc_id));
604 if($updated !== true)
605 {
606 $_SESSION["il_pg_error"] = $updated;
607 }
608 else
609 {
610 unset($_SESSION["il_pg_error"]);
611 }
612
613 ilUtil::sendSuccess($lng->txt("cont_sel_el_cut_use_paste"), true);
614 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
615 }
$_SESSION["AccountId"]

References $_SESSION, $content_obj, $lng, $updated, and ilUtil\sendSuccess().

+ 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 572 of file class.ilPageContentGUI.php.

573 {
574 $obj = & $this->content_obj;
575
576 if ($obj->isEnabled ())
577 $obj->disable ();
578 else
579 $obj->enable ();
580
581 $updated = $this->pg_obj->update($this->hier_id);
582 if($updated !== true)
583 {
584 $_SESSION["il_pg_error"] = $updated;
585 }
586 else
587 {
588 unset($_SESSION["il_pg_error"]);
589 }
590
591 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
592 }

References $_SESSION, $content_obj, and $updated.

◆ delete()

ilPageContentGUI::delete ( )

delete content element

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

338 {
339 $updated = $this->pg_obj->deleteContent($this->hier_id);
340 if($updated !== true)
341 {
342 $_SESSION["il_pg_error"] = $updated;
343 }
344 else
345 {
346 unset($_SESSION["il_pg_error"]);
347 }
348 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
349 }

References $_SESSION, and $updated.

◆ displayValidationError()

ilPageContentGUI::displayValidationError ( )

display validation errors

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

523 {
524 if(is_array($this->updated))
525 {
526 $error_str = "<b>Error(s):</b><br>";
527 foreach ($this->updated as $error)
528 {
529 $err_mess = implode($error, " - ");
530 if (!is_int(strpos($err_mess, ":0:")))
531 {
532 $error_str .= htmlentities($err_mess)."<br />";
533 }
534 }
535 ilUtil::sendFailure($error_str);
536 }
537 else if($this->updated != "" && $this->updated !== true)
538 {
539 ilUtil::sendFailure("<b>Error(s):</b><br />".
540 $this->updated);
541 }
542 }
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.

References ilUtil\sendFailure().

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

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

◆ getBBMenu()

ilPageContentGUI::getBBMenu (   $a_ta_name = "par_content")

Get the bb menu incl.

script

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

254 {
255 global $lng, $ilCtrl;
256
257 include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
258
259 $btpl = new ilTemplate("tpl.bb_menu.html", true, true, "Services/COPage");
260
261 // not nice, should be set by context per method
262 //if ($this->pg_obj->getParentType() == "gdf" ||
263 // $this->pg_obj->getParentType() == "lm" ||
264 // $this->pg_obj->getParentType() == "dbk")
265 if ($this->getPageConfig()->getEnableInternalLinks())
266 {
267 $btpl->setCurrentBlock("bb_ilink_button");
268 $btpl->setVariable("BB_LINK_ILINK",
269 $this->ctrl->getLinkTargetByClass("ilInternalLinkGUI", "showLinkHelp"));
270 $btpl->parseCurrentBlock();
271
272 // add int link parts
273 include_once("./Services/Link/classes/class.ilInternalLinkGUI.php");
274 $btpl->setCurrentBlock("int_link_prep");
275 $btpl->setVariable("INT_LINK_PREP", ilInternalLinkGUI::getInitHTML(
276 $ilCtrl->getLinkTargetByClass(array("ilpageeditorgui", "ilinternallinkgui"),
277 "", false, true, false), true));
278 $btpl->parseCurrentBlock();
279
280 }
281
282 if ($this->getPageConfig()->getEnableKeywords())
283 {
284 $btpl->touchBlock("bb_kw_button");
285 $btpl->setVariable("TXT_KW", $this->lng->txt("cont_text_keyword"));
286 }
287 if ($this->pg_obj->getParentType() == "wpg")
288 {
289 $btpl->setCurrentBlock("bb_wikilink_button2");
290 $btpl->setVariable("TXT_WIKI_BUTTON2", $lng->txt("obj_wiki"));
291 $btpl->setVariable("WIKI_BUTTON2_URL", $ilCtrl->getLinkTargetByClass("ilwikipagegui", ""));
292 $btpl->parseCurrentBlock();
293
294 $btpl->setCurrentBlock("bb_wikilink_button");
295 $btpl->setVariable("TXT_WLN2", $lng->txt("wiki_wiki_page"));
296 $btpl->parseCurrentBlock();
297 }
298 $mathJaxSetting = new ilSetting("MathJax");
299 $style = $this->getStyle();
300//echo URL_TO_LATEX;
301 foreach (self::$common_bb_buttons as $c => $st)
302 {
303 if (ilPageEditorSettings::lookupSettingByParentType($this->pg_obj->getParentType(), "active_".$c, true))
304 {
305 if ($c != "tex" || $mathJaxSetting->get("enable") || defined("URL_TO_LATEX"))
306 {
307 $btpl->touchBlock("bb_".$c."_button");
308 $btpl->setVariable("TXT_".strtoupper($c), $this->lng->txt("cont_text_".$c));
309 }
310 }
311 }
312
313 if ($this->getPageConfig()->getEnableAnchors())
314 {
315 $btpl->touchBlock("bb_anc_button");
316 $btpl->setVariable("TXT_ANC", $lng->txt("cont_anchor").":");
317 }
318
319 // footnote
320// $btpl->setVariable("TXT_FN", $this->lng->txt("cont_text_fn"));
321
322// $btpl->setVariable("TXT_CODE", $this->lng->txt("cont_text_code"));
323 $btpl->setVariable("TXT_ILN", $this->lng->txt("cont_text_iln"));
324// $btpl->setVariable("TXT_XLN", $this->lng->txt("cont_text_xln"));
325// $btpl->setVariable("TXT_TEX", $this->lng->txt("cont_text_tex"));
326 $btpl->setVariable("TXT_BB_TIP", $this->lng->txt("cont_bb_tip"));
327 $btpl->setVariable("TXT_WLN", $lng->txt("wiki_wiki_page"));
328
329 $btpl->setVariable("PAR_TA_NAME", $a_ta_name);
330
331 return $btpl->get();
332 }
getInitHTML($a_url, $a_move_to_body=false)
Get initialisation HTML to use interna link editing.
getPageConfig()
Get Page Config.
getStyle()
Get style object.
static lookupSettingByParentType($a_par_type, $a_name, $a_default=false)
Lookup setting by parent type.
ILIAS Setting Class.
special template class to simplify handling of ITX/PEAR
$style
Definition: example_012.php:70
global $ilCtrl
Definition: ilias.php:18
if(strpos( $jquery_path, './')===0) else if(strpos($jquery_path, '.')===0) $mathJaxSetting
Definition: latex.php:34

References $ilCtrl, $lng, $mathJaxSetting, $style, ilInternalLinkGUI\getInitHTML(), getPageConfig(), getStyle(), and ilPageEditorSettings\lookupSettingByParentType().

Referenced by ilPCParagraphGUI\edit(), and ilPCDataTableGUI\editDataCl().

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

◆ getCharacteristics()

ilPageContentGUI::getCharacteristics ( )

◆ getCharacteristicsOfCurrentStyle()

ilPageContentGUI::getCharacteristicsOfCurrentStyle (   $a_type)
protected

Get characteristics of current style.

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

181 {
182 if ($this->getStyleId() > 0 &&
183 ilObject::_lookupType($this->getStyleId()) == "sty")
184 {
185 include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
186 $style = new ilObjStyleSheet($this->getStyleId());
187 $chars = array();
188 if (!is_array($a_type))
189 {
190 $a_type = array($a_type);
191 }
192 foreach ($a_type as $at)
193 {
194 $chars = array_merge($chars, $style->getCharacteristics($at, true));
195 }
196 $new_chars = array();
197 if (is_array($chars))
198 {
199 foreach ($chars as $char)
200 {
201 if ($this->chars[$char] != "") // keep lang vars for standard chars
202 {
203 $new_chars[$char] = $this->chars[$char];
204 }
205 else
206 {
207 $new_chars[$char] = $char;
208 }
209 asort($new_chars);
210 }
211 }
212 $this->setCharacteristics($new_chars);
213 }
214 }
Class ilObjStyleSheet.
static _lookupType($a_id, $a_reference=false)
lookup object type
setCharacteristics($a_chars)
Set Characteristics.

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

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

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

◆ getContentObject()

ilPageContentGUI::getContentObject ( )

Get content object.

Returns
object content object

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

87 {
88 return $this->content_obj;
89 }

References $content_obj.

◆ getHierId()

◆ getPage()

◆ getPageConfig()

◆ getStyle()

ilPageContentGUI::getStyle ( )

Get style object.

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

164 {
165 if ((!is_object($this->style) || $this->getStyleId() != $this->style->getId()) && $this->getStyleId() > 0)
166 {
167 if (ilObject::_lookupType($this->getStyleId()) == "sty")
168 {
169 include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
170 $this->style = new ilObjStyleSheet($this->getStyleId());
171 }
172 }
173
174 return $this->style;
175 }

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

Referenced by getBBMenu(), and getTemplateOptions().

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

◆ getStyleId()

ilPageContentGUI::getStyleId ( )

Get Style Id.

Returns
int Style Id

Reimplemented in ilPCPlaceHolderGUI.

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

156 {
157 return $this->styleid;
158 }

Referenced by ilPCDataTableGUI\editData(), getCharacteristicsOfCurrentStyle(), ilPCTabsGUI\getFormValues(), ilPCTableGUI\getPropertiesFormValues(), getStyle(), and ilPCTableGUI\renderTable().

+ Here is the caller graph for this function:

◆ getTemplateOptions()

ilPageContentGUI::getTemplateOptions (   $a_type)

Get table templates.

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

637 {
638 $style = $this->getStyle();
639
640 if (is_object($style))
641 {
642 $ts = $style->getTemplates($a_type);
643 $options = array();
644 foreach ($ts as $t)
645 {
646 $options["t:".$t["id"].":".$t["name"]] = $t["name"];
647 }
648 return $options;
649 }
650 return array();
651 }
if(!is_array($argv)) $options

References $options, $style, $t, and getStyle().

Referenced by ilPCTabsGUI\initForm().

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

◆ ilPageContentGUI()

ilPageContentGUI::ilPageContentGUI (   $a_pg_obj,
  $a_content_obj,
  $a_hier_id = 0,
  $a_pc_id = "" 
)

Constructor @access public.

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

50 {
51 global $ilias, $tpl, $lng, $ilCtrl;
52
53 $this->log = ilLoggerFactory::getLogger('copg');
54
55 $this->ilias = $ilias;
56 $this->tpl = $tpl;
57 $this->lng = $lng;
58 $this->pg_obj = $a_pg_obj;
59 $this->ctrl = $ilCtrl;
60 $this->content_obj = $a_content_obj;
61
62 if($a_hier_id !== 0)
63 {
64 $this->hier_id = $a_hier_id;
65 $this->pc_id = $a_pc_id;
66//echo "-".$this->pc_id."-";
67 $this->dom = $a_pg_obj->getDom();
68 }
69 }
static getLogger($a_component_id)
Get component logger.
redirection script todo: (a better solution should control the processing via a xml file)

References $ilCtrl, $ilias, $lng, $tpl, and ilLoggerFactory\getLogger().

+ Here is the call graph for this function:

◆ moveAfter()

ilPageContentGUI::moveAfter ( )

move content element after another element

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

355 {
356 // check if a target is selected
357 if(!isset($_POST["target"]))
358 {
359 $this->ilias->raiseError($this->lng->txt("no_checkbox"),$this->ilias->error_obj->MESSAGE);
360 }
361
362 // check if only one target is selected
363 if(count($_POST["target"]) > 1)
364 {
365 $this->ilias->raiseError($this->lng->txt("only_one_target"),$this->ilias->error_obj->MESSAGE);
366 }
367
368 $a_hid = explode(":", $_POST["target"][0]);
369//echo "-".$a_hid[0]."-".$a_hid[1]."-";
370
371 // check if target is within source
372 if($this->hier_id == substr($a_hid[0], 0, strlen($this->hier_id)))
373 {
374 $this->ilias->raiseError($this->lng->txt("cont_target_within_source"),$this->ilias->error_obj->MESSAGE);
375 }
376
377 // check whether target is allowed
378 $curr_node =& $this->pg_obj->getContentNode($a_hid[0], $a_hid[1]);
379 if (is_object($curr_node) && $curr_node->node_name() == "FileItem")
380 {
381 $this->ilias->raiseError($this->lng->txt("cont_operation_not_allowed"),$this->ilias->error_obj->MESSAGE);
382 }
383
384 // strip "c" "r" of table ids from hierarchical id
385 $first_hier_character = substr($a_hid[0], 0, 1);
386 if ($first_hier_character == "c" ||
387 $first_hier_character == "r" ||
388 $first_hier_character == "i")
389 {
390 $a_hid[0] = substr($a_hid[0], 1);
391 }
392
393 // move
394 $updated = $this->pg_obj->moveContentAfter($this->hier_id, $a_hid[0],
395 $this->content_obj->getPcId(), $a_hid[1]);
396 if($updated !== true)
397 {
398 $_SESSION["il_pg_error"] = $updated;
399 }
400 else
401 {
402 unset($_SESSION["il_pg_error"]);
403 }
404
405 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
406 }
$_POST['username']
Definition: cron.php:12

References $_POST, $_SESSION, and $updated.

◆ moveBefore()

ilPageContentGUI::moveBefore ( )

move content element before another element

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

412 {
413 // check if a target is selected
414 if(!isset($_POST["target"]))
415 {
416 $this->ilias->raiseError($this->lng->txt("no_checkbox"),$this->ilias->error_obj->MESSAGE);
417 }
418
419 // check if target is within source
420 if(count($_POST["target"]) > 1)
421 {
422 $this->ilias->raiseError($this->lng->txt("only_one_target"),$this->ilias->error_obj->MESSAGE);
423 }
424
425 $a_hid = explode(":", $_POST["target"][0]);
426
427 // check if target is within source
428 if($this->hier_id == substr($a_hid[0], 0, strlen($this->hier_id)))
429 {
430 $this->ilias->raiseError($this->lng->txt("cont_target_within_source"),$this->ilias->error_obj->MESSAGE);
431 }
432
433 // check whether target is allowed
434 $curr_node =& $this->pg_obj->getContentNode($a_hid[0], $a_hid[1]);
435 if (is_object($curr_node) && $curr_node->node_name() == "FileItem")
436 {
437 $this->ilias->raiseError($this->lng->txt("cont_operation_not_allowed"),$this->ilias->error_obj->MESSAGE);
438 }
439
440 // strip "c" "r" of table ids from hierarchical id
441 $first_hier_character = substr($a_hid[0], 0, 1);
442 if ($first_hier_character == "c" ||
443 $first_hier_character == "r" ||
444 $first_hier_character == "i")
445 {
446 $a_hid[0] = substr($a_hid[0], 1);
447 }
448
449 // move
450 $updated = $this->pg_obj->moveContentBefore($this->hier_id, $a_hid[0],
451 $this->content_obj->getPcId(), $a_hid[1]);
452 if($updated !== true)
453 {
454 $_SESSION["il_pg_error"] = $updated;
455 }
456 else
457 {
458 unset($_SESSION["il_pg_error"]);
459 }
460 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
461 }

References $_POST, $_SESSION, and $updated.

◆ setCharacteristics()

ilPageContentGUI::setCharacteristics (   $a_chars)

◆ setContentObject()

ilPageContentGUI::setContentObject (   $a_val)

Set content object.

Parameters
object$a_valcontent object

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

77 {
78 $this->content_obj = $a_val;
79 }

◆ setHierId()

ilPageContentGUI::setHierId (   $a_hier_id)

get hierarchical id in dom object

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

246 {
247 $this->hier_id = $a_hier_id;
248 }

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

+ Here is the caller graph for this function:

◆ setPage()

ilPageContentGUI::setPage (   $a_val)

Set page.

Parameters
object$a_valpage object

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

97 {
98 $this->pg_obj = $a_val;
99 }

◆ setPageConfig()

ilPageContentGUI::setPageConfig (   $a_val)

Set Page Config.

Parameters
objectPage Config

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

117 {
118 $this->page_config = $a_val;
119 }

◆ setStyleId()

ilPageContentGUI::setStyleId (   $a_styleid)

Set Style Id.

Parameters
int$a_styleidStyle Id

Reimplemented in ilPCPlaceHolderGUI.

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

146 {
147 $this->styleid = $a_styleid;
148 }

◆ splitPage()

ilPageContentGUI::splitPage ( )

split page to new page at specified position

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

468 {
469 global $ilErr;
470
471 if ($this->pg_obj->getParentType() != "lm" &&
472 $this->pg_obj->getParentType() != "dbk")
473 {
474 $ilErr->raiseError("Split method called for wrong parent type (".
475 $this->pg_obj->getParentType().")", $ilErr->FATAL);
476 }
477 else
478 {
479 $lm_page =& ilLMPageObject::_splitPage($this->pg_obj->getId(),
480 $this->pg_obj->getParentType(), $this->hier_id);
481
482 // jump to new page
483 $this->ctrl->setParameterByClass("illmpageobjectgui", "obj_id", $lm_page->getId());
484 $this->ctrl->redirectByClass("illmpageobjectgui", "edit");
485 }
486
487 $this->ctrl->returnToParent($this, "jump".($this->hier_id - 1));
488 }
_splitPage($a_page_id, $a_pg_parent_type, $a_hier_id)
split page at hierarchical id

References $ilErr, and ilLMPageObject\_splitPage().

+ Here is the call graph for this function:

◆ splitPageNext()

ilPageContentGUI::splitPageNext ( )

split page to next page at specified position

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

494 {
495 global $ilErr;
496
497 if ($this->pg_obj->getParentType() != "lm" &&
498 $this->pg_obj->getParentType() != "dbk")
499 {
500 $ilErr->raiseError("Split method called for wrong parent type (".
501 $this->pg_obj->getParentType().")", $ilErr->FATAL);
502 }
503 else
504 {
505 $succ_id = ilLMPageObject::_splitPageNext($this->pg_obj->getId(),
506 $this->pg_obj->getParentType(), $this->hier_id);
507
508 // jump to successor page
509 if ($succ_id > 0)
510 {
511 $this->ctrl->setParameterByClass("illmpageobjectgui", "obj_id", $succ_id);
512 $this->ctrl->redirectByClass("illmpageobjectgui", "edit");
513 }
514
515 }
516 $this->ctrl->returnToParent($this, "jump".($this->hier_id - 1));
517 }
_splitPageNext($a_page_id, $a_pg_parent_type, $a_hier_id)
split page to next page at hierarchical id

References $ilErr, and ilLMPageObject\_splitPageNext().

+ Here is the call graph for this function:

Field Documentation

◆ $common_bb_buttons

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 37 of file class.ilPageContentGUI.php.

Referenced by _getCommonBBButtons().

◆ $content_obj

ilPageContentGUI::$content_obj

◆ $ctrl

ilPageContentGUI::$ctrl

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

◆ $dom

ilPageContentGUI::$dom

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

◆ $hier_id

ilPageContentGUI::$hier_id

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

Referenced by ilPCQuestionGUI\create(), and getHierId().

◆ $ilias

◆ $lng

ilPageContentGUI::$lng

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

Referenced by ilPCTableGUI\_addAlignmentCheckboxes(), ilPCTableGUI\_addSpanInputs(), ilPCTableGUI\_addStyleCheckboxes(), ilPCTableGUI\_addWidthInputs(), ilPCParagraphGUI\_getStandardCharacteristics(), ilPCSectionGUI\_getStandardCharacteristics(), ilPCInteractiveImageGUI\addPopup(), ilPCTabsGUI\addTab(), ilPCMediaObjectGUI\changeObjectReference(), ilPCInteractiveImageGUI\confirmDeleteOverlays(), ilPCInteractiveImageGUI\confirmPopupDeletion(), ilPCTabsGUI\confirmTabsDeletion(), copy(), ilPCMediaObjectGUI\create(), ilPCContentIncludeGUI\create(), ilPCInteractiveImageGUI\create(), ilPCListGUI\create(), ilPCQuestionGUI\create(), ilPCTableGUI\create(), ilPCTabsGUI\create(), ilPCFileListGUI\createFileItem(), cut(), ilPCInteractiveImageGUI\deleteOverlays(), ilPCInteractiveImageGUI\deletePopups(), ilPCLoginPageElementGUI\edit(), ilPCMapGUI\edit(), ilPCPluggedGUI\edit(), ilPCQuestionOverviewGUI\edit(), ilPCResourcesGUI\edit(), ilPCSectionGUI\edit(), ilPCTableGUI\edit(), ilPCTabsGUI\edit(), ilPCInteractiveImageGUI\editBaseImage(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellSpan(), ilPCTableGUI\editCellStyle(), ilPCTableGUI\editCellWidth(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilPCFileListGUI\editFiles(), ilPCTabsGUI\editProperties(), ilPCMediaObjectGUI\editStyle(), ilPCInteractiveImageGUI\executeCommand(), ilPCMediaObjectGUI\executeCommand(), ilPCPluggedGUI\executeCommand(), ilPCQuestionGUI\executeCommand(), ilPCMediaObjectGUI\getAliasValues(), getBBMenu(), ilPCParagraphGUI\getCharStyleSelector(), ilPCInteractiveImageGUI\getTabs(), ilPCPlaceHolderGUI\getTypeCaptions(), ilPageContentGUI(), ilPCFileItemGUI\initAddFileForm(), ilPCInteractiveImageGUI\initAddOverlaysForm(), ilPCMediaObjectGUI\initAliasForm(), ilPCFileListGUI\initEditForm(), ilPCConsultationHoursGUI\initForm(), ilPCBlogGUI\initForm(), ilPCSectionGUI\initForm(), ilPCSkillsGUI\initForm(), ilPCVerificationGUI\initForm(), ilPCMapGUI\initForm(), ilPCInteractiveImageGUI\initForm(), ilPCTabsGUI\initForm(), ilPCContentTemplateGUI\initForm(), ilPCListGUI\initListForm(), ilPCTableGUI\initPropertiesForm(), ilPCQuestionGUI\insert(), ilPCInteractiveImageGUI\insert(), ilPCMediaObjectGUI\insert(), ilPCTableGUI\insert(), ilPCMediaObjectGUI\insertFromPool(), ilPCContentIncludeGUI\insertFromPool(), ilPCQuestionGUI\insertFromPool(), ilPCParagraphGUI\insertHelp(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilPCInteractiveImageGUI\listContentPopups(), ilPCInteractiveImageGUI\listOverlayImages(), ilPCQuestionGUI\listPoolQuestions(), ilPCFileItemGUI\newFileItem(), ilPCPlaceHolderGUI\propertyGUI(), ilPCInteractiveImageGUI\savePopups(), ilPCListGUI\saveProperties(), ilPCTabsGUI\saveTabs(), ilPCMediaObjectGUI\selectObjectReference(), ilPCTableGUI\setAlignment(), ilPCTableGUI\setCellPropertiesSubTabs(), ilPCQuestionGUI\setInsertTabs(), ilPCTableGUI\setSpans(), ilPCTableGUI\setStyles(), ilPCFileListGUI\setTabs(), ilPCQuestionGUI\setTabs(), ilPCTableGUI\setTabs(), ilPCTabsGUI\setTabs(), ilPCTableGUI\setWidths(), ilPCPlaceHolderGUI\textCOSelectionGUI(), ilPCDataTableGUI\update(), ilPCInteractiveImageGUI\update(), ilPCDataTableGUI\updateJS(), and ilPCInteractiveImageGUI\uploadOverlayImages().

◆ $log

ilPageContentGUI::$log
protected

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

◆ $page_config

ilPageContentGUI::$page_config = null

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

Referenced by getPageConfig().

◆ $pg_obj

ilPageContentGUI::$pg_obj

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

Referenced by getPage().

◆ $return_location

ilPageContentGUI::$return_location

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

◆ $style_selector_reset

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

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

◆ $target_script

ilPageContentGUI::$target_script

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

◆ $tpl

ilPageContentGUI::$tpl

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

Referenced by ilPCInteractiveImageGUI\addOverlayImages(), ilPCInteractiveImageGUI\confirmDeleteOverlays(), ilPCInteractiveImageGUI\confirmPopupDeletion(), ilPCTabsGUI\confirmTabsDeletion(), ilPCContentTemplateGUI\create(), ilPCListGUI\create(), ilPCMapGUI\create(), ilPCLoginPageElementGUI\edit(), ilPCMapGUI\edit(), ilPCParagraphGUI\edit(), ilPCPluggedGUI\edit(), ilPCQuestionOverviewGUI\edit(), ilPCResourcesGUI\edit(), ilPCSectionGUI\edit(), ilPCInteractiveImageGUI\edit(), ilPCTableGUI\edit(), ilPCTabsGUI\edit(), ilPCConsultationHoursGUI\edit(), ilPCMyCoursesGUI\edit(), ilPCAMDPageListGUI\edit(), ilPCBlogGUI\edit(), ilPCProfileGUI\edit(), ilPCSkillsGUI\edit(), ilPCVerificationGUI\edit(), ilPCMediaObjectGUI\editAlias(), ilPCInteractiveImageGUI\editBaseImage(), ilPCTableGUI\editCellAlignment(), ilPCTableGUI\editCellSpan(), ilPCTableGUI\editCellStyle(), ilPCTableGUI\editCellWidth(), ilPCDataTableGUI\editDataCl(), ilPCFileListGUI\editFiles(), ilPCBlogGUI\editPosting(), ilPCTabsGUI\editProperties(), ilPCMediaObjectGUI\editStyle(), ilPCInteractiveImageGUI\executeCommand(), ilPCMediaObjectGUI\executeCommand(), ilPCQuestionGUI\executeCommand(), ilPCListGUI\getValues(), ilPageContentGUI(), ilPCTabsGUI\initForm(), ilPCTableGUI\initPropertiesForm(), ilPCTabsGUI\insert(), ilPCInteractiveImageGUI\insert(), ilPCMediaObjectGUI\insert(), ilPCContentTemplateGUI\insert(), ilPCMapGUI\insert(), ilPCTableGUI\insert(), ilPCConsultationHoursGUI\insert(), ilPCMyCoursesGUI\insert(), ilPCAMDPageListGUI\insert(), ilPCBlogGUI\insert(), ilPCProfileGUI\insert(), ilPCSkillsGUI\insert(), ilPCVerificationGUI\insert(), ilPCMediaObjectGUI\insertFromPool(), ilPCContentIncludeGUI\insertFromPool(), ilPCQuestionGUI\insertFromPool(), ilPCFileItemGUI\insertFromRepository(), ilPCFileListGUI\insertFromRepository(), ilPCFileItemGUI\insertFromWorkspace(), ilPCFileListGUI\insertFromWorkspace(), ilPCBlogGUI\insertPosting(), ilPCResourcesGUI\insertResourcesIntoPageContent(), ilPCInteractiveImageGUI\listContentPopups(), ilPCInteractiveImageGUI\listOverlayImages(), ilPCQuestionGUI\listPoolQuestions(), ilPCMediaObjectGUI\poolSelection(), ilPCContentIncludeGUI\poolSelection(), ilPCQuestionGUI\poolSelection(), ilPCListGUI\saveProperties(), and ilPCMapGUI\update().

◆ $updated

ilPageContentGUI::$updated

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

Referenced by cut(), deactivate(), delete(), moveAfter(), and moveBefore().


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