ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Public Member Functions | |
__construct (ilLMPresentationService $service, ilLMPresentationGUI $parent_gui, ilLanguage $lng, ilCtrl $ctrl, ilAccessHandler $access, ilObjUser $user, ilHelpGUI $help, $requested_obj_id) | |
Constructor. More... | |
render ($a_head_foot_page_id=0) | |
Render lm content. More... | |
getLMPageGUI ($a_id) | |
Get lm page gui object. More... | |
renderPreconditionsOfPage () | |
show preconditions of the page More... | |
getSuccessorPage () | |
Get successor page. More... | |
Data Fields | |
const | STATUS_ACCESS = 0 |
const | STATUS_NO_ACCESS = 1 |
const | STATUS_NO_PUBLIC_ACCESS = 2 |
const | STATUS_FAILED_PRECONDITIONS = 3 |
const | STATUS_CORRECT_ANSWER_MISSING = 4 |
const | STATUS_NO_PAGE_IN_CHAPTER = 5 |
const | STATUS_DEACTIVATED_PAGE = 6 |
const | STATUS_NO_PAGE_FOUND = 7 |
Protected Member Functions | |
initHelp () | |
Init help. More... | |
determineStatus () | |
Determine Status (should be factored out later to something like LMPageAccessStatus) More... | |
initSearchHighlighting () | |
Init search highlighting. More... | |
renderFocusMessage () | |
Render focus message. More... | |
renderNoPageAccess () | |
Show info message, if page is not accessible in public area. More... | |
renderMessageScreen ($a_content) | |
Show message screen. More... | |
renderNoPublicAccess () | |
Show info message, if page is not accessible in public area. More... | |
renderNavRestrictionDueToQuestions () | |
Show message if navigation to page is not allowed due to unanswered questions. More... | |
renderNoPageInChapterMessage () | |
Render no page in chapter message. More... | |
renderNoPageFoundMessage () | |
Render no page found message. More... | |
renderDeactivatedPageMessage () | |
Render deactivated page message. More... | |
Protected Attributes | |
$access | |
$user | |
$help | |
$current_page | |
$lm | |
$lng | |
$offline | |
$tracker | |
$ctrl | |
$lm_tree | |
$parent_gui | |
$lm_set | |
$lang | |
$linker | |
Definition at line 11 of file class.ilLMContentRendererGUI.php.
ilLMContentRendererGUI::__construct | ( | ilLMPresentationService | $service, |
ilLMPresentationGUI | $parent_gui, | ||
ilLanguage | $lng, | ||
ilCtrl | $ctrl, | ||
ilAccessHandler | $access, | ||
ilObjUser | $user, | ||
ilHelpGUI | $help, | ||
$requested_obj_id | |||
) |
Constructor.
Definition at line 95 of file class.ilLMContentRendererGUI.php.
References $access, $ctrl, $DIC, $help, $lng, $parent_gui, $user, ilLMPresentationService\getLearningModule(), ilLMPresentationService\getLinker(), ilLMPresentationService\getLMTree(), ilLMPresentationService\getNavigationStatus(), ilLMPresentationService\getPresentationStatus(), ilLMPresentationService\getSettings(), ilLMPresentationService\getTracker(), help(), and user().
|
protected |
Determine Status (should be factored out later to something like LMPageAccessStatus)
Definition at line 147 of file class.ilLMContentRendererGUI.php.
References $current_page, $user, ilObjContentObject\_checkPreconditionsOfPage(), ilLMObject\_isPagePublic(), ilLMObject\_lookupType(), and ilPageObject\lookupParentId().
Referenced by render().
ilLMContentRendererGUI::getLMPageGUI | ( | $a_id | ) |
Get lm page gui object.
Definition at line 359 of file class.ilLMContentRendererGUI.php.
References ilPageObject\_exists(), and ilPageObjectGUI\OFFLINE.
Referenced by render().
ilLMContentRendererGUI::getSuccessorPage | ( | ) |
Get successor page.
Definition at line 622 of file class.ilLMContentRendererGUI.php.
References $current_page, $ilUser, $user, ilLMObject\_isPagePublic(), ilPageObject\_lookupActivationData(), ilPageObject\_lookupActive(), ilLMObject\_lookupType(), and ilUtil\now().
Referenced by renderFocusMessage().
|
protected |
Init help.
Definition at line 133 of file class.ilLMContentRendererGUI.php.
References $help.
Referenced by render().
|
protected |
Init search highlighting.
Definition at line 204 of file class.ilLMContentRendererGUI.php.
References $user, ilUserSearchCache\_getInstance(), ilTextHighlighterGUI\highlight(), and ilUserSearchCache\LAST_QUERY.
Referenced by render().
ilLMContentRendererGUI::render | ( | $a_head_foot_page_id = 0 | ) |
Render lm content.
int | $a_head_foot_page_id |
Definition at line 237 of file class.ilLMContentRendererGUI.php.
References $_GET, $current_page, $ilUser, $lang, $ret, $user, ilLMObject\_exists(), ilLMPageObject\_getPresentationTitle(), ilCourseLMHistory\_updateLastAccess(), determineStatus(), getLMPageGUI(), initHelp(), initSearchHighlighting(), renderDeactivatedPageMessage(), renderFocusMessage(), renderNavRestrictionDueToQuestions(), renderNoPageAccess(), renderNoPageFoundMessage(), renderNoPageInChapterMessage(), renderNoPublicAccess(), and renderPreconditionsOfPage().
|
protected |
Render deactivated page message.
Definition at line 528 of file class.ilLMContentRendererGUI.php.
References ilPageObject\_lookupActivationData(), ilLMObject\_lookupTitle(), ilDatePresentation\formatDate(), IL_CAL_DATETIME, and ilUtil\now().
Referenced by render().
|
protected |
Render focus message.
Definition at line 380 of file class.ilLMContentRendererGUI.php.
References ilLink\_getLink(), ilObject\_lookupType(), and getSuccessorPage().
Referenced by render().
|
protected |
Show message screen.
string | content |
Definition at line 465 of file class.ilLMContentRendererGUI.php.
References $a_content, and $tpl.
Referenced by renderNavRestrictionDueToQuestions(), renderNoPageAccess(), renderNoPageFoundMessage(), and renderNoPublicAccess().
|
protected |
Show message if navigation to page is not allowed due to unanswered questions.
Definition at line 488 of file class.ilLMContentRendererGUI.php.
References renderMessageScreen().
Referenced by render().
|
protected |
Show info message, if page is not accessible in public area.
Definition at line 454 of file class.ilLMContentRendererGUI.php.
References renderMessageScreen().
Referenced by render().
|
protected |
Render no page found message.
Definition at line 517 of file class.ilLMContentRendererGUI.php.
References renderMessageScreen().
Referenced by render().
|
protected |
Render no page in chapter message.
Definition at line 497 of file class.ilLMContentRendererGUI.php.
References ilLMObject\_lookupTitle().
Referenced by render().
|
protected |
Show info message, if page is not accessible in public area.
Definition at line 478 of file class.ilLMContentRendererGUI.php.
References renderMessageScreen().
Referenced by render().
ilLMContentRendererGUI::renderPreconditionsOfPage | ( | ) |
show preconditions of the page
Definition at line 560 of file class.ilLMContentRendererGUI.php.
References $_GET, $current_page, $i, ilLink\_getLink(), ilObjContentObject\_getMissingPreconditionsOfPage(), ilObjContentObject\_getMissingPreconditionsTopChapter(), ilLMObject\_lookupTitle(), and ilObject\_lookupTitle().
Referenced by render().
|
protected |
Definition at line 25 of file class.ilLMContentRendererGUI.php.
Referenced by __construct().
|
protected |
Definition at line 65 of file class.ilLMContentRendererGUI.php.
Referenced by __construct().
|
protected |
Definition at line 40 of file class.ilLMContentRendererGUI.php.
Referenced by determineStatus(), getSuccessorPage(), render(), and renderPreconditionsOfPage().
|
protected |
Definition at line 35 of file class.ilLMContentRendererGUI.php.
Referenced by __construct(), and initHelp().
|
protected |
Definition at line 85 of file class.ilLMContentRendererGUI.php.
Referenced by render().
|
protected |
Definition at line 90 of file class.ilLMContentRendererGUI.php.
|
protected |
Definition at line 45 of file class.ilLMContentRendererGUI.php.
|
protected |
Definition at line 80 of file class.ilLMContentRendererGUI.php.
|
protected |
Definition at line 70 of file class.ilLMContentRendererGUI.php.
|
protected |
Definition at line 50 of file class.ilLMContentRendererGUI.php.
Referenced by __construct().
|
protected |
Definition at line 55 of file class.ilLMContentRendererGUI.php.
|
protected |
Definition at line 75 of file class.ilLMContentRendererGUI.php.
Referenced by __construct().
|
protected |
Definition at line 60 of file class.ilLMContentRendererGUI.php.
|
protected |
Definition at line 30 of file class.ilLMContentRendererGUI.php.
Referenced by __construct(), determineStatus(), getSuccessorPage(), initSearchHighlighting(), and render().
const ilLMContentRendererGUI::STATUS_ACCESS = 0 |
Definition at line 13 of file class.ilLMContentRendererGUI.php.
const ilLMContentRendererGUI::STATUS_CORRECT_ANSWER_MISSING = 4 |
Definition at line 17 of file class.ilLMContentRendererGUI.php.
const ilLMContentRendererGUI::STATUS_DEACTIVATED_PAGE = 6 |
Definition at line 19 of file class.ilLMContentRendererGUI.php.
const ilLMContentRendererGUI::STATUS_FAILED_PRECONDITIONS = 3 |
Definition at line 16 of file class.ilLMContentRendererGUI.php.
const ilLMContentRendererGUI::STATUS_NO_ACCESS = 1 |
Definition at line 14 of file class.ilLMContentRendererGUI.php.
const ilLMContentRendererGUI::STATUS_NO_PAGE_FOUND = 7 |
Definition at line 20 of file class.ilLMContentRendererGUI.php.
const ilLMContentRendererGUI::STATUS_NO_PAGE_IN_CHAPTER = 5 |
Definition at line 18 of file class.ilLMContentRendererGUI.php.
const ilLMContentRendererGUI::STATUS_NO_PUBLIC_ACCESS = 2 |
Definition at line 15 of file class.ilLMContentRendererGUI.php.