157 $this->link_dir = (
defined(
"ILIAS_MODULE"))
209 return $this->link_dir .
"goto.php?target=" . $this->home_type .
"_" .
$this->home_id;
218 $targetScript = (
$ilCtrl->getTargetScript() !==
'ilias.php') ?
"ilias.php" :
"";
219 return $this->link_dir . $targetScript .
$ilCtrl->getLinkTargetByClass(array(
'illtiroutergui',strtolower(get_class($this))), $cmd) .
"&baseClass=illtiroutergui";
231 $this->dic->logger()->lti()->write(
"redirectLink: " . $link);
246 if ((
int)
$_GET[
'ref_id']) {
248 return $this->current_ref_id = (int)
$_GET[
'ref_id'];
255 return $this->current_ref_id = (int)
$target_arr[1];
261 include_once
'./Services/Http/classes/class.ilHTTPS.php';
264 if (
$https->isDetected()) {
280 return preg_match(
"/(crs|grp|cat|root|folder)/", $obj_type);
285 $this->dic->logger()->lti()->write(
$txt);
An exception for terminatinating execution or to throw for unit testing.
@classDescription Base class for all ILIAS Views
$home_type
home type (obj_type of ref_id) The view maybe support a view home link in the topbar (static or dynam...
$fix_tree_id
Fix tree_id Show always tree from id.
appendInlineCss()
content of css files are appended to the main page html just before </body> end tag
$tree_root_types
tree root types show tree from ref_id with obj_types if requested obj_type of ref_id is in array of $...
$home_items
cache ref_ids of home subtree items if request is in home context $show_home_link = false else $show_...
$allow_desktop
override these switches in the view constructor
addCss()
css files are added to the header
$home_url
home Link (see topbar_back_url concept in MainMenuGUI)
const TOP_SPACER_BAR_ONLY
getCmdLink($cmd)
helper function for cmd link creation
$show_home_link
show home link in topbar (similar to topbar_back_url = '' in MainMenu)
$tree_root_id
dynamic tree_root_folder_id show tree from tree_root_id
findEffectiveRefId()
Find effective ref_id for request.
spacerClass()
spacer_class
$current_type
obj_type of current ref_id
$current_ref_id
ref_id from current request
redirectToHome($_msg_type=self::MSG_INFO, $_msg='')
$home_title
home title (title of ref_id)
getSessionValue($sess_key)
get session value != ''
$root_folder_items
all allowed items
getHomeLink()
helper function for home link creation
$root_folder_id
root folder id Don't allow any access to higher level objects in this view
$home_id
home id (ref_id) The view maybe support a view home link in the topbar (static or dynamically,...
static _lookupTitle($a_id)
lookup object title
static _lookupObjectId($a_ref_id)
lookup object id
static _lookupType($a_id, $a_reference=false)
lookup object type
static redirect($a_script)
static removeTrailingPathSeparators($path)
redirection script todo: (a better solution should control the processing via a xml file)
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']