ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilBookmarkBlockGUI Class Reference

BlockGUI class for Bookmarks block. More...

+ Inheritance diagram for ilBookmarkBlockGUI:
+ Collaboration diagram for ilBookmarkBlockGUI:

Public Member Functions

 __construct ()
 Constructor. More...
 
 executeCommand ()
 execute command More...
 
 getHTML ()
 
 fillDataSection ()
 Fill data section. More...
 
 getPDBookmarkListHTMLTree ()
 get tree bookmark list for personal desktop More...
 
 fillFooter ()
 block footer More...
 
 setFooterLinks ()
 Set footer links. More...
 
 getListRowData ()
 Get list data (for flat list). More...
 
 fillRow ($a_set)
 get flat bookmark list for personal desktop More...
 
 getOverview ()
 Get overview. More...
 
 setPdFlatMode ()
 set current desktop view mode to flat More...
 
 setPdTreeMode ()
 set current desktop view mode to tree More...
 
 setCurrentBookmarkFolder ()
 set current bookmarkfolder on personal desktop More...
 
- Public Member Functions inherited from ilBlockGUI
 __construct ()
 Constructor. More...
 
 addHeaderLink ($a_href, $a_text, $status=true)
 
 getHeaderLinks ()
 
 setData ($a_data)
 Set Data. More...
 
 getData ()
 Get Data. More...
 
 setBigMode ($a_bigmode)
 Set Big Mode. More...
 
 getBigMode ()
 Get Big Mode. More...
 
 setBlockId ($a_block_id=0)
 Set Block Id. More...
 
 getBlockId ()
 Get Block Id. More...
 
 setAvailableDetailLevels ($a_max, $a_min=0)
 Set Available Detail Levels. More...
 
 setCurrentDetailLevel ($a_currentdetaillevel)
 Set Current Detail Level. More...
 
 setGuiObject (&$a_gui_object)
 Set GuiObject. More...
 
 getGuiObject ()
 Get GuiObject. More...
 
 getCurrentDetailLevel ()
 Get Current Detail Level. More...
 
 setTitle ($a_title)
 Set Title. More...
 
 getTitle ()
 Get Title. More...
 
 setImage ($a_image)
 Set Image. More...
 
 getImage ()
 Get Image. More...
 
 setOffset ($a_offset)
 Set Offset. More...
 
 getOffset ()
 Get Offset. More...
 
 correctOffset ()
 
 setLimit ($a_limit)
 Set Limit. More...
 
 getLimit ()
 Get Limit. More...
 
 setEnableEdit ($a_enableedit)
 Set EnableEdit. More...
 
 getEnableEdit ()
 Get EnableEdit. More...
 
 setRepositoryMode ($a_repositorymode)
 Set RepositoryMode. More...
 
 getRepositoryMode ()
 Get RepositoryMode. More...
 
 setFooterInfo ($a_footerinfo, $a_hide_and_icon=false)
 Set Footer Info. More...
 
 getFooterInfo ($a_hide_and_icon=false)
 Get Footer Info. More...
 
 setSubtitle ($a_subtitle)
 Set Subtitle. More...
 
 getSubtitle ()
 Get Subtitle. More...
 
 setRefId ($a_refid)
 Set Ref Id (only used if isRepositoryObject() is true). More...
 
 getRefId ()
 Get Ref Id (only used if isRepositoryObject() is true). More...
 
 setAdminCommands ($a_admincommands)
 Set Administration Commmands. More...
 
 getAdminCommands ()
 Get Administration Commmands. More...
 
 setColSpan ($a_colspan)
 Set Columns Span. More...
 
 getColSpan ()
 Get Columns Span. More...
 
 setEnableDetailRow ($a_enabledetailrow)
 Set EnableDetailRow. More...
 
 getEnableDetailRow ()
 Get EnableDetailRow. More...
 
 setEnableNumInfo ($a_enablenuminfo)
 Set Enable Item Number Info. More...
 
 getEnableNumInfo ()
 Get Enable Item Number Info. More...
 
 setProperties ($a_properties)
 This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties. More...
 
 getProperty ($a_property)
 
 setProperty ($a_property, $a_value)
 
 setRowTemplate ($a_rowtemplatename, $a_rowtemplatedir="")
 Set Row Template Name. More...
 
 getNavParameter ()
 
 getDetailParameter ()
 
 getConfigParameter ()
 
 getMoveParameter ()
 
 getRowTemplateName ()
 Get Row Template Name. More...
 
 getRowTemplateDir ()
 Get Row Template Directory. More...
 
 addBlockCommand ( $a_href, $a_text, $a_target="", $a_img="", $a_right_aligned=false, $a_checked=false, $a_html="")
 Add Block Command. More...
 
 getBlockCommands ()
 Get Block commands. More...
 
 addHeaderCommand ($a_href, $a_text, $a_as_close=false)
 Add Header Block Command. More...
 
 getHeaderCommands ()
 Get Header Block commands. More...
 
 addFooterLink ( $a_text, $a_href="", $a_onclick="", $a_block_id="", $a_top=false, $a_omit_separator=false, $a_checked=false)
 Add a footer text/link. More...
 
 getFooterLinks ()
 Get footer links. More...
 
 clearFooterLinks ()
 Clear footer links. More...
 
 handleDetailLevel ()
 Handle read/write current detail level. More...
 
 getHTML ()
 Handle config status. More...
 
 fillHeaderCommands ()
 Fill header commands block. More...
 
 fillHeaderTitleBlock ()
 Fill header title block (title and. More...
 
 setDataSection ($a_content)
 Call this from overwritten fillDataSection(), if standard row based data is not used. More...
 
 fillDataSection ()
 Standard implementation for row based data. More...
 
 fillRow ($a_set)
 
 fillFooter ()
 
 fillPreviousNext ()
 Fill previous/next row. More...
 
 setPreviousNextLinks ()
 Get previous/next linkbar. More...
 
 fillFooterLinks ($a_top=false, $a_numinfo="")
 Fill footer links. More...
 
 fillDetailRow ()
 Fill Detail Setting Row. More...
 

Static Public Member Functions

static getBlockType ()
 Get block type. More...
 
static isRepositoryObject ()
 Is block used in repository object? More...
 
static getScreenMode ()
 Get Screen Mode for current command. More...
 
- Static Public Member Functions inherited from ilBlockGUI
static getBlockType ()
 
static isRepositoryObject ()
 
static getScreenMode ()
 Get Screen Mode for current command. More...
 

Static Public Attributes

static $block_type = "pdbookm"
 

Additional Inherited Members

- Protected Member Functions inherited from ilBlockGUI
 fillRowColor ($a_placeholder="CSS_ROW")
 
 preloadData (array $data)
 Can be overwritten in subclasses. More...
 
- Protected Attributes inherited from ilBlockGUI
 $data = array()
 
 $colspan = 1
 
 $enablenuminfo = true
 
 $detail_min = 0
 
 $detail_max = 0
 
 $bigmode = false
 
 $footer_links = array()
 
 $block_id = 0
 
 $header_commands = array()
 
 $allow_moving = true
 
 $move = array("left" => false, "right" => false, "up" => false, "down" => false)
 
 $enabledetailrow = true
 
 $header_links = array()
 
 $footerinfo = false
 
 $footerinfo_icon = false
 
 $block_commands = array()
 
 $max_count = false
 
 $close_command = false
 
 $image = false
 
 $property = false
 
 $nav_value = ""
 
 $css_row = ""
 
 $dropdown
 
 $tpl
 
 $main_tpl
 
 $user
 
 $ctrl
 
 $access
 
 $lng
 
 $obj_def
 

Detailed Description

BlockGUI class for Bookmarks block.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

ilBookmarkBlockGUI: ilColumnGUI

Definition at line 16 of file class.ilBookmarkBlockGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilBookmarkBlockGUI::__construct ( )

Constructor.

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

References $_GET, $DIC, ilBlockGUI\$lng, ilUtil\getImagePath(), ilBlockGUI\setAvailableDetailLevels(), ilBlockGUI\setEnableNumInfo(), ilBlockGUI\setImage(), ilBlockGUI\setLimit(), ilBlockGUI\setTitle(), and user().

24  {
25  global $DIC;
26 
27  $this->ctrl = $DIC->ctrl();
28  $this->lng = $DIC->language();
29  $this->user = $DIC->user();
30  $lng = $DIC->language();
31 
32  parent::__construct();
33 
34  $this->setImage(ilUtil::getImagePath("icon_bm.svg"));
35  $this->setTitle($lng->txt("my_bms"));
36  $this->setEnableNumInfo(false);
37  $this->setLimit(99999);
38  $this->setAvailableDetailLevels(3);
39 
40  $this->id = (empty($_GET["bmf_id"]))
41  ? $bmf_id = 1
42  : $_GET["bmf_id"];
43  }
global $DIC
Definition: saml.php:7
$_GET["client_id"]
setEnableNumInfo($a_enablenuminfo)
Set Enable Item Number Info.
user()
Definition: user.php:4
setImage($a_image)
Set Image.
setTitle($a_title)
Set Title.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
setAvailableDetailLevels($a_max, $a_min=0)
Set Available Detail Levels.
setLimit($a_limit)
Set Limit.
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilBookmarkBlockGUI::executeCommand ( )

execute command

Definition at line 81 of file class.ilBookmarkBlockGUI.php.

References ilBlockGUI\$ctrl, and $ilCtrl.

82  {
84 
85  $next_class = $ilCtrl->getNextClass();
86  $cmd = $ilCtrl->getCmd("getHTML");
87 
88  return $this->$cmd();
89  }
global $ilCtrl
Definition: ilias.php:18

◆ fillDataSection()

ilBookmarkBlockGUI::fillDataSection ( )

Fill data section.

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

References $ilUser, ilBlockGUI\$user, ilBookmarkFolder\_getNumberOfObjects(), ilBlockGUI\getCurrentDetailLevel(), getListRowData(), getOverview(), getPDBookmarkListHTMLTree(), ilBlockGUI\setColSpan(), ilBlockGUI\setDataSection(), ilBlockGUI\setEnableDetailRow(), and ilBlockGUI\setRowTemplate().

106  {
108 
109  include_once("./Services/Bookmarks/classes/class.ilBookmarkFolder.php");
111  $this->num_bookmarks = $bm_items["bookmarks"];
112  $this->num_folders = $bm_items["folders"];
113 
114  if ($this->getCurrentDetailLevel() > 1 &&
115  ($this->num_bookmarks > 0 || $this->num_folders > 0)) {
116  if ($ilUser->getPref("il_pd_bkm_mode") == 'tree') {
117  $this->setDataSection($this->getPDBookmarkListHTMLTree());
118  } else {
119  $this->setRowTemplate("tpl.bookmark_pd_list.html", "Services/Bookmarks");
120  $this->getListRowData();
121  $this->setColSpan(2);
122  parent::fillDataSection();
123  }
124  } else {
125  if ($this->num_bookmarks == 0 && $this->num_folders == 0) {
126  $this->setEnableDetailRow(false);
127  }
128  $this->setDataSection($this->getOverview());
129  }
130  }
static _getNumberOfObjects()
Get number of folders and bookmarks for current user.
setDataSection($a_content)
Call this from overwritten fillDataSection(), if standard row based data is not used.
setColSpan($a_colspan)
Set Columns Span.
$ilUser
Definition: imgupload.php:18
getPDBookmarkListHTMLTree()
get tree bookmark list for personal desktop
getListRowData()
Get list data (for flat list).
setRowTemplate($a_rowtemplatename, $a_rowtemplatedir="")
Set Row Template Name.
setEnableDetailRow($a_enabledetailrow)
Set EnableDetailRow.
getCurrentDetailLevel()
Get Current Detail Level.
+ Here is the call graph for this function:

◆ fillFooter()

ilBookmarkBlockGUI::fillFooter ( )

block footer

Definition at line 150 of file class.ilBookmarkBlockGUI.php.

References ilBlockGUI\fillFooterLinks(), ilBlockGUI\getColSpan(), and setFooterLinks().

151  {
152  $this->setFooterLinks();
153  $this->fillFooterLinks();
154  $this->tpl->setVariable("FCOLSPAN", $this->getColSpan());
155  if ($this->tpl->blockExists("block_footer")) {
156  $this->tpl->setCurrentBlock("block_footer");
157  $this->tpl->parseCurrentBlock();
158  }
159  }
setFooterLinks()
Set footer links.
fillFooterLinks($a_top=false, $a_numinfo="")
Fill footer links.
getColSpan()
Get Columns Span.
+ Here is the call graph for this function:

◆ fillRow()

ilBookmarkBlockGUI::fillRow (   $a_set)

get flat bookmark list for personal desktop

Definition at line 277 of file class.ilBookmarkBlockGUI.php.

References $ilUser, ilBlockGUI\$user, ilBlockGUI\getCurrentDetailLevel(), and ilUtil\prepareFormOutput().

278  {
280 
281  $this->tpl->setVariable("IMG_BM", $a_set["img"]);
282  $this->tpl->setVariable("IMG_ALT", $a_set["alt"]);
283  $this->tpl->setVariable("BM_TITLE", $a_set["title"]);
284  $this->tpl->setVariable("BM_LINK", $a_set["link"]);
285  $this->tpl->setVariable("BM_TARGET", ilUtil::prepareFormOutput($a_set["target"]));
286  if (isset($a_set['rel'])) {
287  $this->tpl->setVariable("BM_REL", $a_set['rel']);
288  }
289 
290  if ($this->getCurrentDetailLevel() > 2) {
291  $this->tpl->setVariable("BM_DESCRIPTION", ilUtil::prepareFormOutput($a_set["desc"]));
292  } else {
293  $this->tpl->setVariable("BM_TOOLTIP", ilUtil::prepareFormOutput($a_set["desc"]));
294  }
295  }
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
$ilUser
Definition: imgupload.php:18
getCurrentDetailLevel()
Get Current Detail Level.
+ Here is the call graph for this function:

◆ getBlockType()

static ilBookmarkBlockGUI::getBlockType ( )
static

Get block type.

Returns
string Block type.

Definition at line 50 of file class.ilBookmarkBlockGUI.php.

Referenced by setFooterLinks().

51  {
52  return self::$block_type;
53  }
+ Here is the caller graph for this function:

◆ getHTML()

ilBookmarkBlockGUI::getHTML ( )

Definition at line 91 of file class.ilBookmarkBlockGUI.php.

References array, ilBlockGUI\getCurrentDetailLevel(), and ilBlockGUI\setData().

Referenced by setPdFlatMode(), and setPdTreeMode().

92  {
93  // workaround to show details row
94  $this->setData(array("dummy"));
95  if ($this->getCurrentDetailLevel() == 0) {
96  return "";
97  } else {
98  return parent::getHTML();
99  }
100  }
setData($a_data)
Set Data.
Create styles array
The data for the language used.
getCurrentDetailLevel()
Get Current Detail Level.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getListRowData()

ilBookmarkBlockGUI::getListRowData ( )

Get list data (for flat list).

Definition at line 208 of file class.ilBookmarkBlockGUI.php.

References $_SESSION, ilBlockGUI\$ctrl, ilBlockGUI\$data, $ilCtrl, $ilUser, ilBlockGUI\$lng, ilBlockGUI\$user, ilBookmarkFolder\_getParentId(), ilBookmarkFolder\_lookupTitle(), array, ilUtil\getImagePath(), ilBookmarkFolder\getObjects(), ilBlockGUI\getTitle(), ilBookmarkFolder\isRootFolder(), ilUtil\prepareFormOutput(), ilBlockGUI\setData(), and ilBlockGUI\setTitle().

Referenced by fillDataSection().

209  {
211  $lng = $this->lng;
213 
214  include_once("./Services/Bookmarks/classes/class.ilBookmarkFolder.php");
215 
216  $data = array();
217 
218  $sess_cur_bm_folder = "";
219  if (isset($_SESSION["ilCurBMFolder"])) {
220  $sess_cur_bm_folder = $_SESSION["ilCurBMFolder"];
221  }
222 
223  $bm_items = ilBookmarkFolder::getObjects($sess_cur_bm_folder);
224 
225  if (!ilBookmarkFolder::isRootFolder($sess_cur_bm_folder)
226  && !empty($_SESSION["ilCurBMFolder"])) {
227  $ilCtrl->setParameter(
228  $this,
229  "curBMFolder",
230  ilBookmarkFolder::_getParentId($sess_cur_bm_folder)
231  );
232 
233  $data[] = array(
234  "img" => ilUtil::getImagePath("icon_bmf.svg"),
235  "alt" => $lng->txt("bmf"),
236  "title" => "..",
237  "link" => $ilCtrl->getLinkTarget($this, "setCurrentBookmarkFolder"));
238 
239  $this->setTitle($this->getTitle() . ": " . ilBookmarkFolder::_lookupTitle($sess_cur_bm_folder));
240  }
241 
242  foreach ($bm_items as $bm_item) {
243  switch ($bm_item["type"]) {
244  case "bmf":
245  $ilCtrl->setParameter($this, "curBMFolder", $bm_item["obj_id"]);
246  $data[] = array(
247  "img" => ilUtil::getImagePath("icon_bmf.svg"),
248  "alt" => $lng->txt("bmf"),
249  "title" => ilUtil::prepareFormOutput($bm_item["title"]),
250  "desc" => ilUtil::prepareFormOutput($bm_item["desc"]),
251  "link" => $ilCtrl->getLinkTarget(
252  $this,
253  "setCurrentBookmarkFolder"
254  ),
255  "target" => "");
256  break;
257 
258  case "bm":
259  $data[] = array(
260  "img" => ilUtil::getImagePath("spacer.png"),
261  "alt" => $lng->txt("bm"),
262  "title" => ilUtil::prepareFormOutput($bm_item["title"]),
263  "desc" => ilUtil::prepareFormOutput($bm_item["desc"]),
264  "link" => ilUtil::prepareFormOutput($bm_item["target"]),
265  "rel" => "noopener",
266  "target" => "_blank");
267  break;
268  }
269  }
270 
271  $this->setData($data);
272  }
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
$_SESSION["AccountId"]
static _lookupTitle($a_bmf_id)
lookup bookmark folder title
global $ilCtrl
Definition: ilias.php:18
setTitle($a_title)
Set Title.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
setData($a_data)
Set Data.
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
static getObjects($a_id)
static
getTitle()
Get Title.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOverview()

ilBookmarkBlockGUI::getOverview ( )

Get overview.

Definition at line 300 of file class.ilBookmarkBlockGUI.php.

References ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$lng, and ilBlockGUI\$user.

Referenced by fillDataSection().

301  {
303  $lng = $this->lng;
305 
306  return '<div class="small">' . $this->num_bookmarks . " " . $lng->txt("bm_num_bookmarks") . ", " .
307  $this->num_folders . " " . $lng->txt("bm_num_bookmark_folders") . "</div>";
308  }
global $ilCtrl
Definition: ilias.php:18
$ilUser
Definition: imgupload.php:18
+ Here is the caller graph for this function:

◆ getPDBookmarkListHTMLTree()

ilBookmarkBlockGUI::getPDBookmarkListHTMLTree ( )

get tree bookmark list for personal desktop

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

References ilBlockGUI\$ctrl, $ilCtrl, $ilUser, and ilBlockGUI\$user.

Referenced by fillDataSection().

136  {
139 
140  include_once("./Services/Bookmarks/classes/class.ilBookmarkBlockExplorerGUI.php");
141  $exp = new ilBookmarkBlockExplorerGUI($this, "getPDBookmarkListHTMLTree");
142  if (!$exp->handleCommand()) {
143  return "<div id='tree_div'>" . $exp->getHTML() . "</div>";
144  }
145  }
Bookmark block explorer GUI class.
global $ilCtrl
Definition: ilias.php:18
$ilUser
Definition: imgupload.php:18
+ Here is the caller graph for this function:

◆ getScreenMode()

static ilBookmarkBlockGUI::getScreenMode ( )
static

Get Screen Mode for current command.

Definition at line 69 of file class.ilBookmarkBlockGUI.php.

References $_GET, and IL_SCREEN_SIDE.

70  {
71  switch ($_GET["cmd"]) {
72  default:
73  return IL_SCREEN_SIDE;
74  break;
75  }
76  }
$_GET["client_id"]
const IL_SCREEN_SIDE

◆ isRepositoryObject()

static ilBookmarkBlockGUI::isRepositoryObject ( )
static

Is block used in repository object?

Returns
string Block type.

Definition at line 60 of file class.ilBookmarkBlockGUI.php.

61  {
62  return false;
63  }

◆ setCurrentBookmarkFolder()

ilBookmarkBlockGUI::setCurrentBookmarkFolder ( )

set current bookmarkfolder on personal desktop

Definition at line 347 of file class.ilBookmarkBlockGUI.php.

References $_GET, $_SESSION, ilBlockGUI\$ctrl, and $ilCtrl.

348  {
350 
351  $_SESSION["ilCurBMFolder"] = $_GET["curBMFolder"];
352  $ilCtrl->redirectByClass("ilpersonaldesktopgui", "show");
353  }
$_SESSION["AccountId"]
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18

◆ setFooterLinks()

ilBookmarkBlockGUI::setFooterLinks ( )

Set footer links.

Definition at line 164 of file class.ilBookmarkBlockGUI.php.

References ilBlockGUI\$block_id, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$lng, ilBlockGUI\$user, ilBlockGUI\addFooterLink(), and getBlockType().

Referenced by fillFooter().

165  {
168  $lng = $this->lng;
169 
170  if ($this->num_bookmarks == 0 && $this->num_folders == 0) {
171  return;
172  }
173 
174  // flat
175  $this->addFooterLink(
176  $lng->txt("list"),
177  $ilCtrl->getLinkTarget($this, "setPdFlatMode"),
178  $ilCtrl->getLinkTarget(
179  $this,
180  "setPdFlatMode",
181  "",
182  true
183  ),
184  "block_" . $this->getBlockType() . "_" . $this->block_id,
185  false,
186  false,
187  ($ilUser->getPref("il_pd_bkm_mode") != 'tree')
188  );
189 
190  // as tree
191  $this->addFooterLink(
192  $lng->txt("tree"),
193  $ilCtrl->getLinkTarget(
194  $this,
195  "setPdTreeMode"
196  ),
197  "",
198  "block_" . $this->getBlockType() . "_" . $this->block_id,
199  false,
200  false,
201  ($ilUser->getPref("il_pd_bkm_mode") == 'tree')
202  );
203  }
global $ilCtrl
Definition: ilias.php:18
static getBlockType()
Get block type.
addFooterLink( $a_text, $a_href="", $a_onclick="", $a_block_id="", $a_top=false, $a_omit_separator=false, $a_checked=false)
Add a footer text/link.
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPdFlatMode()

ilBookmarkBlockGUI::setPdFlatMode ( )

set current desktop view mode to flat

Definition at line 313 of file class.ilBookmarkBlockGUI.php.

References ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$user, exit, and getHTML().

314  {
317 
318  $ilUser->writePref("il_pd_bkm_mode", 'flat');
319  if ($ilCtrl->isAsynch()) {
320  echo $this->getHTML();
321  exit;
322  } else {
323  $ilCtrl->redirectByClass("ilpersonaldesktopgui", "show");
324  }
325  }
global $ilCtrl
Definition: ilias.php:18
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

◆ setPdTreeMode()

ilBookmarkBlockGUI::setPdTreeMode ( )

set current desktop view mode to tree

Definition at line 330 of file class.ilBookmarkBlockGUI.php.

References ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$user, exit, and getHTML().

331  {
334 
335  $ilUser->writePref("il_pd_bkm_mode", 'tree');
336  if ($ilCtrl->isAsynch()) {
337  echo $this->getHTML();
338  exit;
339  } else {
340  $ilCtrl->redirectByClass("ilpersonaldesktopgui", "show");
341  }
342  }
global $ilCtrl
Definition: ilias.php:18
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

Field Documentation

◆ $block_type

ilBookmarkBlockGUI::$block_type = "pdbookm"
static

Definition at line 18 of file class.ilBookmarkBlockGUI.php.


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