ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
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...
 

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

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

◆ cancelCreate()

ilPageContentGUI::cancelCreate ( )

cancel creating page content

Reimplemented in ilPCSourceCodeGUI.

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

538 {
539 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
540 }

◆ cancelUpdate()

ilPageContentGUI::cancelUpdate ( )

cancel update

Reimplemented in ilPCSourceCodeGUI.

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

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

◆ copy()

ilPageContentGUI::copy ( )

Copy single element.

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

611 {
612 global $lng;
613
614 $obj = $this->content_obj;
615
616 ilUtil::sendSuccess($lng->txt("cont_sel_el_copied_use_paste"), true);
617 $this->pg_obj->copyContents(array($this->hier_id.":".$this->pc_id));
618
619 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
620 }
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 587 of file class.ilPageContentGUI.php.

588 {
589 global $lng;
590
591 $obj = $this->content_obj;
592
593 $updated = $this->pg_obj->cutContents(array($this->hier_id.":".$this->pc_id));
594 if($updated !== true)
595 {
596 $_SESSION["il_pg_error"] = $updated;
597 }
598 else
599 {
600 unset($_SESSION["il_pg_error"]);
601 }
602
603 ilUtil::sendSuccess($lng->txt("cont_sel_el_cut_use_paste"), true);
604 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
605 }
< a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false">< img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0"/></a >< br/>< strong > Enter Code *if($_SERVER['REQUEST_METHOD']=='POST' &&@ $_POST['do']=='contact') $_SESSION['ctform']['success']

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

563 {
564 $obj = & $this->content_obj;
565
566 if ($obj->isEnabled ())
567 $obj->disable ();
568 else
569 $obj->enable ();
570
571 $updated = $this->pg_obj->update($this->hier_id);
572 if($updated !== true)
573 {
574 $_SESSION["il_pg_error"] = $updated;
575 }
576 else
577 {
578 unset($_SESSION["il_pg_error"]);
579 }
580
581 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
582 }

References $_SESSION, $content_obj, and $updated.

◆ delete()

ilPageContentGUI::delete ( )

delete content element

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

328 {
329 $updated = $this->pg_obj->deleteContent($this->hier_id);
330 if($updated !== true)
331 {
332 $_SESSION["il_pg_error"] = $updated;
333 }
334 else
335 {
336 unset($_SESSION["il_pg_error"]);
337 }
338 $this->ctrl->returnToParent($this, "jump".$this->hier_id);
339 }

References $_SESSION, and $updated.

◆ displayValidationError()

ilPageContentGUI::displayValidationError ( )

display validation errors

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

513 {
514 if(is_array($this->updated))
515 {
516 $error_str = "<b>Error(s):</b><br>";
517 foreach ($this->updated as $error)
518 {
519 $err_mess = implode($error, " - ");
520 if (!is_int(strpos($err_mess, ":0:")))
521 {
522 $error_str .= htmlentities($err_mess)."<br />";
523 }
524 }
525 ilUtil::sendFailure($error_str);
526 }
527 else if($this->updated != "" && $this->updated !== true)
528 {
529 ilUtil::sendFailure("<b>Error(s):</b><br />".
530 $this->updated);
531 }
532 }
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(), 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 243 of file class.ilPageContentGUI.php.

244 {
245 global $lng, $ilCtrl;
246
247 include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
248
249 $btpl = new ilTemplate("tpl.bb_menu.html", true, true, "Services/COPage");
250
251 // not nice, should be set by context per method
252 //if ($this->pg_obj->getParentType() == "gdf" ||
253 // $this->pg_obj->getParentType() == "lm" ||
254 // $this->pg_obj->getParentType() == "dbk")
255 if ($this->getPageConfig()->getEnableInternalLinks())
256 {
257 $btpl->setCurrentBlock("bb_ilink_button");
258 $btpl->setVariable("BB_LINK_ILINK",
259 $this->ctrl->getLinkTargetByClass("ilInternalLinkGUI", "showLinkHelp"));
260 $btpl->parseCurrentBlock();
261
262 // add int link parts
263 include_once("./Services/Link/classes/class.ilInternalLinkGUI.php");
264 $btpl->setCurrentBlock("int_link_prep");
265 $btpl->setVariable("INT_LINK_PREP", ilInternalLinkGUI::getInitHTML(
266 $ilCtrl->getLinkTargetByClass(array("ilpageeditorgui", "ilinternallinkgui"),
267 "", false, true, false), true));
268 $btpl->parseCurrentBlock();
269
270 }
271
272 if ($this->getPageConfig()->getEnableKeywords())
273 {
274 $btpl->touchBlock("bb_kw_button");
275 $btpl->setVariable("TXT_KW", $this->lng->txt("cont_text_keyword"));
276 }
277 if ($this->pg_obj->getParentType() == "wpg")
278 {
279 $btpl->setCurrentBlock("bb_wikilink_button2");
280 $btpl->setVariable("TXT_WIKI_BUTTON2", $lng->txt("obj_wiki"));
281 $btpl->setVariable("WIKI_BUTTON2_URL", $ilCtrl->getLinkTargetByClass("ilwikipagegui", ""));
282 $btpl->parseCurrentBlock();
283
284 $btpl->setCurrentBlock("bb_wikilink_button");
285 $btpl->setVariable("TXT_WLN2", $lng->txt("wiki_wiki_page"));
286 $btpl->parseCurrentBlock();
287 }
288 $mathJaxSetting = new ilSetting("MathJax");
289 $style = $this->getStyle();
290//echo URL_TO_LATEX;
291 foreach (self::$common_bb_buttons as $c => $st)
292 {
293 if (ilPageEditorSettings::lookupSettingByParentType($this->pg_obj->getParentType(), "active_".$c, true))
294 {
295 if ($c != "tex" || $mathJaxSetting->get("enable") || defined("URL_TO_LATEX"))
296 {
297 $btpl->touchBlock("bb_".$c."_button");
298 $btpl->setVariable("TXT_".strtoupper($c), $this->lng->txt("cont_text_".$c));
299 }
300 }
301 }
302
303 if ($this->getPageConfig()->getEnableAnchors())
304 {
305 $btpl->touchBlock("bb_anc_button");
306 $btpl->setVariable("TXT_ANC", $lng->txt("cont_anchor").":");
307 }
308
309 // footnote
310// $btpl->setVariable("TXT_FN", $this->lng->txt("cont_text_fn"));
311
312// $btpl->setVariable("TXT_CODE", $this->lng->txt("cont_text_code"));
313 $btpl->setVariable("TXT_ILN", $this->lng->txt("cont_text_iln"));
314// $btpl->setVariable("TXT_XLN", $this->lng->txt("cont_text_xln"));
315// $btpl->setVariable("TXT_TEX", $this->lng->txt("cont_text_tex"));
316 $btpl->setVariable("TXT_BB_TIP", $this->lng->txt("cont_bb_tip"));
317 $btpl->setVariable("TXT_WLN", $lng->txt("wiki_wiki_page"));
318
319 $btpl->setVariable("PAR_TA_NAME", $a_ta_name);
320
321 return $btpl->get();
322 }
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
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, 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 170 of file class.ilPageContentGUI.php.

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

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

77 {
78 return $this->content_obj;
79 }

References $content_obj.

◆ getHierId()

◆ getPage()

◆ getPageConfig()

◆ getStyle()

ilPageContentGUI::getStyle ( )

Get style object.

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

154 {
155 if ((!is_object($this->style) || $this->getStyleId() != $this->style->getId()) && $this->getStyleId() > 0)
156 {
157 if (ilObject::_lookupType($this->getStyleId()) == "sty")
158 {
159 include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
160 $this->style = new ilObjStyleSheet($this->getStyleId());
161 }
162 }
163
164 return $this->style;
165 }

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

146 {
147 return $this->styleid;
148 }

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

627 {
628 $style = $this->getStyle();
629
630 if (is_object($style))
631 {
632 $ts = $style->getTemplates($a_type);
633 $options = array();
634 foreach ($ts as $t)
635 {
636 $options["t:".$t["id"].":".$t["name"]] = $t["name"];
637 }
638 return $options;
639 }
640 return array();
641 }
if(!is_array($argv)) $options

