ILIAS  release_7 Revision v7.30-3-g800a261c036
ilWorkspaceExplorer Class Reference
+ Inheritance diagram for ilWorkspaceExplorer:
+ Collaboration diagram for ilWorkspaceExplorer:

Public Member Functions

 __construct ($a_type, $a_target, $a_session_variable, ilWorkspaceTree $a_tree, ilWorkspaceAccessHandler $a_access_handler)
 Constructor @access public. More...
 
 showChilds ($a_ref_id, $a_obj_id=0)
 
 isVisible ($a_ref_id, $a_type)
 
 sortNodes ($a_nodes, $a_parent_obj_id)
 sort nodes More...
 
 isClickable ($a_type, $a_ref_id=0, $a_obj_id=0)
 
 addFormItemForType ($type)
 
 removeFormItemForType ($type)
 
 removeAllFormItemTypes ()
 
 setCheckedItems ($a_checked_items=array())
 
 isItemChecked ($a_id)
 
 setPostVar ($a_post_var)
 
 getPostVar ()
 
 buildFormItem ($a_node_id, $a_type)
 
 formatObject ($tpl, $a_node_id, $a_option, $a_obj_id=0)
 Creates output recursive method @access private. More...
 
 formatHeader ($tpl, $a_obj_id, $a_option)
 overwritten method from base class @access public More...
 
 setTypeClickable ($a_type)
 
 setCustomLinkTarget ($a_target)
 
 buildLinkTarget ($a_node_id, $a_type)
 note: most of this stuff is used by ilCourseContentInterface too More...
 
- Public Member Functions inherited from ilRepositoryExplorer
 __construct ($a_target, $a_top_node=0)
 Constructor @access public. More...
 
 setForceOpenPath ($a_path)
 set force open path More...
 
 buildLinkTarget ($a_node_id, $a_type)
 note: most of this stuff is used by ilCourseContentInterface too More...
 
 buildFrameTarget ($a_type, $a_child=0, $a_obj_id=0)
 STATIC, do not use $this inside! More...
 
 getImage ($a_name, $a_type="", $a_obj_id="")
 get image path More...
 
 isClickable ($a_type, $a_ref_id=0, $a_obj_id=0)
 
 showChilds ($a_ref_id, $a_obj_id=0)
 
 isVisible ($a_ref_id, $a_type)
 
 formatHeader ($tpl, $a_obj_id, $a_option)
 overwritten method from base class @access public More...
 
 sortNodes ($a_nodes, $a_parent_obj_id)
 sort nodes More...
 
 forceExpanded ($a_node)
 Force expansion of node. More...
 
