|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Collaboration diagram for ilLMContentRendererGUI: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 | |
| $ot | |
| $concrete_lang | |
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 102 of file class.ilLMContentRendererGUI.php.
References $access, $ctrl, $DIC, $help, $lng, $parent_gui, $service, $user, ilObjectTranslation\getInstance(), help(), and user().
Here is the call graph for this function:
|
protected |
Determine Status (should be factored out later to something like LMPageAccessStatus)
return int
Definition at line 157 of file class.ilLMContentRendererGUI.php.
References $user, ilObjContentObject\_checkPreconditionsOfPage(), ilLMObject\_isPagePublic(), ilLMObject\_lookupType(), ANONYMOUS_USER_ID, ilPageObject\lookupParentId(), STATUS_ACCESS, STATUS_CORRECT_ANSWER_MISSING, STATUS_DEACTIVATED_PAGE, STATUS_FAILED_PRECONDITIONS, STATUS_NO_ACCESS, STATUS_NO_PAGE_FOUND, STATUS_NO_PAGE_IN_CHAPTER, and STATUS_NO_PUBLIC_ACCESS.
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLMContentRendererGUI::getLMPageGUI | ( | $a_id | ) |
Get lm page gui object.
return
Definition at line 370 of file class.ilLMContentRendererGUI.php.
References ilPageObject\_exists(), and ilPageObjectGUI\OFFLINE.
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLMContentRendererGUI::getSuccessorPage | ( | ) |
Get successor page.
return
Definition at line 637 of file class.ilLMContentRendererGUI.php.
References $current_page, $ilUser, $user, ilLMObject\_isPagePublic(), ilPageObject\_lookupActivationData(), ilPageObject\_lookupActive(), ilLMObject\_lookupType(), ANONYMOUS_USER_ID, and ilUtil\now().
Referenced by renderFocusMessage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Init help.
Definition at line 143 of file class.ilLMContentRendererGUI.php.
References $help.
Referenced by render().
Here is the caller graph for this function:
|
protected |
Init search highlighting.
Definition at line 214 of file class.ilLMContentRendererGUI.php.
References $user, ilUserSearchCache\_getInstance(), ilTextHighlighterGUI\highlight(), and ilUserSearchCache\LAST_QUERY.
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLMContentRendererGUI::render | ( | $a_head_foot_page_id = 0 | ) |
Render lm content.
| int | $a_head_foot_page_id |
Definition at line 247 of file class.ilLMContentRendererGUI.php.
References $_GET, $current_page, $ilUser, $ret, $user, ilLMObject\_exists(), ilLMPageObject\_getPresentationTitle(), ilCourseLMHistory\_updateLastAccess(), determineStatus(), getLMPageGUI(), initHelp(), initSearchHighlighting(), render(), renderDeactivatedPageMessage(), renderFocusMessage(), renderNavRestrictionDueToQuestions(), renderNoPageAccess(), renderNoPageFoundMessage(), renderNoPageInChapterMessage(), renderNoPublicAccess(), renderPreconditionsOfPage(), STATUS_CORRECT_ANSWER_MISSING, STATUS_DEACTIVATED_PAGE, STATUS_FAILED_PRECONDITIONS, STATUS_NO_ACCESS, STATUS_NO_PAGE_FOUND, STATUS_NO_PAGE_IN_CHAPTER, and STATUS_NO_PUBLIC_ACCESS.
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Render deactivated page message.
Definition at line 543 of file class.ilLMContentRendererGUI.php.
References ilPageObject\_lookupActivationData(), ilLMObject\_lookupTitle(), ilDatePresentation\formatDate(), IL_CAL_DATETIME, and ilUtil\now().
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Render focus message.
return string
Definition at line 395 of file class.ilLMContentRendererGUI.php.
References ilLink\_getLink(), ilObject\_lookupType(), and getSuccessorPage().
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Show message screen.
| string | content |
Definition at line 480 of file class.ilLMContentRendererGUI.php.
References $tpl.
Referenced by renderNavRestrictionDueToQuestions(), renderNoPageAccess(), renderNoPageFoundMessage(), and renderNoPublicAccess().
Here is the caller graph for this function:
|
protected |
Show message if navigation to page is not allowed due to unanswered questions.
Definition at line 503 of file class.ilLMContentRendererGUI.php.
References renderMessageScreen().
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Show info message, if page is not accessible in public area.
Definition at line 469 of file class.ilLMContentRendererGUI.php.
References renderMessageScreen().
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Render no page found message.
Definition at line 532 of file class.ilLMContentRendererGUI.php.
References renderMessageScreen().
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Render no page in chapter message.
Definition at line 512 of file class.ilLMContentRendererGUI.php.
References ilLMObject\_lookupTitle().
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Show info message, if page is not accessible in public area.
Definition at line 493 of file class.ilLMContentRendererGUI.php.
References renderMessageScreen().
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLMContentRendererGUI::renderPreconditionsOfPage | ( | ) |
show preconditions of the page
Definition at line 575 of file class.ilLMContentRendererGUI.php.
References $_GET, $i, ilLink\_getLink(), ilObjContentObject\_getMissingPreconditionsOfPage(), ilObjContentObject\_getMissingPreconditionsTopChapter(), ilObject\_lookupTitle(), and ilLMObject\_lookupTitle().
Referenced by render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 25 of file class.ilLMContentRendererGUI.php.
Referenced by __construct().
|
protected |
Definition at line 97 of file class.ilLMContentRendererGUI.php.
|
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 getSuccessorPage(), and render().
|
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.
|
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 95 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.
Referenced by determineStatus().
| const ilLMContentRendererGUI::STATUS_CORRECT_ANSWER_MISSING = 4 |
Definition at line 17 of file class.ilLMContentRendererGUI.php.
Referenced by determineStatus(), and render().
| const ilLMContentRendererGUI::STATUS_DEACTIVATED_PAGE = 6 |
Definition at line 19 of file class.ilLMContentRendererGUI.php.
Referenced by determineStatus(), and render().
| const ilLMContentRendererGUI::STATUS_FAILED_PRECONDITIONS = 3 |
Definition at line 16 of file class.ilLMContentRendererGUI.php.
Referenced by determineStatus(), and render().
| const ilLMContentRendererGUI::STATUS_NO_ACCESS = 1 |
Definition at line 14 of file class.ilLMContentRendererGUI.php.
Referenced by determineStatus(), and render().
| const ilLMContentRendererGUI::STATUS_NO_PAGE_FOUND = 7 |
Definition at line 20 of file class.ilLMContentRendererGUI.php.
Referenced by determineStatus(), and render().
| const ilLMContentRendererGUI::STATUS_NO_PAGE_IN_CHAPTER = 5 |
Definition at line 18 of file class.ilLMContentRendererGUI.php.
Referenced by determineStatus(), and render().
| const ilLMContentRendererGUI::STATUS_NO_PUBLIC_ACCESS = 2 |
Definition at line 15 of file class.ilLMContentRendererGUI.php.
Referenced by determineStatus(), and render().