ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilSCORM2004PageGUI Class Reference

Class ilSCORM2004Page GUI class. More...

+ Inheritance diagram for ilSCORM2004PageGUI:
+ Collaboration diagram for ilSCORM2004PageGUI:

Public Member Functions

 __construct ( $a_parent_type, $a_id=0, $a_old_nr=0, $a_slm_id=0, $a_glo_id=0)
 Constructor. More...
 
 setGlossaryOverviewInfo ($a_ov_id, $a_sco)
 Set glossary overview id. More...
 
 getGlossaryOverviewId ()
 Get glossary overview id. More...
 
 executeCommand ()
 execute command More...
 
 setSCORM2004Page ($a_scpage)
 Set SCORM2004 Page Object. More...
 
 getSCORM2004Page ()
 Get SCORM2004 Page Object. More...
 
 getQuestionHtmlOfPage ()
 Get question html for page. More...
 
 initSelfAssessmentRendering ()
 Init question handling. More...
 
 selfAssessmentRendering ($a_output)
 Self assessment question rendering. More...
 
 showPage ($a_mode="preview")
 Show the page. More...
 
 setDefaultLinkXml ()
 Set standard link xml (currently only glossaries) More...
 
 postOutputProcessing ($a_output)
 Post output processing: More...
 
- Public Member Functions inherited from ilPageObjectGUI
 __construct ( $a_parent_type, $a_id, $a_old_nr=0, $a_prevent_get_id=false, $a_lang="")
 Constructor. More...
 
 afterConstructor ()
 After constructor. More...
 
 setParentType ($a_val)
 Set parent type. More...
 
 getParentType ()
 Get parent type. More...
 
 setId ($a_val)
 Set ID. More...
 
 getId ()
 Get ID. More...
 
 setOldNr ($a_val)
 Set old nr (historic page) More...
 
 getOldNr ()
 Get old nr (historic page) More...
 
 setLanguage ($a_val)
 Set language. More...
 
 getLanguage ()
 Get language. More...
 
 setEnablePCType ($a_pc_type, $a_val)
 Set enable pc type. More...
 
 getEnablePCType ($a_pc_type)
 Get enable pc type. More...
 
 setPageConfig ($a_val)
 Set page config object. More...
 
 getPageConfig ()
 Get page config object. More...
 
 setPageObject (ilPageObject $a_pg_obj)
 Set Page Object. More...
 
 getPageObject ()
 Get Page Object. More...
 
 setOutputMode ($a_mode=IL_PAGE_PRESENTATION)
 Set Output Mode. More...
 
 getOutputMode ()
 
 setTemplateOutput ($a_output=true)
 
 outputToTemplate ()
 
 setPresentationTitle ($a_title="")
 
 getPresentationTitle ()
 
 setHeader ($a_title="")
 
 getHeader ()
 
 setLinkParams ($l_params="")
 
 getLinkParams ()
 
 setLinkFrame ($l_frame="")
 
 getLinkFrame ()
 
 setLinkXML ($link_xml)
 
 getLinkXML ()
 
 setQuestionXML ($question_xml)
 
 setQuestionHTML ($question_html)
 
 getQuestionXML ()
 
 getQuestionHTML ()
 
 setTemplateTargetVar ($a_variable)
 
 getTemplateTargetVar ()
 
 setTemplateOutputVar ($a_value)
 
 getTemplateOutputVar ()
 
 setSourcecodeDownloadScript ($script_name)
 Set sourcecode download script. More...
 
 getSourcecodeDownloadScript ()
 Get sourcecode download script. More...
 
 setLocator (&$a_locator)
 
 setTabs ($a_tabs)
 
 setPageBackTitle ($a_title)
 
 setFileDownloadLink ($a_download_link)
 Set file download link. More...
 
 getFileDownloadLink ()
 Get file download link. More...
 
 setFullscreenLink ($a_fullscreen_link)
 Set fullscreen link. More...
 
 getFullscreenLink ()
 Get fullscreen link. More...
 
 setIntLinkReturn ($a_return)
 
 enableChangeComments ($a_enabled)
 
 isEnabledChangeComments ()
 
 enableNotes ($a_enabled, $a_parent_id)
 
 isEnabledNotes ()
 
 setOfflineDirectory ($offdir)
 set offline directory to offdir More...
 
 getOfflineDirectory ()
 get offline directory More...
 
 setViewPageLink ($a_link, $a_target="")
 set link for "view page" button More...
 
 getViewPageLink ()
 get view page link More...
 
 getViewPageTarget ()
 get view page target frame More...
 
 getViewPageText ()
 get view page text More...
 
 setActivationListener (&$a_obj, $a_meth)
 
 setEnabledNews ($a_enabled, $a_news_obj_id=0, $a_news_obj_type=0)
 Set enabled news. More...
 
 getEnabledNews ()
 Get enabled news. More...
 
 setTabHook ($a_object, $a_function)
 Set tab hook. More...
 
 setEditPreview ($a_editpreview)
 Set Display first Edit tab, then Preview tab, instead of Page and Edit. More...
 
 getEditPreview ()
 Get Display first Edit tab, then Preview tab, instead of Page and Edit. More...
 
 setEnabledTabs ($a_enabledtabs)
 Set Output tabs. More...
 
 getEnabledTabs ()
 Get Output tabs. More...
 
 setEnabledPageFocus ($a_enabledpagefocus)
 Set Enable page focus. More...
 
 getEnabledPageFocus ()
 Get Enable page focus. More...
 
 setExplorerUpdater ($a_exp_frame, $a_exp_id, $a_exp_target_script)
 Set Explorer Updater. More...
 
 setPrependingHtml ($a_prependinghtml)
 Set Prepending HTML. More...
 
 getPrependingHtml ()
 Get Prepending HTML. More...
 
 setEnableEditing ($a_enableediting)
 Set Enable Editing. More...
 
 getEnableEditing ()
 Get Enable Editing. More...
 
 setRawPageContent ($a_rawpagecontent)
 Set Get raw page content only. More...
 
 getRawPageContent ()
 Get Get raw page content only. More...
 
 setStyleId ($a_styleid)
 Set Style Id. More...
 
 getStyleId ()
 Get Style Id. More...
 
 setCompareMode ($a_val)
 Set compare mode. More...
 
 getCompareMode ()
 Get compare mode. More...
 
 setAbstractOnly ($a_val)
 Set abstract only. More...
 
 getAbstractOnly ()
 Get abstract only. More...
 
 setRenderPageContainer ($a_val)
 Set render page container. More...
 
 getRenderPageContainer ()
 Get render page container. More...
 
 getDisabledText ()
 Get disabled text. More...
 
 activateMetaDataEditor ( $a_rep_obj, $a_type, $a_sub_obj_id, $a_observer_obj=null, $a_observer_func="")
 Activate meda data editor. More...
 
 determineFileDownloadLink ()
 Determine file download link. More...
 
 determineFullscreenLink ()
 Determine fullscreen link. More...
 
 determineSourcecodeDownloadScript ()
 Determine source code download script. More...
 
 getComponentPluginsXML ()
 Put information about activated plugins into XML. More...
 
 executeCommand ()
 execute command More...
 
 setQEditTabs ($a_active)
 Set question editing tabs. More...
 
 onFeedbackEditingForwarding ()
 On feedback editing forwarding. More...
 
 deactivatePage ()
 
 activatePage ()
 
 showPage ()
 display content of page More...
 
 replaceCurlyBrackets ($output)
 Replace curly brackets. More...
 
 addActionsMenu ($a_tpl, $sel_media_mode, $sel_html_mode, $sel_js_mode)
 Add actions menu. More...
 
 addMultiLangActionsAndInfo ($a_list, $a_tpl)
 Add multi-language actions to menu. More...
 
 setEditMode ()
 Set edit mode. More...
 
 setDefaultLinkXml ()
 Set standard link xml. More...
 
 getProfileBackUrl ()
 Get profile back url. More...
 
 downloadFile ()
 Download file of file lists. More...
 
 displayMediaFullscreen ()
 Show media in fullscreen mode. More...
 
 displayMedia ($a_fullscreen=false)
 Display media. More...
 
 download_paragraph ()
 download source code paragraph More...
 
 insertPageToc ($a_output)
 Insert page toc. More...
 
 insertResources ($a_output)
 Insert resources. More...
 
 insertAdvTrigger ($a_output)
 Insert adv content trigger. More...
 
 postOutputProcessing ($a_output)
 Finalizing output processing. More...
 
 insertHelp ($a_tpl)
 Insert help texts. More...
 
 previewHistory ()
 Preview history. More...
 
 preview ()
 preview More...
 
 edit ()
 edit ("view" before) More...
 
 insertJSAtPlaceholder ()
 InsertJS at placeholder. More...
 
 initCaptchaForm ()
 Init captcha form. More...
 
 presentation ($a_mode=IL_PAGE_PRESENTATION)
 
 getHTML ()
 
 showMediaFullscreen ($a_style_id=0)
 show fullscreen view of media object More...
 
 displayValidationError ($a_error)
 display validation error More...
 
 history ()
 Get history table as HTML. More...
 
 rollbackConfirmation ()
 Rollback confirmation. More...
 
 rollback ()
 Rollback to a previous version. More...
 
 setScreenIdComponent ()
 Set screen id component. More...
 
 getTabs ($a_activate="")
 adds tabs to tab gui object More...
 
 compareVersion ()
 Compares two revisions of the page. More...
 
 replaceDiffTags ($a_html)
 
 editActivation ()
 Edit activation (only, if scheduled page activation is activated in administration) More...
 
 initActivationForm ()
 Init activation form. More...
 
 getActivationFormValues ()
 Get values for activation form. More...
 
 saveActivation ()
 Save Activation. More...
 
 getNotesHTML ($a_content_object=null, $a_enable_private_notes=true, $a_enable_public_notes=false, $a_enable_notes_deletion=false, $a_callback=null)
 Get html for public and/or private notes. More...
 
 processAnswer ()
 Process answer. More...
 
 initialOpenedContent ()
 Initially opened content. More...
 
 initOpenedContentForm ()
 Init form for initially opened content. More...
 
 saveInitialOpenedContent ()
 Save initial opened content. More...
 
 switchToLanguage ()
 Switch to language. More...
 
 confirmPageTranslationCreation ()
 Confirm page translation creation. More...
 
 editMasterLanguage ()
 Edit master language. More...
 
 createPageTranslation ()
 Create page translation. More...
 
 releasePageLock ()
 Release page lock. More...
 
 getPagePermaLink ()
 Get page perma link. More...
 

Static Public Member Functions

static initExport ()
 Init export. More...
 
static getGlossaryHTML ($a_sco)
 Get glossary html (only in export mode) More...
 
- Static Public Member Functions inherited from ilPageObjectGUI
static getTinyMenu ( $a_par_type, $a_int_links=false, $a_wiki_links=false, $a_keywords=false, $a_style_id=0, $a_paragraph_styles=true, $a_save_return=true, $a_anchors=false, $a_save_new=true, $a_user_links=false)
 Get Tiny Menu. More...
 

Static Public Attributes

static $export_glo_tpl
 

Protected Attributes

 $glossary_links = array()
 
 $scorm_mode = "preview"
 
- Protected Attributes inherited from ilPageObjectGUI
 $tpl
 
 $lng
 
 $ctrl
 
 $tabs_gui
 
 $access
 
 $plugin_admin
 
 $log
 
 $user
 
 $help
 
 $output_mode
 
 $parent_type = ""
 

Additional Inherited Members

- Data Fields inherited from ilPageObjectGUI
 $obj
 
 $presentation_title
 
 $target_script
 
 $return_location
 
 $target_var
 
 $template_output_var
 
 $output2template
 
 $link_params
 
 $sourcecode_download_script
 
 $change_comments
 
 $question_html
 
 $activation = false
 
 $activated = true
 
 $editpreview = false
 
 $use_meta_data = false
 
 $link_xml_set = false
 
 $enableediting = true
 
 $rawpagecontent = false
 
 $enabledcontentincludes = false
 
 $compare_mode = false
 
 $page_config = null
 
 $tabs_enabled = true
 
 $render_page_container = false
 
 $pl_start = "{{{{{"
 
 $pl_end = "}}}}}"
 
