Public Member Functions | |
ilLMMenuObjectSelector ($a_target) | |
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) | |
return if item is clickable | |
buildTitle ($a_title, $a_id, $a_type) | |
build item title | |
buildDescription ($a_desc, $a_id, $a_type) | |
standard implementation for description, may be overwritten by derived classes | |
buildOnClick ($a_node_id, $a_type, $a_title) | |
get onclick event handling | |
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 |
Definition at line 35 of file class.ilIntLinkRepItemExplorer.php.
ilIntLinkRepItemExplorer::buildDescription | ( | $ | a_desc, | |
$ | a_id, | |||
$ | a_type | |||
) |
standard implementation for description, may be overwritten by derived classes
Reimplemented from ilExplorer.
Definition at line 102 of file class.ilIntLinkRepItemExplorer.php.
References $ilUser.
{ global $ilUser; if ($ilUser->getPref("ilPageEditor_JavaScript") != "enable") { if (in_array($a_type,$this->selectable_types)) { return "<br>[iln ".$a_type."=\"$a_id\"] [/iln]"; } } return ""; }
ilIntLinkRepItemExplorer::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 68 of file class.ilIntLinkRepItemExplorer.php.
{ return ''; }
ilIntLinkRepItemExplorer::buildLinkTarget | ( | $ | a_node_id, | |
$ | a_type | |||
) |
get link target (may be overwritten by derived classes)
Reimplemented from ilExplorer.
Definition at line 62 of file class.ilIntLinkRepItemExplorer.php.
{ return "#"; }
ilIntLinkRepItemExplorer::buildOnClick | ( | $ | a_node_id, | |
$ | a_type, | |||
$ | a_title | |||
) |
get onclick event handling
Reimplemented from ilExplorer.
Definition at line 119 of file class.ilIntLinkRepItemExplorer.php.
{ return "opener.addInternalLink('[iln ".$a_type."="".$a_node_id.""] [/iln]','".$a_title."');setTimeout('window.close()',300);return(false);"; }
ilIntLinkRepItemExplorer::buildTitle | ( | $ | a_title, | |
$ | a_id, | |||
$ | a_type | |||
) |
build item title
Reimplemented from ilExplorer.
Definition at line 94 of file class.ilIntLinkRepItemExplorer.php.
{
return $a_title;
}
ilIntLinkRepItemExplorer::formatHeader | ( | $ | a_obj_id, | |
$ | a_option | |||
) |
overwritten method from base class public
integer | obj_id | |
integer | array options |
Reimplemented from ilExplorer.
Definition at line 153 of file class.ilIntLinkRepItemExplorer.php.
References ilExplorer::$ilias, $lng, and $tpl.
ilIntLinkRepItemExplorer::ilLMMenuObjectSelector | ( | $ | a_target | ) |
Constructor public.
string | scriptname | |
int | user_id |
Definition at line 44 of file class.ilIntLinkRepItemExplorer.php.
References $ilCtrl, ilExplorer::$tree, and ilExplorer::ilExplorer().
{ global $tree,$ilCtrl; $this->ctrl =& $ilCtrl; parent::ilExplorer($a_target); }
ilIntLinkRepItemExplorer::isClickable | ( | $ | a_type, | |
$ | a_ref_id | |||
) |
return if item is clickable
Reimplemented from ilExplorer.
Definition at line 76 of file class.ilIntLinkRepItemExplorer.php.
References $ilUser.
{ global $ilUser; if ($ilUser->getPref("ilPageEditor_JavaScript") != "enable") { return false; } else { return in_array($a_type,$this->selectable_types); } }
ilIntLinkRepItemExplorer::setRefId | ( | $ | a_ref_id | ) |
Definition at line 57 of file class.ilIntLinkRepItemExplorer.php.
{ $this->ref_id = $a_ref_id; }
ilIntLinkRepItemExplorer::setSelectableTypes | ( | $ | a_types | ) |
Definition at line 52 of file class.ilIntLinkRepItemExplorer.php.
{ $this->selectable_types = $a_types; }
ilIntLinkRepItemExplorer::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 126 of file class.ilIntLinkRepItemExplorer.php.
References $rbacsystem.
{ global $rbacsystem; if ($a_ref_id == 0) { return true; } if ($rbacsystem->checkAccess("read", $a_ref_id)) { return true; } else { return false; } }