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

Public Member Functions

 __construct ($a_type, $a_target, $a_session_variable)
 Constructor @access public. More...
 
 isClickable ($a_type, $a_ref_id=0, $a_obj_id=0)
 
 addFormItemForType ($type)
 
 removeFormItemForType ($type)
 
 setCheckedItems ($a_checked_items=array())
 
 isItemChecked ($a_id)
 
 setPostVar ($a_post_var)
 
 getPostVar ()
 
 setRequiredFormItemPermission ($a_form_item_permission)
 Set required perission for form item visibility. More...
 
 getRequiredFormItemPermission ()
 Get required permission. More...
 
 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...
 
 showChilds ($a_ref_id, $a_obj_id=0)
 
 isVisible ($a_ref_id, $a_type)
 
- 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
 
- 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
 
 $error
 
 $access
 
- 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()
 
 $form_item_permission = 'read'
 
 $type = 0
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilPasteIntoMultipleItemsExplorer::__construct (   $a_type,
  $a_target,
  $a_session_variable 
)

Constructor @access public.

Parameters
string$a_targetscriptname
string$a_session_variablesession_variable

Definition at line 48 of file class.ilPasteIntoMultipleItemsExplorer.php.

49 {
50 global $DIC;
51
52 $this->lng = $DIC->language();
53 $this->error = $DIC["ilErr"];
54 $this->access = $DIC->access();
55 $tree = $DIC->repositoryTree();
56 $ilCtrl = $DIC->ctrl();
57
58 $this->setId("cont_paste_explorer");
59
60 $this->ctrl = $ilCtrl;
61 $this->type = $a_type;
62
63 parent::__construct($a_target);
64 $this->tree = $tree;
65 $this->root_id = $this->tree->readRootId();
66 $this->order_column = 'title';
67 $this->setSessionExpandVariable($a_session_variable);
68
69 // reset filter
70 $this->filter = array();
71
72 $this->addFilter('root');
73 $this->addFilter('crs');
74 $this->addFilter('grp');
75 $this->addFilter('cat');
76 $this->addFilter('fold');
77 $this->addFilter('lso');
78
79 $this->addFormItemForType('root');
80 $this->addFormItemForType('crs');
81 $this->addFormItemForType('grp');
82 $this->addFormItemForType('cat');
83 $this->addFormItemForType('fold');
84 $this->addFormItemForType('lso');
85
86 $this->setFiltered(true);
88 }
const IL_FM_POSITIVE
error($a_errmsg)
set error message @access public
setId($a_val)
Set id.
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
filter()
Definition: filter.php:2
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $DIC, ilExplorer\$tree, ILIAS\GlobalScreen\Provider\__construct(), ilExplorer\addFilter(), addFormItemForType(), error(), filter(), IL_FM_POSITIVE, ilExplorer\setFiltered(), ilExplorer\setFilterMode(), ilExplorer\setId(), and ilExplorer\setSessionExpandVariable().

+ Here is the call graph for this function:

Member Function Documentation

◆ addFormItemForType()

ilPasteIntoMultipleItemsExplorer::addFormItemForType (   $type)

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

96 {
97 $this->form_items[$type] = true;
98 }

References $type.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ buildFormItem()

ilPasteIntoMultipleItemsExplorer::buildFormItem (   $a_node_id,
  $a_type 
)

Definition at line 140 of file class.ilPasteIntoMultipleItemsExplorer.php.

