ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilForumMoveTopicsExplorer.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Repository/classes/class.ilRepositorySelectorExplorerGUI.php';
5
11{
15 protected $current_frm_ref_id = 0;
16
20 public function __construct($a_parent_obj, $a_parent_cmd, $a_selection_gui = null, $a_selection_cmd = "selectObject",
21 $a_selection_par = "sel_ref_id")
22 {
23 parent::__construct($a_parent_obj, $a_parent_cmd, $a_selection_gui, $a_selection_cmd, $a_selection_par);
24 $this->setTypeWhiteList(array('root', 'cat', 'fold', 'crs', 'grp', 'frm'));
25 $this->setSelectMode('frm_ref_id');
26 }
27
31 public function getCurrentFrmRefId()
32 {
34 }
35
40 {
41 $this->current_frm_ref_id = $current_frm_ref_id;
42 }
43
47 function isNodeClickable($a_node)
48 {
52 global $ilAccess;
53
54 if($a_node['type'] == 'frm')
55 {
56 if($this->getCurrentFrmRefId() && $this->getCurrentFrmRefId() == $a_node['child'])
57 {
58 return false;
59 }
60
61 return $ilAccess->checkAccess('moderate_frm', '', $a_node['child']) && parent::isNodeClickable($a_node);
62 }
63
64 return false;
65 }
66
70 function isNodeVisible($a_node)
71 {
72 return parent::isNodeVisible($a_node);
73 }
74
78 protected function isNodeSelectable($a_node)
79 {
83 global $ilAccess;
84
85 if($a_node['type'] == 'frm')
86 {
87 if($this->getCurrentFrmRefId() && $this->getCurrentFrmRefId() == $a_node['child'])
88 {
89 return false;
90 }
91
92 return $ilAccess->checkAccess('moderate_frm', '', $a_node['child']) && parent::isNodeSelectable($a_node);
93 }
94
95 return false;
96 }
97}
isNodeSelectable($a_node)
Is node selectable?
setSelectMode($a_postvar, $a_multi=false)
Set select mode (to deactivate, pass an empty string as postvar)
isNodeVisible($a_node)
{Is node visible.bool visible true/false}
__construct($a_parent_obj, $a_parent_cmd, $a_selection_gui=null, $a_selection_cmd="selectObject", $a_selection_par="sel_ref_id")
{Constructor.}
Explorer for selecting repository items.
setTypeWhiteList($a_val)
Set type white list.