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 ==
"None") {
138 $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",
"");
163 case "PortfolioPage":
167 case "RepositoryItem":
170 $href =
"./goto.php?target=" . $obj_type .
"_" .
$target_id;
175 if ($obj_type ==
"usr") {
176 include_once(
"./Services/User/classes/class.ilUserUtil.php");
179 $this->ctrl->setParameterByClass(
"ilpublicuserprofilegui",
"user_id",
$target_id);
181 $this->ctrl->setParameterByClass(
182 "ilpublicuserprofilegui",
188 include_once(
"./Services/User/classes/class.ilUserUtil.php");
190 $href = $this->ctrl->getLinkTargetByClass(
191 [
"ildashboardgui",
"ilpublicuserprofilegui"],
198 $this->ctrl->setParameterByClass(
"ilpublicuserprofilegui",
"user_id",
"");
200 $lcontent = str_replace(
"&",
"&", htmlentities($lcontent));
206 $anc_par =
'Anchor="' . $anc .
'"';
207 $link_info .=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" " . $anc_par .
" " .
208 "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" LinkContent=\"$lcontent\" />";
212 $link_info .=
"</IntLinkInfos>";
223 if ($this->offline) {
224 return "fullscreen.html";
227 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.