141 {
143
144 // permission check
145 if (!$access->checkAccess($this->getRequiredFormItemPermission(), '', $a_node_id)) {
146 return '';
147 }
148
149 if (
150 !array_key_exists($a_type, $this->form_items) ||
151 !$this->form_items[$a_type]
152 ) {
153 return '';
154 }
155
156 $disabled = false;
157 if (is_array($_SESSION["clipboard"]["ref_ids"])) {
158 $disabled = in_array($a_node_id, $_SESSION["clipboard"]["ref_ids"]);
159 } elseif ((int) $_SESSION["clipboard"]["ref_ids"]) {
160 $disabled = $a_node_id == $_SESSION["clipboard"]["ref_ids"];
161 } elseif ($_SESSION["clipboard"]["cmd"] == 'copy' && $a_node_id == $_SESSION["clipboard"]["parent"]) {
162 $disabled = true;
163 }
164
165 switch ($this->type) {
167 return ilUtil::formCheckbox((int) $this->isItemChecked($a_node_id), $this->post_var, $a_node_id, $disabled);
168 break;
169
171 return ilUtil::formRadioButton((int) $this->isItemChecked($a_node_id), $this->post_var, $a_node_id, '', $disabled);
172 break;
173 }
174 }
$_SESSION["AccountId"]
static formRadioButton($checked, $varname, $value, $onclick=null, $disabled=false)
??? @access public
static formCheckbox($checked, $varname, $value, $disabled=false)
??? @access public

References $_SESSION, $access, 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:

◆ formatHeader()

ilPasteIntoMultipleItemsExplorer::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 294 of file class.ilPasteIntoMultipleItemsExplorer.php.

295 {
298
299 // custom icons
300 $path = ilObject::_getIcon($a_obj_id, "tiny", "root");
301
302
303 $tpl->setCurrentBlock("icon");
304 $nd = $tree->getNodeData(ROOT_FOLDER_ID);
305 $title = $nd["title"];
306 if ($title == "ILIAS") {
307 $title = $lng->txt("repository");
308 }
309
310 $tpl->setVariable("ICON_IMAGE", $path);
311 $tpl->setVariable("TXT_ALT_IMG", $title);
312 $tpl->parseCurrentBlock();
313
314 if (strlen($formItem = $this->buildFormItem($a_obj_id, $a_option['type']))) {
315 $tpl->setCurrentBlock('check');
316 $tpl->setVariable('OBJ_CHECK', $formItem);
317 $tpl->parseCurrentBlock();
318 }
319
320 $tpl->setVariable('OBJ_TITLE', $title);
321 }
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
const ROOT_FOLDER_ID
Definition: constants.php:30
$nd
Definition: error.php:12

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

+ Here is the call graph for this function:

◆ formatObject()

ilPasteIntoMultipleItemsExplorer::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 176 of file class.ilPasteIntoMultipleItemsExplorer.php.

