ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPermanentLinkGUI Class Reference

Class ilInfoScreenGUI. More...

+ Collaboration diagram for ilPermanentLinkGUI:

Public Member Functions

 __construct ($a_type, $a_id, $a_append="", $a_target="")
 Example: type = "wiki", id (ref_id) = "234", append = "_Start_Page".
 setIncludePermanentLinkText ($a_includepermanentlinktext)
 Set Include permanent link text.
 getIncludePermanentLinkText ()
 Get Include permanent link text.
 setType ($a_type)
 Set Type.
 getType ()
 Get Type.
 setId ($a_id)
 Set Id.
 getId ()
 Get Id.
 setAppend ($a_append)
 Set Append.
 getAppend ()
 Get Append.
 setTarget ($a_target)
 Set Target.
 getTarget ()
 Get Target.
 getHTML ()
 Get HTML for link.

Detailed Description

Constructor & Destructor Documentation

ilPermanentLinkGUI::__construct (   $a_type,
  $a_id,
  $a_append = "",
  $a_target = "" 
)

Example: type = "wiki", id (ref_id) = "234", append = "_Start_Page".

Definition at line 42 of file class.ilPermanentLinkGUI.php.

References setAppend(), setId(), setIncludePermanentLinkText(), setTarget(), and setType().

{
$this->setType($a_type);
$this->setId($a_id);
$this->setAppend($a_append);
$this->setTarget($a_target);
}

+ Here is the call graph for this function:

Member Function Documentation

ilPermanentLinkGUI::getAppend ( )

Get Append.

Returns
string Append

Definition at line 126 of file class.ilPermanentLinkGUI.php.

Referenced by getHTML().

{
return $this->append;
}

+ Here is the caller graph for this function:

ilPermanentLinkGUI::getHTML ( )

Get HTML for link.

Definition at line 154 of file class.ilPermanentLinkGUI.php.

References $lng, $tpl, ilLink\_getStaticLink(), getAppend(), getId(), ilUtil\getImagePath(), getIncludePermanentLinkText(), getTarget(), and getType().

{
global $lng;
$tpl = new ilTemplate("tpl.permanent_link.html", true, true,
"Services/PermanentLink");
include_once('classes/class.ilLink.php');
$href = ilLink::_getStaticLink($this->getId(), $this->getType(),
true, $this->getAppend());
// delicous link
$d_set = new ilSetting("delicious");
if ($d_set->get("add_info_links") == "1")
{
$tpl->setCurrentBlock("delicious");
$lng->loadLanguageModule("delic");
$tpl->setVariable("DEL_LINK", urlencode($href));
$tpl->setVariable("IMG_DEL", ilUtil::getImagePath("icon_delicious_s.gif"));
$tpl->setVariable("TXT_DEL", $lng->txt("delic_add_to_delicious"));
$tpl->parseCurrentBlock();
}
{
$tpl->setVariable("TXT_PERMA", $lng->txt("perma_link").": ");
}
$tpl->setVariable("LINK", $href);
if ($this->getTarget() != "")
{
$tpl->setVariable("TARGET", 'target="'.$this->getTarget().'"');
}
return $tpl->get();
}

+ Here is the call graph for this function:

ilPermanentLinkGUI::getId ( )

Get Id.

Returns
string Id

Definition at line 106 of file class.ilPermanentLinkGUI.php.

Referenced by getHTML().

{
return $this->id;
}

+ Here is the caller graph for this function:

ilPermanentLinkGUI::getIncludePermanentLinkText ( )

Get Include permanent link text.

Returns
boolean Include permanent link text

Definition at line 66 of file class.ilPermanentLinkGUI.php.

Referenced by getHTML().

{
return $this->includepermanentlinktext;
}

+ Here is the caller graph for this function:

ilPermanentLinkGUI::getTarget ( )

Get Target.

Returns
string Target

Definition at line 146 of file class.ilPermanentLinkGUI.php.

Referenced by getHTML().

{
return $this->target;
}

+ Here is the caller graph for this function:

ilPermanentLinkGUI::getType ( )

Get Type.

Returns
string Type

Definition at line 86 of file class.ilPermanentLinkGUI.php.

Referenced by getHTML().

{
return $this->type;
}

+ Here is the caller graph for this function:

ilPermanentLinkGUI::setAppend (   $a_append)

Set Append.

Parameters
string$a_appendAppend

Definition at line 116 of file class.ilPermanentLinkGUI.php.

Referenced by __construct().

{
$this->append = $a_append;
}

+ Here is the caller graph for this function:

ilPermanentLinkGUI::setId (   $a_id)

Set Id.

Parameters
string$a_idId

Definition at line 96 of file class.ilPermanentLinkGUI.php.

Referenced by __construct().

{
$this->id = $a_id;
}

+ Here is the caller graph for this function:

ilPermanentLinkGUI::setIncludePermanentLinkText (   $a_includepermanentlinktext)

Set Include permanent link text.

Parameters
boolean$a_includepermanentlinktextInclude permanent link text

Definition at line 56 of file class.ilPermanentLinkGUI.php.

Referenced by __construct().

{
$this->includepermanentlinktext = $a_includepermanentlinktext;
}

+ Here is the caller graph for this function:

ilPermanentLinkGUI::setTarget (   $a_target)

Set Target.

Parameters
string$a_targetTarget

Definition at line 136 of file class.ilPermanentLinkGUI.php.

Referenced by __construct().

{
$this->target = $a_target;
}

+ Here is the caller graph for this function:

ilPermanentLinkGUI::setType (   $a_type)

Set Type.

Parameters
string$a_typeType

Definition at line 76 of file class.ilPermanentLinkGUI.php.

Referenced by __construct().

{
$this->type = $a_type;
}

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: