ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
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 isNodeVisible($a_node)
48 {
49 return parent::isNodeVisible($a_node);
50 }
51
55 function isNodeClickable($a_node)
56 {
60 global $ilAccess;
61
62 if($a_node['type'] == 'frm')
63 {
64 if($this->getCurrentFrmRefId() && $this->getCurrentFrmRefId() == $a_node['child'])
65 {
66 return false;
67 }
68
69 return $ilAccess->checkAccess('moderate_frm', '', $a_node['child']) && parent::isNodeClickable($a_node);
70 }
71
72 return false;
73 }
74}
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.