- Public Member Functions inherited from ilExplorer
 __construct ($a_target)
 Constructor @access public. More...
 
 setId ($a_val)
 Set id. More...
 
 getId ()
 Get id. More...
 
 setAsynchExpanding ($a_val)
 Set asynch expanding. More...
 
 getAsynchExpanding ()
 Get asynch expanding. More...
 
 initItemCounter ($a_number)
 Init item counter. More...
 
 setTitle ($a_val)
 Set title. More...
 
 setTitleLength ($a_length)
 Set max title length. More...
 
 getTitleLength ()
 Get max title length. More...
 
 getTitle ()
 Get title. More...
 
 setRoot ($a_root_id)
 Set root node. More...
 
 getRoot ()
 get root id More...
 
 setOrderColumn ($a_column)
 set the order column @access public More...
 
 setOrderDirection ($a_direction)
 set the order direction @access public More...
 
 setTargetGet ($a_target_get)
 set the varname in Get-string @access public More...
 
 setParamsGet ($a_params_get)
 set additional params to be passed in Get-string @access public More...
 
 setExpandTarget ($a_exp_target)
 target script for expand icons More...
 
 setFrameUpdater ($a_up_frame, $a_up_script, $a_params="")
 Set Explorer Updater. More...
 
 highlightNode ($a_id)
 set highlighted node More...
 
 checkPermissions ($a_check)
 check permissions via rbac More...
 
 setSessionExpandVariable ($a_var_name="expand")
 set name of expand session variable More...
 
 outputIcons ($a_icons)
 output icons More...
 
 setClickable ($a_type, $a_clickable)
 (de-)activates links for a certain object type More...
 
 isVisible ($a_ref_id, $a_type)
 
 setTreeLead ($a_val)
 Set tree leading content. More...
 
 getTreeLead ()
 Get tree leading content. More...
 
 isClickable ($a_type, $a_ref_id=0)
 check if links for certain object type are activated More...
 
 setPostSort ($a_sort)
 process post sorting More...
 
 setFilterMode ($a_mode=IL_FM_NEGATIVE)
 set filter mode More...
 
 getFilterMode ()
 get filter mode More...
 
 setUseStandardFrame ($a_val)
 Set use standard frame. More...
 
 getUseStandardFrame ()
 Get use standard explorer frame. More...
 
 getChildsOfNode ($a_parent_id)
 Get childs of node. More...
 
 setOutput ($a_parent_id, $a_depth=1, $a_obj_id=0, $a_highlighted_subtree=false)
 Creates output for explorer view in admin menue recursive method @access public. More...
 
 modifyChilds ($a_parent_id, $a_objects)
 
 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. More...
 
 forceExpanded ($a_obj_id)
 force expansion of node More...
 
 getMaximumTreeDepth ()
 Get maximum tree depth. More...
 
 getOutput ()
 Creates output recursive method @access public. More...
 
 handleListEndTags (&$a_tpl_tree, $a_cur_depth, $a_item_depth)
 handle list end tags ( and ) More...
 
 handleListStartTags (&$a_tpl_tree, $a_cur_depth, $a_item_depth)
 handle list start tags ( More...
 
 formatHeader ($tpl, $a_obj_id, $a_option)
 Creates output for header (is empty here but can be overwritten in derived classes) More...
 
 formatObject ($tpl, $a_node_id, $a_option, $a_obj_id=0)
 Creates output recursive method @access private. More...
 
 getImage ($a_name, $a_type="", $a_obj_id="")
 get image path (may be overwritten by derived classes) More...
 
 getImageAlt ($a_default_text, $a_type="", $a_obj_id="")
 get image alt text More...
 
 getNodeStyleClass ($a_id, $a_type)
 get style class for node More...
 
 buildLinkTarget ($a_node_id, $a_type)
 get link target (may be overwritten by derived classes) More...
 
 buildOnClick ($a_node_id, $a_type, $a_title)
 get onclick event handling (may be overwritten by derived classes) More...
 
 buildTitle ($a_title, $a_id, $a_type)
 standard implementation for title, may be overwritten by derived classes More...
 
 buildDescription ($a_desc, $a_id, $a_type)
 standard implementation for description, may be overwritten by derived classes More...
 
 buildSelect ($a_node_id, $a_type)
 standard implementation for adding an option select box between image and title More...
 
 buildFrameTarget ($a_type, $a_child=0, $a_obj_id=0)
 get frame target (may be overwritten by derived classes) More...
 
 createTarget ($a_type, $a_node_id, $a_highlighted_subtree=false, $a_append_anch=true)
 Creates Get Parameter @access private. More...
 
 setFrameTarget ($a_target)
 set target frame or not frame? More...
 
 createLines ($a_depth)
 Creates lines for explorer view @access private. More...
 
 is_in_array ($a_start, $a_depth)
 DESCRIPTION MISSING @access private. More...
 
 getIndex ($a_data)
 get index of format_options array from specific ref_id,parent_id @access private More...
 
 addFilter ($a_item)
 adds item to the filter @access public More...
 
 delFilter ($a_item)
 removes item from the filter @access public More...
 
 setExpand ($a_node_id)
 set the expand option this value is stored in a SESSION variable to save it different view (lo view, frm view,...) @access private More...
 
 forceExpandAll ($a_mode, $a_show_minus=true)
 force expandAll. More...
 
 setFiltered ($a_bool)
 active/deactivate the filter @access public More...
 
 checkFilter ($a_item)
 check if item is in filter @access private More...
 
 sortNodes ($a_nodes, $a_parent_obj_id)
 sort nodes and put adm object to the end of sorted array @access private More...
 

Data Fields

const SEL_TYPE_CHECK = 1
 
const SEL_TYPE_RADIO = 2
 
 $root_id = 0
 
 $output = ''
 
 $ctrl = null
 
 $access = null
 
- Data Fields inherited from ilRepositoryExplorer
 $root_id
 
 $output
 
 $ctrl
 
- Data Fields inherited from ilExplorer
 $id
 
 $output
 
 $format_options
 
 $tree
 
 $target
 
 $target_get
 
 $params_get
 
 $expanded
 
 $order_column
 
 $order_direction = "asc"
 
 $expand_target
 
 $rbac_check
 
 $output_icons
 
 $expand_variable
 
 $is_clickable
 
 $post_sort
 
 $filtered = false
 
 $filter_mode
 
 $expand_all = false
 
 $root_id = null
 
 $use_standard_frame = false
 

Protected Attributes

 $lng
 
 $clickable = array()
 
 $custom_link_target
 
- Protected Attributes inherited from ilRepositoryExplorer
 $lng
 
 $settings
 
 $obj_definition
 
 $rbacsystem
 
 $db
 
 $user
 
 $access
 
- Protected Attributes inherited from ilExplorer
 $obj_definition
 
 $error
 
 $rbacsystem
 
 $tpl
 
 $lng
 

Private Attributes

 $checked_items = array()
 
 $post_var = ''
 
 $form_items = array()
 
 $type = 0
 

Detailed Description

Definition at line 12 of file class.ilWorkspaceExplorer.php.

Constructor & Destructor Documentation

◆ __construct()

ilWorkspaceExplorer::__construct (   $a_type,
  $a_target,
  $a_session_variable,
ilWorkspaceTree  $a_tree,
ilWorkspaceAccessHandler  $a_access_handler 
)

Constructor @access public.

Parameters
string$a_targetscriptname
string$a_session_variablesession_variable
ilWorkspaceTree$a_treeworkspace tree
ilWorkspaceAccessHandler$a_access_handlerworkspace access handler
Deprecated:
use class ilWorkspaceExplorerGUI instead

Definition at line 44 of file class.ilWorkspaceExplorer.php.

45 {
46 global $DIC;
47
48 $this->lng = $DIC->language();
49 $ilCtrl = $DIC->ctrl();
50
51 $this->ctrl = $ilCtrl;
52 $this->type = $a_type;
53 $this->access = $a_access_handler;
54
55 parent::__construct($a_target);
56
57 // #11173
58 if (!$a_tree->readRootId()) {
59 // create (workspace) root folder
60 $root = ilObjectFactory::getClassByType("wsrt");
61 $root = new $root(null);
62 $root->create();
63
64 $root_id = $a_tree->createReference($root->getId());
65 $a_tree->addTree($a_tree->getTreeId(), $root_id);
66 $a_tree->setRootId($root_id);
67 }
68 $this->tree = $a_tree;
69 $this->root_id = $this->tree->readRootId();
70 $this->order_column = 'title';
71 $this->setSessionExpandVariable($a_session_variable);
72
73 // reset filter
74 $this->filter = array();
75
76 $this->addFilter('wsrt');
77 $this->addFilter('wfld');
78
79 $this->addFormItemForType('wsrt');
80 $this->addFormItemForType('wfld');
81
82 $this->setFiltered(true);
84 }
const IL_FM_POSITIVE
setSessionExpandVariable($a_var_name="expand")
set name of expand session variable
addFilter($a_item)
adds item to the filter @access public
setFilterMode($a_mode=IL_FM_NEGATIVE)
set filter mode
setFiltered($a_bool)
active/deactivate the filter @access public
static getClassByType($a_obj_type)
Get class by type.
getTreeId()
get tree id @access public
readRootId()
read root id from database
addTree($a_tree_id, $a_node_id=-1)
create a new tree to do: ???
setRootId($a_root_id)
createReference($a_object_id)
Create workspace reference for object.
filter()
Definition: filter.php:2
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $DIC, $root_id, ILIAS\GlobalScreen\Provider\__construct(), ilExplorer\addFilter(), addFormItemForType(), ilTree\addTree(), ilWorkspaceTree\createReference(), filter(), ilObjectFactory\getClassByType(), ilTree\getTreeId(), IL_FM_POSITIVE, ilTree\readRootId(), ilExplorer\setFiltered(), ilExplorer\setFilterMode(), ilTree\setRootId(), and ilExplorer\setSessionExpandVariable().

+ Here is the call graph for this function:

Member Function Documentation

◆ addFormItemForType()

ilWorkspaceExplorer::addFormItemForType (   $type)

Definition at line 114 of file class.ilWorkspaceExplorer.php.

115 {
116 $this->form_items[$type] = true;
117 }

References $type.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ buildFormItem()

ilWorkspaceExplorer::buildFormItem (   $a_node_id,
  $a_type 
)

Definition at line 143 of file class.ilWorkspaceExplorer.php.

144 {
145 if (!array_key_exists($a_type, $this->form_items) || !$this->form_items[$a_type]) {
146 return;
147 }
148
149 switch ($this->type) {
151 return ilUtil::formCheckbox((int) $this->isItemChecked($a_node_id), $this->post_var, $a_node_id);
152
154 return ilUtil::formRadioButton((int) $this->isItemChecked($a_node_id), $this->post_var, $a_node_id);
155 }
156 }
static formRadioButton($checked, $varname, $value, $onclick=null, $disabled=false)
??? @access public
static formCheckbox($checked, $varname, $value, $disabled=false)
??? @access public

References ilUtil\formCheckbox(), ilUtil\formRadioButton(), isItemChecked(), SEL_TYPE_CHECK, and SEL_TYPE_RADIO.

Referenced by formatHeader(), and formatObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildLinkTarget()

ilWorkspaceExplorer::buildLinkTarget (   $a_node_id,
  $a_type 
)

note: most of this stuff is used by ilCourseContentInterface too

Reimplemented from ilRepositoryExplorer.

Definition at line 312 of file class.ilWorkspaceExplorer.php.

313 {
314 if (!$this->custom_link_target) {
315 return parent::buildLinkTarget($a_node_id, $a_type);
316 }
317
318 $link = $this->custom_link_target . "&" . $this->target_get . "=" . $a_node_id;
319 return $link;
320 }

Referenced by formatObject().

+ Here is the caller graph for this function:

◆ formatHeader()

ilWorkspaceExplorer::formatHeader (   $tpl,
  $a_obj_id,
  $a_option 
)

overwritten method from base class @access public

Parameters
integerobj_id
integerarray options
Returns
string

Reimplemented from ilRepositoryExplorer.

Definition at line 275 of file class.ilWorkspaceExplorer.php.

276 {
278
279 // custom icons
280 $path = ilObject::_getIcon($a_obj_id, "small", "wsrt");
281
282 $tpl->setCurrentBlock("icon");
283 $title = $this->tree->getNodeData($this->root_id);
284 $title = $title["title"];
285 if (!$title) {
286 $title = $lng->txt("personal_resources");
287 }
288
289 $tpl->setVariable("ICON_IMAGE", $path);
290 $tpl->setVariable("TXT_ALT_IMG", $title);
291 $tpl->parseCurrentBlock();
292
293 if (strlen($formItem = $this->buildFormItem($a_obj_id, $a_option['type']))) {
294 $tpl->setCurrentBlock('check');
295 $tpl->setVariable('OBJ_CHECK', $formItem);
296 $tpl->parseCurrentBlock();
297 }
298
299 $tpl->setVariable('OBJ_TITLE', $title);
300 }
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
buildFormItem($a_node_id, $a_type)

References $lng, ilExplorer\$tpl, ilObject\_getIcon(), and buildFormItem().

+ Here is the call graph for this function:

◆ formatObject()

ilWorkspaceExplorer::formatObject (   $tpl,
  $a_node_id,
  $a_option,
  $a_obj_id = 0 
)

Creates output recursive method @access private.

Parameters
integer
array
Returns
string

Reimplemented from ilExplorer.

Definition at line 158 of file class.ilWorkspaceExplorer.php.

159 {
161
162 if (!isset($a_node_id) or !is_array($a_option)) {
163 require_once './Services/Exceptions/classes/class.ilException.php';
164 throw new ilException("Missing parameter or wrong datatype! " .
165 "node_id: " . $a_node_id . " options:" . var_dump($a_option));
166 }
167
168 $pic = false;
169 foreach ($a_option["tab"] as $picture) {
170 if ($picture == 'plus') {
171 $tpl->setCurrentBlock("expander");
172 $tpl->setVariable("EXP_DESC", $lng->txt("expand"));
173 $target = $this->createTarget('+', $a_node_id);
174 $tpl->setVariable("LINK_NAME", $a_node_id);
175 $tpl->setVariable("LINK_TARGET_EXPANDER", $target);
176 $tpl->setVariable("IMGPATH", $this->getImage("browser/plus.png"));
177 $tpl->parseCurrentBlock();
178 $pic = true;
179 }
180
181 if ($picture == 'minus' && $this->show_minus) {
182 $tpl->setCurrentBlock("expander");
183 $tpl->setVariable("EXP_DESC", $lng->txt("collapse"));
184 $target = $this->createTarget('-', $a_node_id);
185 $tpl->setVariable("LINK_NAME", $a_node_id);
186 $tpl->setVariable("LINK_TARGET_EXPANDER", $target);
187 $tpl->setVariable("IMGPATH", $this->getImage("browser/minus.png"));
188 $tpl->parseCurrentBlock();
189 $pic = true;
190 }
191 }
192
193 if (!$pic) {
194 $tpl->setCurrentBlock("blank");
195 $tpl->setVariable("BLANK_PATH", $this->getImage("browser/blank.png"));
196 $tpl->parseCurrentBlock();
197 }
198
199 if ($this->output_icons) {
200 $tpl->setCurrentBlock("icon");
201 $tpl->setVariable("ICON_IMAGE", $this->getImage("icon_" . $a_option["type"] . ".svg", $a_option["type"], $a_obj_id));
202
203 $tpl->setVariable("TARGET_ID", "iconid_" . $a_node_id);
204 $this->iconList[] = "iconid_" . $a_node_id;
205 $tpl->setVariable("TXT_ALT_IMG", $lng->txt($a_option["desc"]));
206 $tpl->parseCurrentBlock();
207 }
208
209 if (strlen($formItem = $this->buildFormItem($a_node_id, $a_option['type']))) {
210 $tpl->setCurrentBlock('check');
211 $tpl->setVariable('OBJ_CHECK', $formItem);
212 $tpl->parseCurrentBlock();
213 }
214
215 if ($this->isClickable($a_option["type"], $a_node_id, $a_obj_id)) { // output link
216 $tpl->setCurrentBlock("link");
217 //$target = (strpos($this->target, "?") === false) ?
218 // $this->target."?" : $this->target."&";
219 //$tpl->setVariable("LINK_TARGET", $target.$this->target_get."=".$a_node_id.$this->params_get);
220 $tpl->setVariable("LINK_TARGET", $this->buildLinkTarget($a_node_id, $a_option["type"]));
221
222 $style_class = $this->getNodeStyleClass($a_node_id, $a_option["type"]);
223
224 if ($style_class != "") {
225 $tpl->setVariable("A_CLASS", ' class="' . $style_class . '" ');
226 }
227
228 if (($onclick = $this->buildOnClick($a_node_id, $a_option["type"], $a_option["title"])) != "") {
229 $tpl->setVariable("ONCLICK", "onClick=\"$onclick\"");
230 }
231
232 $tpl->setVariable("LINK_NAME", $a_node_id);
233 $tpl->setVariable("TITLE", ilUtil::shortenText(
234 $this->buildTitle($a_option["title"], $a_node_id, $a_option["type"]),
235 $this->textwidth,
236 true
237 ));
238 $tpl->setVariable("DESC", ilUtil::shortenText(
239 $this->buildDescription($a_option["description"], $a_node_id, $a_option["type"]),
240 $this->textwidth,
241 true
242 ));
243 $frame_target = $this->buildFrameTarget($a_option["type"], $a_node_id, $a_option["obj_id"]);
244 if ($frame_target != "") {
245 $tpl->setVariable("TARGET", " target=\"" . $frame_target . "\"");
246 }
247 $tpl->parseCurrentBlock();
248 } else { // output text only
249 $tpl->setCurrentBlock("text");
250 $tpl->setVariable("OBJ_TITLE", ilUtil::shortenText(
251 $this->buildTitle($a_option["title"], $a_node_id, $a_option["type"]),
252 $this->textwidth,
253 true
254 ));
255 $tpl->setVariable("OBJ_DESC", ilUtil::shortenText(
256 $this->buildDescription($a_option["desc"], $a_node_id, $a_option["type"]),
257 $this->textwidth,
258 true
259 ));
260 $tpl->parseCurrentBlock();
261 }
262
263 $tpl->setCurrentBlock("list_item");
264 $tpl->parseCurrentBlock();
265 $tpl->touchBlock("element");
266 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getNodeStyleClass($a_id, $a_type)
get style class for node
buildOnClick($a_node_id, $a_type, $a_title)
get onclick event handling (may be overwritten by derived classes)
createTarget($a_type, $a_node_id, $a_highlighted_subtree=false, $a_append_anch=true)
Creates Get Parameter @access private.
buildTitle($a_title, $a_id, $a_type)
standard implementation for title, may be overwritten by derived classes
buildDescription($a_desc, $a_id, $a_type)
standard implementation for description, may be overwritten by derived classes
getImage($a_name, $a_type="", $a_obj_id="")
get image path
buildFrameTarget($a_type, $a_child=0, $a_obj_id=0)
STATIC, do not use $this inside!
static shortenText( $a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
isClickable($a_type, $a_ref_id=0, $a_obj_id=0)
buildLinkTarget($a_node_id, $a_type)
note: most of this stuff is used by ilCourseContentInterface too

References $lng, ilExplorer\$target, ilExplorer\$tpl, ilExplorer\buildDescription(), buildFormItem(), ilRepositoryExplorer\buildFrameTarget(), buildLinkTarget(), ilExplorer\buildOnClick(), ilExplorer\buildTitle(), ilExplorer\createTarget(), ilRepositoryExplorer\getImage(), ilExplorer\getNodeStyleClass(), isClickable(), and ilUtil\shortenText().

+ Here is the call graph for this function:

◆ getPostVar()

ilWorkspaceExplorer::getPostVar ( )

Definition at line 138 of file class.ilWorkspaceExplorer.php.

References $post_var.

◆ isClickable()

ilWorkspaceExplorer::isClickable (   $a_type,
  $a_ref_id = 0,
  $a_obj_id = 0 
)

Reimplemented from ilRepositoryExplorer.

Definition at line 105 of file class.ilWorkspaceExplorer.php.

106 {
107 if (is_array($this->clickable) && in_array($a_type, $this->clickable) &&
108 $a_ref_id) {
109 return true;
110 }
111 return false;
112 }

Referenced by formatObject().

+ Here is the caller graph for this function:

◆ isItemChecked()

ilWorkspaceExplorer::isItemChecked (   $a_id)

Definition at line 130 of file class.ilWorkspaceExplorer.php.

131 {
132 return in_array($a_id, $this->checked_items) ? true : false;
133 }
return true
Flag indicating whether or not HTTP headers will be sent when outputting captcha image/audio.

References true.

Referenced by buildFormItem().

+ Here is the caller graph for this function:

◆ isVisible()

ilWorkspaceExplorer::isVisible (   $a_ref_id,
  $a_type 
)

Reimplemented from ilRepositoryExplorer.

Definition at line 95 of file class.ilWorkspaceExplorer.php.

96 {
97 return true;
98 }

◆ removeAllFormItemTypes()

ilWorkspaceExplorer::removeAllFormItemTypes ( )

Definition at line 122 of file class.ilWorkspaceExplorer.php.

123 {
124 $this->form_items = array();
125 }

◆ removeFormItemForType()

ilWorkspaceExplorer::removeFormItemForType (   $type)

Definition at line 118 of file class.ilWorkspaceExplorer.php.

119 {
120 $this->form_items[$type] = false;
121 }

References $type.

◆ setCheckedItems()

ilWorkspaceExplorer::setCheckedItems (   $a_checked_items = array())

Definition at line 126 of file class.ilWorkspaceExplorer.php.

127 {
128 $this->checked_items = $a_checked_items;
129 }

◆ setCustomLinkTarget()

ilWorkspaceExplorer::setCustomLinkTarget (   $a_target)

Definition at line 307 of file class.ilWorkspaceExplorer.php.

308 {
309 $this->custom_link_target = $a_target;
310 }

◆ setPostVar()

ilWorkspaceExplorer::setPostVar (   $a_post_var)

Definition at line 134 of file class.ilWorkspaceExplorer.php.

135 {
136 $this->post_var = $a_post_var;
137 }

◆ setTypeClickable()

ilWorkspaceExplorer::setTypeClickable (   $a_type)

Definition at line 302 of file class.ilWorkspaceExplorer.php.

303 {
304 $this->clickable[] = $a_type;
305 }

◆ showChilds()

ilWorkspaceExplorer::showChilds (   $a_ref_id,
  $a_obj_id = 0 
)

Reimplemented from ilRepositoryExplorer.

Definition at line 86 of file class.ilWorkspaceExplorer.php.

87 {
88 if ($a_ref_id == 0 ||
89 $this->access->checkAccess('read', '', $a_ref_id)) {
90 return true;
91 }
92 return false;
93 }

◆ sortNodes()

ilWorkspaceExplorer::sortNodes (   $a_nodes,
  $a_parent_obj_id 
)

sort nodes

@access public

Parameters

return

Reimplemented from ilRepositoryExplorer.

Definition at line 100 of file class.ilWorkspaceExplorer.php.

101 {
102 return $a_nodes;
103 }

Field Documentation

◆ $access

ilWorkspaceExplorer::$access = null

Definition at line 25 of file class.ilWorkspaceExplorer.php.

◆ $checked_items

ilWorkspaceExplorer::$checked_items = array()
private

Definition at line 27 of file class.ilWorkspaceExplorer.php.

◆ $clickable

ilWorkspaceExplorer::$clickable = array()
protected

Definition at line 32 of file class.ilWorkspaceExplorer.php.

◆ $ctrl

ilWorkspaceExplorer::$ctrl = null

Definition at line 24 of file class.ilWorkspaceExplorer.php.

◆ $custom_link_target

ilWorkspaceExplorer::$custom_link_target
protected

Definition at line 33 of file class.ilWorkspaceExplorer.php.

◆ $form_items

ilWorkspaceExplorer::$form_items = array()
private

Definition at line 29 of file class.ilWorkspaceExplorer.php.

◆ $lng

ilWorkspaceExplorer::$lng
protected

Definition at line 17 of file class.ilWorkspaceExplorer.php.

Referenced by formatHeader(), and formatObject().

◆ $output

ilWorkspaceExplorer::$output = ''

Definition at line 23 of file class.ilWorkspaceExplorer.php.

◆ $post_var

ilWorkspaceExplorer::$post_var = ''
private

Definition at line 28 of file class.ilWorkspaceExplorer.php.

Referenced by getPostVar().

◆ $root_id

ilWorkspaceExplorer::$root_id = 0

Definition at line 22 of file class.ilWorkspaceExplorer.php.

Referenced by __construct().

◆ $type

ilWorkspaceExplorer::$type = 0
private

Definition at line 30 of file class.ilWorkspaceExplorer.php.

Referenced by addFormItemForType(), and removeFormItemForType().

◆ SEL_TYPE_CHECK

const ilWorkspaceExplorer::SEL_TYPE_CHECK = 1

Definition at line 19 of file class.ilWorkspaceExplorer.php.

Referenced by buildFormItem().

◆ SEL_TYPE_RADIO

const ilWorkspaceExplorer::SEL_TYPE_RADIO = 2

Definition at line 20 of file class.ilWorkspaceExplorer.php.

Referenced by buildFormItem().


The documentation for this class was generated from the following file: