ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilForumLocatorGUI Class Reference

Class ilForumLocatorGUI core export functions for forum. More...

+ Collaboration diagram for ilForumLocatorGUI:

Public Member Functions

 ilForumLocatorGUI ()
 setTemplateVariable ($a_temp_var)
 setRefId ($a_ref_id)
 setThread ($a_id, $a_subject)
 setForum (&$a_frm)
 showUser ($a_show)
 display ()
 display locator

Data Fields

 $mode
 $temp_var
 $tree
 $obj
 $lng
 $tpl
 $frm
 $thread_id
 $thread_subject
 $show_user

Detailed Description

Class ilForumLocatorGUI core export functions for forum.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilForumLocatorGUI.php 19589 2009-04-10 08:08:17Z akill

Definition at line 34 of file class.ilForumLocatorGUI.php.

Member Function Documentation

ilForumLocatorGUI::display ( )

display locator

Definition at line 89 of file class.ilForumLocatorGUI.php.

References $lng, $path, $row, $title, ilFrameTargetInfo\_getFrame(), and ilObject\_getIcon().

{
global $lng;
$this->tpl->addBlockFile($this->temp_var, "locator", "tpl.locator.html",
"Services/Locator");
$path = $this->tree->getPathFull($this->ref_id);
$modifier = 1;
//$this->tpl->touchBlock("locator_separator");
//$this->tpl->touchBlock("locator_item");
foreach ($path as $key => $row)
{
if ($this->ref_id == $row["child"] && is_object($this->frm))
{
if (!is_array($topicData = $this->frm->getOneTopic()))
{
continue;
}
}
/*
if ($row["child"] == $this->tree->getRootId())
{
continue;
}*/
//if (($key < count($path)-$modifier) || (!empty($this->thread_id))
// || $this->show_user)
if (($key < count($path)-$modifier))
{
$this->tpl->touchBlock("locator_separator");
//$this->tpl->touchBlock("locator_item");
}
if ($row["child"] > 0)
{
$icon_path = ilObject::_getIcon($row['obj_id'], 'tiny', $row['type']);
$this->tpl->setCurrentBlock("locator_img");
$this->tpl->setVariable("IMG_SRC", $icon_path);
#$this->tpl->setVariable("IMG_SRC", ilUtil::getImagePath("icon_".$row["type"]."_s.gif"));
$this->tpl->setVariable("IMG_ALT", $lng->txt("obj_".$row['type']));
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("locator_item");
if ($row["child"] == $this->tree->getRootId())
{
$title = strlen($row["title"]) ? $row["title"] : $this->lng->txt("repository");
$link = "repository.php?ref_id=".$row["child"]
."&amp;cmd=frameset";
}
else if (($this->ref_id == $row["child"]) && (is_object($this->frm)))
{
$title = $row["title"];
#$link = "forums_threads_liste.php?ref_id=".$row["child"];
$link = "repository.php?ref_id=".$row["child"];
}
else
{
$title = $row["title"];
if ($row["type"] == "frm")
{
$link = "repository.php?ref_id=".$row["child"];
}
else
{
$link = "repository.php?ref_id=".$row["child"]
."&amp;cmd=frameset";
}
}
$this->tpl->setVariable("ITEM", $title);
$this->tpl->setVariable("LINK_ITEM", $link);
$t_frame = ilFrameTargetInfo::_getFrame("MainContent");
$this->tpl->setVariable("LINK_TARGET", "target=\"$t_frame\"");
$this->tpl->parseCurrentBlock();
}
/*
if (!empty($this->thread_id))
{
if ($this->show_user)
{
$this->tpl->touchBlock("locator_separator");
}
$this->tpl->setCurrentBlock("locator_item");
$this->tpl->setVariable("ITEM", $this->thread_subject);
$this->tpl->setVariable("LINK_ITEM", "repository.php?cmd=viewThread&cmdClass=ilobjforumgui&thr_pk=".
$this->thread_id."&ref_id=".$this->ref_id);
$this->tpl->parseCurrentBlock();
}*/
/*
if ($this->show_user)
{
$this->tpl->setCurrentBlock("locator_item");
$this->tpl->setVariable("ITEM", $lng->txt("userdata"));
$this->tpl->setVariable("LINK_ITEM", "");
//$t_frame = ilFrameTargetInfo::_getFrame("RepositoryContent", "frm");
//$this->tpl->setVariable("LINK_TARGET","target=\"$t_frame\"");
$this->tpl->parseCurrentBlock();
}*/
$this->tpl->setCurrentBlock("locator");
$this->tpl->setVariable("TXT_LOCATOR",$debug.$this->lng->txt("locator"));
$this->tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:

ilForumLocatorGUI::ilForumLocatorGUI ( )

Definition at line 47 of file class.ilForumLocatorGUI.php.

References $lng, $tpl, and $tree.

{
global $lng, $tpl, $tree;
$this->tree =& $tree;
$this->mode = "std";
$this->temp_var = "LOCATOR";
$this->lng =& $lng;
$this->tpl =& $tpl;
$this->show_user = false;
}
ilForumLocatorGUI::setForum ( $a_frm)

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

{
$this->frm =& $a_frm;
}
ilForumLocatorGUI::setRefId (   $a_ref_id)

Definition at line 65 of file class.ilForumLocatorGUI.php.

{
$this->ref_id = $a_ref_id;
}
ilForumLocatorGUI::setTemplateVariable (   $a_temp_var)

Definition at line 60 of file class.ilForumLocatorGUI.php.

{
$this->temp_var = $a_temp_var;
}
ilForumLocatorGUI::setThread (   $a_id,
  $a_subject 
)

Definition at line 70 of file class.ilForumLocatorGUI.php.

{
$this->thread_id = $a_id;
$this->thread_subject = $a_subject;
}
ilForumLocatorGUI::showUser (   $a_show)

Definition at line 81 of file class.ilForumLocatorGUI.php.

{
$this->show_user = $a_show;
}

Field Documentation

ilForumLocatorGUI::$frm

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

ilForumLocatorGUI::$lng

Definition at line 40 of file class.ilForumLocatorGUI.php.

Referenced by display(), and ilForumLocatorGUI().

ilForumLocatorGUI::$mode

Definition at line 36 of file class.ilForumLocatorGUI.php.

ilForumLocatorGUI::$obj

Definition at line 39 of file class.ilForumLocatorGUI.php.

ilForumLocatorGUI::$show_user

Definition at line 45 of file class.ilForumLocatorGUI.php.

ilForumLocatorGUI::$temp_var

Definition at line 37 of file class.ilForumLocatorGUI.php.

ilForumLocatorGUI::$thread_id

Definition at line 43 of file class.ilForumLocatorGUI.php.

ilForumLocatorGUI::$thread_subject

Definition at line 44 of file class.ilForumLocatorGUI.php.

ilForumLocatorGUI::$tpl

Definition at line 41 of file class.ilForumLocatorGUI.php.

Referenced by ilForumLocatorGUI().

ilForumLocatorGUI::$tree

Definition at line 38 of file class.ilForumLocatorGUI.php.

Referenced by ilForumLocatorGUI().


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