- Protected Member Functions inherited from ilPageObjectGUI
 initPageObject ()
 Init page object. More...
 
 getActivationCaptions ()
 Get captions for activation action menu entries. More...
 
 isPageContainerToBeRendered ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilSCORM2004PageGUI::__construct (   $a_parent_type,
  $a_id = 0,
  $a_old_nr = 0,
  $a_slm_id = 0,
  $a_glo_id = 0 
)

Constructor.

Reimplemented from ilPageObjectGUI.

Definition at line 30 of file class.ilSCORM2004PageGUI.php.

36 {
37 global $DIC;
38
39 $this->tpl = $DIC["tpl"];
40 $this->ctrl = $DIC->ctrl();
41 $ilCtrl = $DIC->ctrl();
42
43 $this->glo_id = $a_glo_id;
44 $this->slm_id = $a_slm_id;
45
46 $a_parent_type = "sahs";
47
48 parent::__construct($a_parent_type, $a_id, $a_old_nr);
49 $this->getPageObject()->setGlossaryId($this->glo_id);
50
51 include_once("./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php");
52 $this->enableNotes(true, $this->slm_id);
53 }
getPageObject()
Get Page Object.
enableNotes($a_enabled, $a_parent_id)
global $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7

References $DIC, $ilCtrl, ilPageObjectGUI\enableNotes(), and ilPageObjectGUI\getPageObject().

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilSCORM2004PageGUI::executeCommand ( )

execute command

Reimplemented from ilPageObjectGUI.

Definition at line 79 of file class.ilSCORM2004PageGUI.php.

80 {
82
83 $this->setIntLinkReturn(
84 $ilCtrl->getLinkTargetByClass(
85 "ilobjscorm2004learningmodulegui",
86 "showTree",
87 "",
88 false,
89 false
90 )
91 );
92
93 $next_class = $this->ctrl->getNextClass($this);
94 $cmd = $this->ctrl->getCmd();
95
96 switch ($next_class) {
97 case 'ilmdeditorgui':
98 return parent::executeCommand();
99 break;
100
101 case "ilpageobjectgui":
102die("ilSCORM2004PageGUI forwarding to ilpageobjectgui error.");
103 return;
104
105 default:
106 $html = parent::executeCommand();
107 return $html;
108 }
109 }
$html
Definition: example_001.php:87

References ilPageObjectGUI\$ctrl, $html, $ilCtrl, and ilPageObjectGUI\setIntLinkReturn().

+ Here is the call graph for this function:

◆ getGlossaryHTML()

static ilSCORM2004PageGUI::getGlossaryHTML (   $a_sco)
static

Get glossary html (only in export mode)

Definition at line 410 of file class.ilSCORM2004PageGUI.php.

411 {
412 $ret = self::$export_glo_tpl->get();
413
415
416 return $ret;
417 }
static getGloOverviewOv($a_sco)
des
$ret
Definition: parser.php:6

References $ret, and ilSCORM2004ScoGUI\getGloOverviewOv().

Referenced by ilSCORM2004Asset\exportHTMLPageObjects(), and ilSCORM2004ScoGUI\sco_preview().

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

◆ getGlossaryOverviewId()

ilSCORM2004PageGUI::getGlossaryOverviewId ( )

Get glossary overview id.

Returns
string glossary overview id

Definition at line 71 of file class.ilSCORM2004PageGUI.php.

72 {
73 return $this->glossary_ov_id;
74 }

Referenced by postOutputProcessing().

+ Here is the caller graph for this function:

◆ getQuestionHtmlOfPage()

ilSCORM2004PageGUI::getQuestionHtmlOfPage ( )

Get question html for page.

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

146 {
147 $q_ids = $this->getPageObject()->getQuestionIds();
148
149 $html = array();
150 if (count($q_ids) > 0) {
151 foreach ($q_ids as $q_id) {
152 include_once("./Modules/TestQuestionPool/classes/class.assQuestionGUI.php");
153 $q_gui = assQuestionGUI::_getQuestionGUI("", $q_id);
154 $q_gui->setRenderPurpose(assQuestionGUI::RENDER_PURPOSE_PREVIEW);
155 $q_gui->outAdditionalOutput();
156 $html[$q_id] = $q_gui->getPreview(true);
157 }
158 }
159
160 return $html;
161 }
static _getQuestionGUI($question_type, $question_id=-1)
Creates a question gui representation and returns the alias to the question gui note: please do not u...

References $html, assQuestionGUI\_getQuestionGUI(), ilPageObjectGUI\getPageObject(), and assQuestionGUI\RENDER_PURPOSE_PREVIEW.

+ Here is the call graph for this function:

◆ getSCORM2004Page()

ilSCORM2004PageGUI::getSCORM2004Page ( )

