ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
class for ILIAS ViewLTI More...
Public Member Functions | |
__construct (\ilObjUser $user) | |
Constructor. More... | |
executeCommand () | |
for ctrl commands More... | |
activate () | |
activate LTI GUI More... | |
deactivate () | |
deactivate LTI GUI More... | |
isActive () | |
LTI is active. More... | |
initGUI () | |
Set the environment backend for GUI (tree and locator behaviour, home link, ....) it is also possible to hide locator and treeicon, but if activated elsewhere a clean root folder is defined ToDo: conceptual discussion. More... | |
render ($tpl, $part) | |
addCss () | |
add css files to the header More... | |
appendInlineCss () | |
append css styles just before </body> More... | |
getHomeTitle () | |
exitLti () | |
exit LTI session and if defined redirecting to returnUrl ToDo: Standard Template with delos ... More... | |
logout () | |
logout ILIAS and destroys Session and ilClientId cookie More... | |
getSessionValue ($sess_key) | |
get session value != '' More... | |
Static Public Member Functions | |
static | getInstance () |
for compatiblity with ilLTIRouterGUI More... | |
Data Fields | |
const | LTI_DEBUG = false |
const | MSG_ERROR = "failure" |
messsage codes More... | |
const | MSG_INFO = "info" |
const | MSG_QUESTION = "question" |
const | MSG_SUCCESS = "success" |
$show_locator = true | |
public variables More... | |
$member_view = false | |
$member_view_url = "" | |
$member_view_close_txt = "" | |
Protected Member Functions | |
getHomeLink () | |
helper function for home link creation More... | |
getCmdLink ($cmd) | |
helper function for cmd link creation More... | |
Private Member Functions | |
init () | |
Init LTI mode for lit authenticated users. More... | |
isLTIUser () | |
get LTI Mode from Users->getAuthMode More... | |
getNavEntries () | |
findEffectiveRefId () | |
Find effective ref_id for request. More... | |
showLocator ($obj_type) | |
log ($txt) | |
Private Attributes | |
$user = null | |
private variables More... | |
$home_id = "" | |
$home_obj_id = "" | |
$home_type = "" | |
$home_title = "" | |
$home_url = "" | |
$link_dir = "" | |
$current_ref_id = "" | |
$current_type = "" | |
ilLTIViewGUI::__construct | ( | \ilObjUser | $user | ) |
Constructor.
Definition at line 70 of file class.ilLTIViewGUI.php.
References $user, deactivate(), ilContext\hasUser(), init(), isActive(), and user().
ilLTIViewGUI::activate | ( | ) |
activate LTI GUI
Definition at line 139 of file class.ilLTIViewGUI.php.
References $_SESSION, findEffectiveRefId(), initGUI(), and log().
Referenced by init().
ilLTIViewGUI::addCss | ( | ) |
add css files to the header
Definition at line 304 of file class.ilLTIViewGUI.php.
References array.
ilLTIViewGUI::appendInlineCss | ( | ) |
append css styles just before </body>
Definition at line 314 of file class.ilLTIViewGUI.php.
References $_SESSION, and array.
ilLTIViewGUI::deactivate | ( | ) |
deactivate LTI GUI
Definition at line 151 of file class.ilLTIViewGUI.php.
References $_SESSION, and log().
Referenced by __construct(), init(), and logout().
ilLTIViewGUI::executeCommand | ( | ) |
for ctrl commands
Definition at line 124 of file class.ilLTIViewGUI.php.
References $ilCtrl, and exitLti().
ilLTIViewGUI::exitLti | ( | ) |
exit LTI session and if defined redirecting to returnUrl ToDo: Standard Template with delos ...
Definition at line 342 of file class.ilLTIViewGUI.php.
References $_SESSION, $html, $lng, exit, getSessionValue(), header, log(), and logout().
Referenced by executeCommand().
|
private |
Find effective ref_id for request.
Definition at line 380 of file class.ilLTIViewGUI.php.
References $_GET, $target_arr, ilObject\_lookupObjectId(), ilObject\_lookupTitle(), and ilObject\_lookupType().
Referenced by activate().
|
protected |
helper function for cmd link creation
Definition at line 407 of file class.ilLTIViewGUI.php.
References $ilCtrl, and array.
Referenced by render().
|
protected |
helper function for home link creation
Definition at line 328 of file class.ilLTIViewGUI.php.
References $home_id.
Referenced by getNavEntries(), and initGUI().
ilLTIViewGUI::getHomeTitle | ( | ) |
Definition at line 333 of file class.ilLTIViewGUI.php.
References ilObject\_lookupTitle().
Referenced by getNavEntries(), and initGUI().
|
static |
for compatiblity with ilLTIRouterGUI
Definition at line 103 of file class.ilLTIViewGUI.php.
References $DIC.
|
private |
Definition at line 245 of file class.ilLTIViewGUI.php.
References $_GET, $ilCtrl, $ilSetting, $lng, ilObject\_getIcon(), ilObject\_lookupObjId(), getHomeLink(), getHomeTitle(), ilUtil\img(), and ilUtil\shortenText().
Referenced by render().
ilLTIViewGUI::getSessionValue | ( | $sess_key | ) |
get session value != ''
$sess_key | string |
Definition at line 420 of file class.ilLTIViewGUI.php.
References $_SESSION.
Referenced by exitLti().
|
private |
Init LTI mode for lit authenticated users.
Definition at line 85 of file class.ilLTIViewGUI.php.
References activate(), deactivate(), defined, isActive(), and isLTIUser().
Referenced by __construct().
ilLTIViewGUI::initGUI | ( | ) |
Set the environment backend for GUI (tree and locator behaviour, home link, ....) it is also possible to hide locator and treeicon, but if activated elsewhere a clean root folder is defined ToDo: conceptual discussion.
Definition at line 171 of file class.ilLTIViewGUI.php.
References $_GET, $_SESSION, $lng, ilObject\_lookupObjectId(), ilObject\_lookupType(), getHomeLink(), getHomeTitle(), log(), and showLocator().
Referenced by activate().
ilLTIViewGUI::isActive | ( | ) |
LTI is active.
Definition at line 161 of file class.ilLTIViewGUI.php.
References $_SESSION.
Referenced by __construct(), and init().
|
private |
get LTI Mode from Users->getAuthMode
Definition at line 113 of file class.ilLTIViewGUI.php.
References user().
Referenced by init().
|
private |
Definition at line 429 of file class.ilLTIViewGUI.php.
Referenced by activate(), deactivate(), exitLti(), and initGUI().
ilLTIViewGUI::logout | ( | ) |
logout ILIAS and destroys Session and ilClientId cookie
Definition at line 365 of file class.ilLTIViewGUI.php.
References $_COOKIE, $client_id, $GLOBALS, deactivate(), ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), and ilUtil\setCookie().
Referenced by exitLti().
ilLTIViewGUI::render | ( | $tpl, | |
$part | |||
) |
Definition at line 204 of file class.ilLTIViewGUI.php.
References $DIC, $lng, $tpl, getCmdLink(), and getNavEntries().
|
private |
Definition at line 398 of file class.ilLTIViewGUI.php.
Referenced by initGUI().
|
private |
Definition at line 55 of file class.ilLTIViewGUI.php.
|
private |
Definition at line 56 of file class.ilLTIViewGUI.php.
|
private |
Definition at line 49 of file class.ilLTIViewGUI.php.
Referenced by getHomeLink().
|
private |
Definition at line 50 of file class.ilLTIViewGUI.php.
|
private |
Definition at line 52 of file class.ilLTIViewGUI.php.
|
private |
Definition at line 51 of file class.ilLTIViewGUI.php.
|
private |
Definition at line 53 of file class.ilLTIViewGUI.php.
|
private |
Definition at line 54 of file class.ilLTIViewGUI.php.
ilLTIViewGUI::$member_view = false |
Definition at line 62 of file class.ilLTIViewGUI.php.
ilLTIViewGUI::$member_view_close_txt = "" |
Definition at line 64 of file class.ilLTIViewGUI.php.
ilLTIViewGUI::$member_view_url = "" |
Definition at line 63 of file class.ilLTIViewGUI.php.
ilLTIViewGUI::$show_locator = true |
public variables
Definition at line 61 of file class.ilLTIViewGUI.php.
|
private |
private variables
Definition at line 48 of file class.ilLTIViewGUI.php.
Referenced by __construct().
const ilLTIViewGUI::LTI_DEBUG = false |
Definition at line 35 of file class.ilLTIViewGUI.php.
const ilLTIViewGUI::MSG_ERROR = "failure" |
messsage codes
Definition at line 40 of file class.ilLTIViewGUI.php.
const ilLTIViewGUI::MSG_INFO = "info" |
Definition at line 41 of file class.ilLTIViewGUI.php.
const ilLTIViewGUI::MSG_QUESTION = "question" |
Definition at line 42 of file class.ilLTIViewGUI.php.
const ilLTIViewGUI::MSG_SUCCESS = "success" |
Definition at line 43 of file class.ilLTIViewGUI.php.