31         string $cmd_gui_class,
    32         bool $offline = 
false,
    33         string $profile_back_url = 
"",
    40         $this->cmd_gui = $cmd_gui_class;
    42         $this->
ctrl = (is_null($ctrl))
    54         $this->profile_back_url = 
$url;
    68         if (0 === count($layoutLinkTargets)) {
    72         $link_info = 
"<LinkTargets>";
    73         foreach ($layoutLinkTargets as $k => $t) {
    74             $link_info .= 
"<LinkTarget TargetFrame=\"" . $t[
"Type"] . 
"\" LinkTarget=\"" . $t[
"Frame"] . 
"\" OnClick=\"" . $t[
"OnClick"] . 
"\" />";
    76         $link_info .= 
"</LinkTargets>";
    83         $link_info = 
"<IntLinkInfos>";
    84         foreach ($int_links as $int_link) {
    85             $target = $int_link[
"Target"];
    86             if (substr($target, 0, 4) == 
"il__") {
    87                 $target_arr = explode(
"_", $target);
    88                 $target_id = $target_arr[count($target_arr) - 1];
    89                 $type = $int_link[
"Type"];
    91                 $targetframe = ($int_link[
"TargetFrame"] != 
"")
    92                     ? $int_link[
"TargetFrame"]
    96                 if ($targetframe != 
"None") {
   101                 $anc = $anc_add = 
"";
   102                 if (($int_link[
"Anchor"] ?? 
"") != 
"") {
   103                     $anc = $int_link[
"Anchor"];
   104                     $anc_add = 
"_" . rawurlencode($int_link[
"Anchor"]);
   111                     case "StructureObject":
   113                         if ($type == 
"PageObject") {
   114                             $href = 
"./goto.php?target=pg_" . $target_id . $anc_add;
   116                             $href = 
"./goto.php?target=st_" . $target_id;
   124                         if ($targetframe == 
"Glossary") {
   127                         $href = 
"./goto.php?target=git_" . $target_id;
   131                         if ($this->offline) {
   132                             $href = 
"media_" . $target_id . 
".html";
   134                             $this->
ctrl->setParameterByClass($this->cmd_gui, 
"mob_id", $target_id);
   135                             $href = $this->
ctrl->getLinkTargetByClass(
   142                             $this->
ctrl->setParameterByClass($this->cmd_gui, 
"mob_id", 
"");
   148                         if (($int_link[
"Anchor"] ?? 
"") != 
"") {
   149                             $wiki_anc = 
"#" . rawurlencode(
"copganc_" . $int_link[
"Anchor"]);
   154                     case "PortfolioPage":
   158                     case "RepositoryItem":
   161                         $href = 
"./goto.php?target=" . $obj_type . 
"_" . $target_id;
   165                         if (!$this->offline) {
   173                         if ($obj_type == 
"usr") {
   176                             $this->
ctrl->setParameterByClass(
"ilpublicuserprofilegui", 
"user_id", $target_id);
   178                                 $this->
ctrl->setParameterByClass(
   179                                     "ilpublicuserprofilegui",
   186                                 $href = $this->
ctrl->getLinkTargetByClass(
   187                                     [
"ilpublicuserprofilegui"],
   194                             $this->
ctrl->setParameterByClass(
"ilpublicuserprofilegui", 
"user_id", 
"");
   196                             $lcontent = str_replace(
"&", 
"&", htmlentities($lcontent));
   200                 if ($href != 
"" || $type === 
"User") {
   201                     $anc_par = 
'Anchor="' . $anc . 
'"';
   202                     $link_info .= 
"<IntLinkInfo Target=\"$target\" Type=\"$type\" " . $anc_par . 
" " .
   203                         "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" LinkContent=\"$lcontent\" />";
   207         $link_info .= 
"</IntLinkInfos>";
   214         if ($this->offline) {
   215             return "fullscreen.html";
   218         return $this->
ctrl->getLinkTargetByClass($this->cmd_gui, 
"fullscreen", 
"", 
false, 
false);
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setOffline(bool $offline=true)
 
static _lookupObjId(int $ref_id)
 
getLinkXML(array $int_links)
 
setProfileBackUrl(string $url)
 
__construct(string $cmd_gui_class, bool $offline=false, string $profile_back_url="", ilCtrl $ctrl=null)
 
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path='ilpublicuserprofilegui')
Default behaviour is: 
 
static getGotoForPortfolioPageTarget(int $a_target, bool $a_offline=false)
Get goto href for portfolio page id. 
 
static getGotoForWikiPageTarget(string $a_target, bool $a_offline=false)
 
static hasPublicProfile(int $a_user_id)
 
static _lookupContObjID(int $a_id)
get learning module id for lm object 
 
static _lookupType(int $id, bool $reference=false)