Inheritance diagram for ilLMMenuObjectSelector:
Collaboration diagram for ilLMMenuObjectSelector:Public Member Functions | |
| ilLMMenuObjectSelector ($a_target, &$a_gui_obj) | |
| Constructor public. | |
| setSelectableTypes ($a_types) | |
| setRefId ($a_ref_id) | |
| buildLinkTarget ($a_node_id, $a_type) | |
| get link target (may be overwritten by derived classes) | |
| buildFrameTarget ($a_type, $a_child=0, $a_obj_id=0) | |
| get frame target (may be overwritten by derived classes) | |
| isClickable ($a_type, $a_ref_id) | |
| check if links for certain object type are activated | |
| showChilds ($a_ref_id) | |
| determines wether the childs of an object should be shown or not note: this standard implementation always returns true but it could be overwritten by derived classes (e.g. | |
| formatHeader ($a_obj_id, $a_option) | |
| overwritten method from base class public | |
Data Fields | |
| $root_id | |
| $output | |
| $ctrl | |
| $selectable_type | |
| $ref_id | |
Definition at line 35 of file class.ilLMMenuObjectSelector.php.
| ilLMMenuObjectSelector::buildFrameTarget | ( | $ | a_type, | |
| $ | a_child = 0, |
|||
| $ | a_obj_id = 0 | |||
| ) |
get frame target (may be overwritten by derived classes)
Reimplemented from ilExplorer.
Definition at line 92 of file class.ilLMMenuObjectSelector.php.
{
return '';
}
| ilLMMenuObjectSelector::buildLinkTarget | ( | $ | a_node_id, | |
| $ | a_type | |||
| ) |
get link target (may be overwritten by derived classes)
Reimplemented from ilExplorer.
Definition at line 83 of file class.ilLMMenuObjectSelector.php.
{
if(in_array($a_type,$this->selectable_types))
{
$this->ctrl->setParameter($this->gui_obj,'link_ref_id',$a_node_id);
return $this->ctrl->getLinkTarget($this->gui_obj,'addMenuEntry');
}
}
| ilLMMenuObjectSelector::formatHeader | ( | $ | a_obj_id, | |
| $ | a_option | |||
| ) |
overwritten method from base class public
| integer | obj_id | |
| integer | array options |
Reimplemented from ilExplorer.
Definition at line 129 of file class.ilLMMenuObjectSelector.php.
References ilExplorer::$ilias, $lng, and $tpl.
| ilLMMenuObjectSelector::ilLMMenuObjectSelector | ( | $ | a_target, | |
| &$ | a_gui_obj | |||
| ) |
Constructor public.
| string | scriptname | |
| int | user_id |
Definition at line 55 of file class.ilLMMenuObjectSelector.php.
References $ilCtrl, ilExplorer::$tree, ilExplorer::addFilter(), ilExplorer::ilExplorer(), and ilExplorer::setSessionExpandVariable().
{
global $tree,$ilCtrl;
$this->ctrl = $ilCtrl;
$this->gui_obj = $a_gui_obj;
parent::ilExplorer($a_target);
$this->tree = $tree;
$this->root_id = $this->tree->readRootId();
$this->order_column = "title";
$this->setSessionExpandVariable("lm_menu_expand");
$this->addFilter("rolf");
$this->addFilter("adm");
}
Here is the call graph for this function:| ilLMMenuObjectSelector::isClickable | ( | $ | a_type, | |
| $ | a_ref_id | |||
| ) |
check if links for certain object type are activated
| string | $a_type object type |
Reimplemented from ilExplorer.
Definition at line 97 of file class.ilLMMenuObjectSelector.php.
{//return true;
return in_array($a_type,$this->selectable_types) and $a_ref_id != $this->ref_id;
}
| ilLMMenuObjectSelector::setRefId | ( | $ | a_ref_id | ) |
Definition at line 77 of file class.ilLMMenuObjectSelector.php.
{
$this->ref_id = $a_ref_id;
}
| ilLMMenuObjectSelector::setSelectableTypes | ( | $ | a_types | ) |
Definition at line 72 of file class.ilLMMenuObjectSelector.php.
{
$this->selectable_types = $a_types;
}
| ilLMMenuObjectSelector::showChilds | ( | $ | a_parent_id | ) |
determines wether the childs of an object should be shown or not note: this standard implementation always returns true but it could be overwritten by derived classes (e.g.
ilRepositoryExplorerGUI)
Reimplemented from ilExplorer.
Definition at line 102 of file class.ilLMMenuObjectSelector.php.
References $rbacsystem.
{
global $rbacsystem;
if ($a_ref_id == 0)
{
return true;
}
if ($rbacsystem->checkAccess("read", $a_ref_id))
{
return true;
}
else
{
return false;
}
}
| ilLMMenuObjectSelector::$ctrl |
Definition at line 45 of file class.ilLMMenuObjectSelector.php.
| ilLMMenuObjectSelector::$output |
Reimplemented from ilExplorer.
Definition at line 44 of file class.ilLMMenuObjectSelector.php.
| ilLMMenuObjectSelector::$ref_id |
Definition at line 47 of file class.ilLMMenuObjectSelector.php.
| ilLMMenuObjectSelector::$root_id |
Definition at line 43 of file class.ilLMMenuObjectSelector.php.
| ilLMMenuObjectSelector::$selectable_type |
Definition at line 46 of file class.ilLMMenuObjectSelector.php.
1.7.1