References $options, $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 42 of file class.ilPageContentGUI.php.

43 {
44 global $ilias, $tpl, $lng, $ilCtrl;
45 $this->ilias = $ilias;
46 $this->tpl = $tpl;
47 $this->lng = $lng;
48 $this->pg_obj = $a_pg_obj;
49 $this->ctrl = $ilCtrl;
50 $this->content_obj = $a_content_obj;
51
52 if($a_hier_id !== 0)
53 {
54 $this->hier_id = $a_hier_id;
55 $this->pc_id = $a_pc_id;
56//echo "-".$this->pc_id."-";
57 $this->dom = $a_pg_obj->getDom();
58 }
59 }
redirection script todo: (a better solution should control the processing via a xml file)

References $ilCtrl, $ilias, $lng, and $tpl.

◆ moveAfter()

ilPageContentGUI::moveAfter ( )

move content element after another element

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

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

References $_POST, $_SESSION, and $updated.

◆ moveBefore()

ilPageContentGUI::moveBefore ( )

move content element before another element

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

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

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

67 {
68 $this->content_obj = $a_val;
69 }

◆ setHierId()

ilPageContentGUI::setHierId (   $a_hier_id)

get hierarchical id in dom object

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

236 {
237 $this->hier_id = $a_hier_id;
238 }

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

87 {
88 $this->pg_obj = $a_val;
89 }

◆ setPageConfig()

ilPageContentGUI::setPageConfig (   $a_val)

Set Page Config.

Parameters
objectPage Config

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

107 {
108 $this->page_config = $a_val;
109 }

◆ setStyleId()

ilPageContentGUI::setStyleId (   $a_styleid)

Set Style Id.

Parameters
int$a_styleidStyle Id

Reimplemented in ilPCPlaceHolderGUI.

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

136 {
137 $this->styleid = $a_styleid;
138 }

◆ splitPage()

ilPageContentGUI::splitPage ( )

split page to new page at specified position

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

458 {
459 global $ilErr;
460
461 if ($this->pg_obj->getParentType() != "lm" &&
462 $this->pg_obj->getParentType() != "dbk")
463 {
464 $ilErr->raiseError("Split method called for wrong parent type (".
465 $this->pg_obj->getParentType().")", $ilErr->FATAL);
466 }
467 else
468 {
469 $lm_page =& ilLMPageObject::_splitPage($this->pg_obj->getId(),
470 $this->pg_obj->getParentType(), $this->hier_id);
471
472 // jump to new page
473 $this->ctrl->setParameterByClass("illmpageobjectgui", "obj_id", $lm_page->getId());
474 $this->ctrl->redirectByClass("illmpageobjectgui", "edit");
475 }
476
477 $this->ctrl->returnToParent($this, "jump".($this->hier_id - 1));
478 }
_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 483 of file class.ilPageContentGUI.php.

484 {
485 global $ilErr;
486
487 if ($this->pg_obj->getParentType() != "lm" &&
488 $this->pg_obj->getParentType() != "dbk")
489 {
490 $ilErr->raiseError("Split method called for wrong parent type (".
491 $this->pg_obj->getParentType().")", $ilErr->FATAL);
492 }
493 else
494 {
495 $succ_id = ilLMPageObject::_splitPageNext($this->pg_obj->getId(),
496 $this->pg_obj->getParentType(), $this->hier_id);
497
498 // jump to successor page
499 if ($succ_id > 0)
500 {
501 $this->ctrl->setParameterByClass("illmpageobjectgui", "obj_id", $succ_id);
502 $this->ctrl->redirectByClass("illmpageobjectgui", "edit");
503 }
504
505 }
506 $this->ctrl->returnToParent($this, "jump".($this->hier_id - 1));
507 }
_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", "com" => "Comment",
"quot" => "Quotation", "acc" => "Accent", "code" => "Code", "tex" => "Tex",
"fn" => "Footnote", "xln" => "ExternalLink"
)

Definition at line 32 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(), 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().

◆ $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 29 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: