41 $this->cmd_gui = $cmd_gui_class;
43 $this->ctrl = (is_null(
$ctrl))
58 $this->profile_back_url =
$url;
79 if (0 === count($layoutLinkTargets)) {
83 $link_info =
"<LinkTargets>";
84 foreach ($layoutLinkTargets as $k => $t) {
85 $link_info .=
"<LinkTarget TargetFrame=\"" . $t[
"Type"] .
"\" LinkTarget=\"" . $t[
"Frame"] .
"\" OnClick=\"" . $t[
"OnClick"] .
"\" />";
87 $link_info .=
"</LinkTargets>";
96 $link_info =
"<IntLinkInfos>";
97 foreach ($int_links as $int_link) {
98 $target = $int_link[
"Target"];
99 if (substr($target, 0, 4) ==
"il__") {
102 $type = $int_link[
"Type"];
104 $targetframe = ($int_link[
"TargetFrame"] !=
"")
105 ? $int_link[
"TargetFrame"]
109 if ($targetframe !=
"None") {
114 $anc = $anc_add =
"";
115 if ($int_link[
"Anchor"] !=
"") {
116 $anc = $int_link[
"Anchor"];
117 $anc_add =
"_" . rawurlencode($int_link[
"Anchor"]);
124 case "StructureObject":
126 if (
$type ==
"PageObject") {
127 $href =
"./goto.php?target=pg_" .
$target_id . $anc_add;
137 if ($targetframe ==
"Glossary") {
140 $href =
"./goto.php?target=git_" .
$target_id;
144 if ($this->offline) {
147 $this->ctrl->setParameterByClass($this->cmd_gui,
"mob_id",
$target_id);
148 $href = $this->ctrl->getLinkTargetByClass(
155 $this->ctrl->setParameterByClass($this->cmd_gui,
"mob_id",
"");
161 if ($int_link[
"Anchor"] !=
"") {
162 $wiki_anc =
"#".rawurlencode($int_link[
"Anchor"]);
167 case "PortfolioPage":
171 case "RepositoryItem":
174 $href =
"./goto.php?target=" . $obj_type .
"_" .
$target_id;
179 if ($obj_type ==
"usr") {
180 include_once(
"./Services/User/classes/class.ilUserUtil.php");
183 $this->ctrl->setParameterByClass(
"ilpublicuserprofilegui",
"user_id",
$target_id);
185 $this->ctrl->setParameterByClass(
186 "ilpublicuserprofilegui",
192 include_once(
"./Services/User/classes/class.ilUserUtil.php");
194 $href = $this->ctrl->getLinkTargetByClass(
195 [
"ildashboardgui",
"ilpublicuserprofilegui"],
202 $this->ctrl->setParameterByClass(
"ilpublicuserprofilegui",
"user_id",
"");
204 $lcontent = str_replace(
"&",
"&", htmlentities($lcontent));
210 $anc_par =
'Anchor="' . $anc .
'"';
211 $link_info .=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" " . $anc_par .
" " .
212 "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" LinkContent=\"$lcontent\" />";
216 $link_info .=
"</IntLinkInfos>";
226 if ($this->offline) {
227 return "fullscreen.html";
230 return $this->ctrl->getLinkTargetByClass($this->cmd_gui,
"fullscreen",
"",
false,
false);
This class provides processing control methods.
getLinkTargetsXML()
Get XMl for Link Targets.
static getGotoForPortfolioPageTarget($a_target, $a_offline=false)
Get goto href for internal wiki page link target.
static _lookupContObjID($a_id)
get learning module / digibook id for lm object
static hasPublicProfile($a_user_id)
Has public profile.
static _lookupObjId($a_id)
static getNamePresentation( $a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
static _lookupType($a_id, $a_reference=false)
lookup object type
__construct(string $cmd_gui_class, $offline=false, $profile_back_url="", ilCtrl $ctrl=null)
Constructor.
setOffline($offline=true)
static getGotoForWikiPageTarget($a_target, $a_offline=false)
Get goto href for internal wiki page link target.