Public Member Functions | |
ilRoleDesktopItemSelector ($a_target, $role_desk_item_obj) | |
Constructor public. | |
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 | |
$role_desk_obj = null | |
$root_id | |
$output | |
$ctrl | |
$selectable_type | |
$ref_id |
Definition at line 36 of file class.ilRoleDesktopItemSelector.php.
ilRoleDesktopItemSelector::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 91 of file class.ilRoleDesktopItemSelector.php.
{ return ''; }
ilRoleDesktopItemSelector::buildLinkTarget | ( | $ | a_node_id, | |
$ | a_type | |||
) |
get link target (may be overwritten by derived classes)
Reimplemented from ilExplorer.
Definition at line 84 of file class.ilRoleDesktopItemSelector.php.
{ $this->ctrl->setParameterByClass('ilobjrolegui','item_id',$a_node_id); return $this->ctrl->getLinkTargetByClass('ilobjrolegui','assignDesktopItem'); }
ilRoleDesktopItemSelector::formatHeader | ( | $ | a_obj_id, | |
$ | a_option | |||
) |
overwritten method from base class public
integer | obj_id | |
integer | array options |
Definition at line 122 of file class.ilRoleDesktopItemSelector.php.
References ilExplorer::$ilias, $lng, and $tpl.
ilRoleDesktopItemSelector::ilRoleDesktopItemSelector | ( | $ | a_target, | |
$ | role_desk_item_obj | |||
) |
Constructor public.
string | scriptname | |
int | user_id |
Definition at line 59 of file class.ilRoleDesktopItemSelector.php.
References $ilCtrl, ilExplorer::$tree, ilExplorer::addFilter(), ilExplorer::ilExplorer(), ilExplorer::setFiltered(), ilExplorer::setFilterMode(), and ilExplorer::setSessionExpandVariable().
{ global $tree,$ilCtrl; $this->ctrl = $ilCtrl; $this->role_desk_obj =& $role_desk_item_obj; parent::ilExplorer($a_target); $this->tree = $tree; $this->root_id = $this->tree->readRootId(); $this->order_column = "title"; $this->setSessionExpandVariable("role_desk_item_link_expand"); $this->addFilter("adm"); $this->addFilter("rolf"); #$this->addFilter("chat"); #$this->addFilter('fold'); $this->setFilterMode(IL_FM_NEGATIVE); $this->setFiltered(true); }
ilRoleDesktopItemSelector::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 96 of file class.ilRoleDesktopItemSelector.php.
References $rbacsystem.
{ global $rbacsystem; return $rbacsystem->checkAccess('write',$a_ref_id) and !$this->role_desk_obj->isAssigned($a_ref_id); }
ilRoleDesktopItemSelector::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 103 of file class.ilRoleDesktopItemSelector.php.
References $rbacsystem.
{ global $rbacsystem; if($a_ref_id) { return $rbacsystem->checkAccess('read',$a_ref_id); } return true; }
ilRoleDesktopItemSelector::$ctrl |
Definition at line 49 of file class.ilRoleDesktopItemSelector.php.
ilRoleDesktopItemSelector::$output |
Reimplemented from ilExplorer.
Definition at line 48 of file class.ilRoleDesktopItemSelector.php.
ilRoleDesktopItemSelector::$ref_id |
Definition at line 52 of file class.ilRoleDesktopItemSelector.php.
ilRoleDesktopItemSelector::$role_desk_obj = null |
Definition at line 44 of file class.ilRoleDesktopItemSelector.php.
ilRoleDesktopItemSelector::$root_id |
Definition at line 47 of file class.ilRoleDesktopItemSelector.php.
ilRoleDesktopItemSelector::$selectable_type |
Definition at line 51 of file class.ilRoleDesktopItemSelector.php.