177 {
180
181 if (!isset($a_node_id) or !is_array($a_option)) {
182 $ilErr->raiseError(get_class($this) . "::formatObject(): Missing parameter or wrong datatype! " .
183 "node_id: " . $a_node_id . " options:" . var_dump($a_option), $ilErr->WARNING);
184 }
185
186 $pic = false;
187 foreach ($a_option["tab"] as $picture) {
188 if ($picture == 'plus') {
189 $tpl->setCurrentBlock("expander");
190 $tpl->setVariable("EXP_DESC", $lng->txt("expand"));
191 $target = $this->createTarget('+', $a_node_id);
192 $tpl->setVariable("LINK_NAME", $a_node_id);
193 $tpl->setVariable("LINK_TARGET_EXPANDER", $target);
194 $tpl->setVariable("IMGPATH", $this->getImage("browser/plus.png"));
195 $tpl->parseCurrentBlock();
196 $pic = true;
197 }
198
199 if ($picture == 'minus' && $this->show_minus) {
200 $tpl->setCurrentBlock("expander");
201 $tpl->setVariable("EXP_DESC", $lng->txt("collapse"));
202 $target = $this->createTarget('-', $a_node_id);
203 $tpl->setVariable("LINK_NAME", $a_node_id);
204 $tpl->setVariable("LINK_TARGET_EXPANDER", $target);
205 $tpl->setVariable("IMGPATH", $this->getImage("browser/minus.png"));
206 $tpl->parseCurrentBlock();
207 $pic = true;
208 }
209 }
210
211 if (!$pic) {
212 $tpl->setCurrentBlock("blank");
213 $tpl->setVariable("BLANK_PATH", $this->getImage("browser/blank.png"));
214 $tpl->parseCurrentBlock();
215 }
216
217 if ($this->output_icons) {
218 $tpl->setCurrentBlock("icon");
219
220 $path = ilObject::_getIcon($a_obj_id, "tiny", $a_option["type"]);
221 $tpl->setVariable("ICON_IMAGE", $path);
222
223 $tpl->setVariable("TARGET_ID", "iconid_" . $a_node_id);
224 $this->iconList[] = "iconid_" . $a_node_id;
225 $tpl->setVariable("TXT_ALT_IMG", $lng->txt($a_option["desc"]));
226 $tpl->parseCurrentBlock();
227 }
228
229 if (strlen($formItem = $this->buildFormItem($a_node_id, $a_option['type']))) {
230 $tpl->setCurrentBlock('check');
231 $tpl->setVariable('OBJ_CHECK', $formItem);
232 $tpl->parseCurrentBlock();
233 }
234
235 if ($this->isClickable($a_option["type"], $a_node_id, $a_obj_id)) { // output link
236 $tpl->setCurrentBlock("link");
237 //$target = (strpos($this->target, "?") === false) ?
238 // $this->target."?" : $this->target."&";
239 //$tpl->setVariable("LINK_TARGET", $target.$this->target_get."=".$a_node_id.$this->params_get);
240 $tpl->setVariable("LINK_TARGET", $this->buildLinkTarget($a_node_id, $a_option["type"]));
241
242 $style_class = $this->getNodeStyleClass($a_node_id, $a_option["type"]);
243
244 if ($style_class != "") {
245 $tpl->setVariable("A_CLASS", ' class="' . $style_class . '" ');
246 }
247
248 if (($onclick = $this->buildOnClick($a_node_id, $a_option["type"], $a_option["title"])) != "") {
249 $tpl->setVariable("ONCLICK", "onClick=\"$onclick\"");
250 }
251
252 $tpl->setVariable("LINK_NAME", $a_node_id);
253 $tpl->setVariable("TITLE", $this->buildTitle($a_option["title"], $a_node_id, $a_option["type"]));
254 $tpl->setVariable("DESC", ilUtil::shortenText(
255 $this->buildDescription($a_option["description"], $a_node_id, $a_option["type"]),
256 $this->textwidth,
257 true
258 ));
259 $frame_target = $this->buildFrameTarget($a_option["type"], $a_node_id, $a_option["obj_id"]);
260 if ($frame_target != "") {
261 $tpl->setVariable("TARGET", " target=\"" . $frame_target . "\"");
262 }
263 $tpl->parseCurrentBlock();
264 } else { // output text only
265 $obj_title = $this->buildTitle($a_option["title"], $a_node_id, $a_option["type"]);
266
267 // highlight current node
268 if ($a_node_id == $this->highlighted) {
269 $obj_title = "<span class=\"ilHighlighted\">" . $obj_title . "</span>";
270 }
271
272 $tpl->setCurrentBlock("text");
273 $tpl->setVariable("OBJ_TITLE", $obj_title);
274 $tpl->setVariable("OBJ_DESC", ilUtil::shortenText(
275 $this->buildDescription($a_option["desc"], $a_node_id, $a_option["type"]),
276 $this->textwidth,
277 true
278 ));
279 $tpl->parseCurrentBlock();
280 }
281
282 $tpl->setCurrentBlock("list_item");
283 $tpl->parseCurrentBlock();
284 $tpl->touchBlock("element");
285 }
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
buildLinkTarget($a_node_id, $a_type)
note: most of this stuff is used by ilCourseContentInterface too
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.
$ilErr
Definition: raiseError.php:18

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

+ Here is the call graph for this function:

◆ getPostVar()

ilPasteIntoMultipleItemsExplorer::getPostVar ( )

◆ getRequiredFormItemPermission()

ilPasteIntoMultipleItemsExplorer::getRequiredFormItemPermission ( )

Get required permission.

Returns
string

Definition at line 135 of file class.ilPasteIntoMultipleItemsExplorer.php.

References $form_item_permission.

◆ isClickable()

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

Reimplemented from ilRepositoryExplorer.

Definition at line 90 of file class.ilPasteIntoMultipleItemsExplorer.php.

91 {
92 return false;
93 }

Referenced by formatObject().

+ Here is the caller graph for this function:

◆ isItemChecked()

ilPasteIntoMultipleItemsExplorer::isItemChecked (   $a_id)

Definition at line 107 of file class.ilPasteIntoMultipleItemsExplorer.php.

108 {
109 return in_array($a_id, $this->checked_items) ? true : false;
110 }
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()

ilPasteIntoMultipleItemsExplorer::isVisible (   $a_ref_id,
  $a_type 
)

Reimplemented from ilRepositoryExplorer.

Definition at line 338 of file class.ilPasteIntoMultipleItemsExplorer.php.

339 {
340 $ilAccess = $this->access;
341
342 if (!$ilAccess->checkAccess('visible', '', $a_ref_id)) {
343 return false;
344 }
345
346 return true;
347 }

References $access.

◆ removeFormItemForType()

ilPasteIntoMultipleItemsExplorer::removeFormItemForType (   $type)

Definition at line 99 of file class.ilPasteIntoMultipleItemsExplorer.php.

100 {
101 $this->form_items[$type] = false;
102 }

References $type.

◆ setCheckedItems()

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

Definition at line 103 of file class.ilPasteIntoMultipleItemsExplorer.php.

104 {
105 $this->checked_items = $a_checked_items;
106 }

◆ setPostVar()

ilPasteIntoMultipleItemsExplorer::setPostVar (   $a_post_var)

Definition at line 111 of file class.ilPasteIntoMultipleItemsExplorer.php.

112 {
113 $this->post_var = $a_post_var;
114 }

◆ setRequiredFormItemPermission()

ilPasteIntoMultipleItemsExplorer::setRequiredFormItemPermission (   $a_form_item_permission)

Set required perission for form item visibility.

Parameters
type$a_node_id
type$a_type
Returns
string

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

127 {
128 $this->form_item_permission = $a_form_item_permission;
129 }

◆ showChilds()

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

Reimplemented from ilRepositoryExplorer.

Definition at line 323 of file class.ilPasteIntoMultipleItemsExplorer.php.

324 {
325 $ilAccess = $this->access;
326
327 if ($a_ref_id == 0) {
328 return true;
329 }
330 // #11778 - ilAccessHandler::doConditionCheck()
331 if ($ilAccess->checkAccess("read", "", $a_ref_id)) {
332 return true;
333 } else {
334 return false;
335 }
336 }

References $access.

Field Documentation

◆ $access

ilPasteIntoMultipleItemsExplorer::$access
protected

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

Referenced by buildFormItem(), isVisible(), and showChilds().

◆ $checked_items

ilPasteIntoMultipleItemsExplorer::$checked_items = array()
private

Definition at line 36 of file class.ilPasteIntoMultipleItemsExplorer.php.

◆ $ctrl

ilPasteIntoMultipleItemsExplorer::$ctrl = null

Definition at line 34 of file class.ilPasteIntoMultipleItemsExplorer.php.

◆ $error

ilPasteIntoMultipleItemsExplorer::$error
protected

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

Referenced by formatObject().

◆ $form_item_permission

ilPasteIntoMultipleItemsExplorer::$form_item_permission = 'read'
private

◆ $form_items

ilPasteIntoMultipleItemsExplorer::$form_items = array()
private

Definition at line 38 of file class.ilPasteIntoMultipleItemsExplorer.php.

◆ $lng

ilPasteIntoMultipleItemsExplorer::$lng
protected

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

Referenced by formatHeader(), and formatObject().

◆ $output

ilPasteIntoMultipleItemsExplorer::$output = ''

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

◆ $post_var

ilPasteIntoMultipleItemsExplorer::$post_var = ''
private

Definition at line 37 of file class.ilPasteIntoMultipleItemsExplorer.php.

Referenced by getPostVar().

◆ $root_id

ilPasteIntoMultipleItemsExplorer::$root_id = 0

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

◆ $type

ilPasteIntoMultipleItemsExplorer::$type = 0
private

◆ SEL_TYPE_CHECK

const ilPasteIntoMultipleItemsExplorer::SEL_TYPE_CHECK = 1

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

Referenced by buildFormItem().

◆ SEL_TYPE_RADIO

const ilPasteIntoMultipleItemsExplorer::SEL_TYPE_RADIO = 2

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