Get SCORM2004 Page Object.

Returns
object Page Object

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

127 {
128 return $this->getPageObject();
129 }

References ilPageObjectGUI\getPageObject().

+ Here is the call graph for this function:

◆ initExport()

static ilSCORM2004PageGUI::initExport ( )
static

Init export.

Definition at line 402 of file class.ilSCORM2004PageGUI.php.

403 {
404 self::$export_glo_tpl = new ilTemplate("tpl.glossary_entries.html", true, true, "Modules/Scorm2004");
405 }
special template class to simplify handling of ITX/PEAR

Referenced by ilSCORM2004Asset\exportHTMLPageObjects(), and ilSCORM2004ScoGUI\sco_preview().

+ Here is the caller graph for this function:

◆ initSelfAssessmentRendering()

ilSCORM2004PageGUI::initSelfAssessmentRendering ( )

Init question handling.

Parameters

return

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

171 {
172 if ($this->scorm_mode == "preview") {
173 // parent::initSelfAssessmentRendering(); // todo: not called anymore
174 }
175 }

◆ postOutputProcessing()

ilSCORM2004PageGUI::postOutputProcessing (   $a_output)

Post output processing:

  • Add glossary divs

Reimplemented from ilPageObjectGUI.

Definition at line 273 of file class.ilSCORM2004PageGUI.php.

274 {
275 //var_dump($this->glossary_links);
276 include_once("./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
277
278 if ($this->scorm_mode != "export") {
279 $tpl = new ilTemplate("tpl.glossary_entries.html", true, true, "Modules/Scorm2004");
280 } else {
282 }
283 $glossary = false;
284
285 $overlays = array();
286
287 // overlay for sco glossary
288 if ($this->getGlossaryOverviewId() != "" && $this->getOutputMode() != "edit") {
289 $ovov = $overlays[$this->getGlossaryOverviewId()] = new ilOverlayGUI($this->getGlossaryOverviewId());
290 // $ovov->setFixedCenter(true);
291 $ovov->setAutoHide(false);
292 $ovov->setCloseElementId("glo_ov_close");
293 if ($this->getGlossaryOverviewId() != "") {
294 if ($this->scorm_mode != "export" ||
295 $this->getOutputMode() == IL_PAGE_PREVIEW) {
296 $overlays[$this->getGlossaryOverviewId()]->add();
297 } else {
298 $tpl->setCurrentBlock("add_script");
299 $tpl->setVariable("ADD_SCRIPT", "il.Util.addOnLoad(function () {" . $overlays[$this->getGlossaryOverviewId()]->getOnLoadCode() . "});");
300 $tpl->parseCurrentBlock();
301 }
302 }
303 }
304
305 if ($this->getOutputMode() != "edit") {
306 if (is_array($this->glossary_links)) {
307 foreach ($this->glossary_links as $k => $e) {
308 // glossary link
309 if ($e["Type"] == "GlossaryItem") {
310 $karr = explode(":", $k);
311 $link_id = $karr[0] . "_" . $this->getPageObject()->getId() . "_" . $karr[4];
312 //$ov_id = "ov".$karr[0]."_".$karr[4];
313 $ov_id = "ov" . $karr[0];
314 $cl_id = "ov" . $karr[0] . "cl";
315 $glov_id = "ov" . $karr[0] . "ov";
316 $term_id_arr = explode("_", $karr[0]);
317 $term_id = $term_id_arr[count($term_id_arr) - 1];
318
319 // get overlay html from glossary term
320 include_once("./Modules/Glossary/classes/class.ilGlossaryTermGUI.php");
321 $id_arr = explode("_", $karr[0]);
322 $term_gui = new ilGlossaryTermGUI($id_arr[count($id_arr) - 1]);
323 $html = $term_gui->getOverlayHTML(
324 $cl_id,
325 ($this->getGlossaryOverviewId() != "")
326 ? $glov_id
327 : "",
329 );
330 $tpl->setCurrentBlock("entry");
331 $tpl->setVariable("CONTENT", $html);
332 $tpl->setVariable("OVERLAY_ID", $ov_id);
333
334 $glossary = true;
335
336 // first time the term is used
337 if (!isset($overlays[$ov_id])) {
338 $overlays[$ov_id] = new ilOverlayGUI($ov_id);
339 $overlays[$ov_id]->setAnchor($link_id);
340 $overlays[$ov_id]->setTrigger($link_id, "click", $link_id);
341 $overlays[$ov_id]->setAutoHide(false);
342 $overlays[$ov_id]->setCloseElementId($cl_id);
343 if ($this->scorm_mode != "export" ||
344 $this->getOutputMode() == IL_PAGE_PREVIEW) {
345 $overlays[$ov_id]->add();
346 } else {
347 $tpl->setVariable("SCRIPT", "il.Util.addOnLoad(function () {" . $overlays[$ov_id]->getOnLoadCode() . "});");
348 }
349 } else {
350 if ($this->scorm_mode != "export" ||
351 $this->getOutputMode() == IL_PAGE_PREVIEW) {
352 $overlays[$ov_id]->addTrigger($link_id, "click", $link_id);
353 } else {
354 $tpl->setVariable(
355 "SCRIPT",
356 "il.Util.addOnLoad(function () {" . $overlays[$ov_id]->getTriggerOnLoadCode($link_id, "click", $link_id) . "});"
357 );
358 }
359 }
360
361 if ($this->getGlossaryOverviewId() != "") {
362 if ($this->scorm_mode != "export" ||
363 $this->getOutputMode() == IL_PAGE_PREVIEW) {
364 //$overlays[$this->getGlossaryOverviewId()]->addTrigger($glov_id, "click", null);
365 $overlays[$this->getGlossaryOverviewId()]->addTrigger($glov_id, "click", $ov_id, false, "tl", "tl");
366 //$overlays[$ov_id]->addTrigger("glo_ov_t".$term_id, "click", null, true);
367 $overlays[$ov_id]->addTrigger("glo_ov_t" . $term_id, "click", $this->getGlossaryOverviewId(), false, "tl", "tl");
368 } else {
369 $tpl->setVariable(
370 "SCRIPT2",
371 "il.Util.addOnLoad(function () {" .
372 $overlays[$this->getGlossaryOverviewId()]->getTriggerOnLoadCode($glov_id, "click", $ov_id, false, "tl", "tl") . "});"
373 );
374 $tpl->setVariable(
375 "SCRIPT3",
376 "il.Util.addOnLoad(function () {" .
377 $overlays[$ov_id]->getTriggerOnLoadCode("glo_ov_t" . $term_id, "click", $this->getGlossaryOverviewId(), false, "tl", "tl") . "});"
378 );
379 }
380 }
381
382 $tpl->parseCurrentBlock();
383 }
384 }
385 }
386
387 if ($glossary && $this->scorm_mode != "export") {
388 $ret = $a_output . $tpl->get();
389 if ($this->getGlossaryOverviewId() != "") {
391 }
392 return $ret;
393 }
394 }
395
396 return $a_output;
397 }
const IL_PAGE_PREVIEW
GUI class for glossary terms.
static getAffectiveLocalization($a_id)
Get affective localization.
This is a utility class for the yui overlays.
getGlossaryOverviewId()
Get glossary overview id.

References $export_glo_tpl, $html, $ret, ilPageObjectGUI\$tpl, ilObjSAHSLearningModule\getAffectiveLocalization(), ilSCORM2004ScoGUI\getGloOverviewOv(), getGlossaryOverviewId(), ILIAS\UI\Implementation\Component\getOnLoadCode(), ilPageObjectGUI\getOutputMode(), ilPageObjectGUI\getPageObject(), and IL_PAGE_PREVIEW.

+ Here is the call graph for this function:

◆ selfAssessmentRendering()

ilSCORM2004PageGUI::selfAssessmentRendering (   $a_output)

Self assessment question rendering.

Parameters

return

Definition at line 183 of file class.ilSCORM2004PageGUI.php.

184 {
185 if ($this->scorm_mode == "preview") {
186 $a_output = parent::selfAssessmentRendering($a_output);
187 }
188
189 return $a_output;
190 }

◆ setDefaultLinkXml()

ilSCORM2004PageGUI::setDefaultLinkXml ( )

Set standard link xml (currently only glossaries)

Reimplemented from ilPageObjectGUI.

Definition at line 212 of file class.ilSCORM2004PageGUI.php.

213 {
214 $int_links = $this->getPageObject()->getInternalLinks(true);
215 $this->glossary_links = $int_links;
216 //var_dump($int_links);
217
218 // key is il__git_18:GlossaryItem:Glossary::4 => id is il__git_18_4,
219
220 $link_info = "<IntLinkInfos>";
221 $targetframe = "None";
222 $ltarget = "";
223 foreach ($int_links as $int_link) {
224 $onclick = "";
225 $target = $int_link["Target"];
226 $targetframe = "None";
227 if (substr($target, 0, 4) == "il__") {
228 $target_arr = explode("_", $target);
229 $target_id = $target_arr[count($target_arr) - 1];
230 $type = $int_link["Type"];
231
232 switch ($type) {
233 case "GlossaryItem":
234 $ltarget = "";
235 //$href = "./goto.php?target=git_".$target_id;
236 $href = "#";
237 $onclick = 'OnClick="return false;"';
238 $anc_par = 'Anchor=""';
239 $targetframe = "Glossary";
240 break;
241
242 case "File":
243 $ltarget = "";
244 if ($this->getOutputMode() == "offline") {
245 if (ilObject::_lookupType($target_id) == "file") {
246 include_once("./Modules/File/classes/class.ilObjFile.php");
247 $href = "./files/file_" . $target_id . "/" . ilObjFile::_lookupFileName($target_id);
248 $ltarget = "_blank";
249 }
250 } else {
251 $href = str_replace("&", "&amp;", $this->determineFileDownloadLink()) . "&amp;file_id=il__file_" . $target_id;
252 //echo htmlentities($href);
253 }
254
255 $anc_par = 'Anchor=""';
256 $targetframe = "None"; //???
257 break;
258
259 }
260 $link_info.="<IntLinkInfo $onclick Target=\"$target\" Type=\"$type\" " . $anc_par . " " .
261 "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" />";
262 }
263 }
264 $link_info.= "</IntLinkInfos>";
265 $this->setLinkXML($link_info);
266 //var_dump($link_info);
267 }
static _lookupFileName($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type
determineFileDownloadLink()
Determine file download link.
$target_id
Definition: goto.php:49
$target_arr
Definition: goto.php:47
$type

References $target, $target_arr, $target_id, $type, ilObjFile\_lookupFileName(), ilObject\_lookupType(), ilPageObjectGUI\determineFileDownloadLink(), ilPageObjectGUI\getOutputMode(), ilPageObjectGUI\getPageObject(), and ilPageObjectGUI\setLinkXML().

+ Here is the call graph for this function:

◆ setGlossaryOverviewInfo()

ilSCORM2004PageGUI::setGlossaryOverviewInfo (   $a_ov_id,
  $a_sco 
)

Set glossary overview id.

Parameters
stringglossary overview id

Definition at line 60 of file class.ilSCORM2004PageGUI.php.

61 {
62 $this->glossary_ov_id = $a_ov_id;
63 $this->sco = $a_sco;
64 }

◆ setSCORM2004Page()

ilSCORM2004PageGUI::setSCORM2004Page (   $a_scpage)

Set SCORM2004 Page Object.

Parameters
object$a_scpagePage Object

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

117 {
118 $this->setPageObject($a_scpage);
119 }
setPageObject(ilPageObject $a_pg_obj)
Set Page Object.

References ilPageObjectGUI\setPageObject().

+ Here is the call graph for this function:

◆ showPage()

ilSCORM2004PageGUI::showPage (   $a_mode = "preview")

Show the page.

Definition at line 195 of file class.ilSCORM2004PageGUI.php.

196 {
199
200 $this->scorm_mode = $a_mode;
201
202 $this->setTemplateOutput(false);
203
204 $output = parent::showPage();
205
206 return $output;
207 }
setTemplateOutput($a_output=true)
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\s+" &#(? foreach( $entity_files as $file) $output

References ilPageObjectGUI\$ctrl, $ilCtrl, $output, ilPageObjectGUI\$tpl, and ilPageObjectGUI\setTemplateOutput().

+ Here is the call graph for this function:

Field Documentation

◆ $export_glo_tpl

ilSCORM2004PageGUI::$export_glo_tpl
static

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

Referenced by postOutputProcessing().

◆ $glossary_links

ilSCORM2004PageGUI::$glossary_links = array()
protected

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

◆ $scorm_mode

ilSCORM2004PageGUI::$scorm_mode = "preview"
protected

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


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