ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilBlockGUI Class Reference

This class represents a block method of a block. More...

+ Inheritance diagram for ilBlockGUI:
+ Collaboration diagram for ilBlockGUI:

Public Member Functions

 getBlockType ()
 
 __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 getScreenMode ()
 Get Screen Mode for current command. More...
 

Protected Member Functions

 isRepositoryObject ()
 Returns whether block has a corresponding repository object. More...
 
 fillRowColor ($a_placeholder="CSS_ROW")
 
 preloadData (array $data)
 Can be overwritten in subclasses. More...
 

Protected Attributes

 $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

This class represents a block method of a block.

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

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

Constructor & Destructor Documentation

◆ __construct()

ilBlockGUI::__construct ( )

Constructor.

Parameters

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

References $DIC, ilYuiUtil\initConnection(), setLimit(), and user().

Referenced by ilPDNewsBlockGUI\__construct().

92  {
93  global $DIC;
94 
95  $this->user = $DIC->user();
96  $this->ctrl = $DIC->ctrl();
97  $this->access = $DIC->access();
98  $this->lng = $DIC->language();
99  $this->main_tpl = $DIC["tpl"];
100  $this->obj_def = $DIC["objDefinition"];
101 
102  include_once("./Services/YUI/classes/class.ilYuiUtil.php");
104  $this->main_tpl->addJavaScript("./Services/Block/js/ilblockcallback.js");
105 
106  $this->setLimit($this->user->getPref("hits_per_page"));
107  }
global $DIC
Definition: saml.php:7
static initConnection(ilTemplate $a_main_tpl=null)
Init YUI Connection module.
user()
Definition: user.php:4
setLimit($a_limit)
Set Limit.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Function Documentation

◆ addBlockCommand()

ilBlockGUI::addBlockCommand (   $a_href,
  $a_text,
  $a_target = "",
  $a_img = "",
  $a_right_aligned = false,
  $a_checked = false,
  $a_html = "" 
)

Add Block Command.

Parameters
string$a_hrefcommand link target
string$a_texttext

Definition at line 589 of file class.ilBlockGUI.php.

Referenced by ilCalendarSelectionBlockGUI\__construct(), ilCalendarBlockGUI\addSubscriptionBlockCommand(), ilWikiImportantPagesBlockGUI\getHTML(), ilPDPortfolioBlockGUI\getHTML(), ilExternalFeedBlockGUI\getHTML(), ilPDExternalFeedBlockGUI\getHTML(), ilPDNewsBlockGUI\getHTML(), ilNewsForContextBlockGUI\getHTML(), ilPollBlockGUI\getHTML(), ilCalendarBlockGUI\getHTML(), and getHTML().

597  {
598  return $this->block_commands[] =
599  array("href" => $a_href,
600  "text" => $a_text, "target" => $a_target, "img" => $a_img,
601  "right" => $a_right_aligned, "checked" => $a_checked, "html" => $a_html);
602  }
+ Here is the caller graph for this function:

◆ addFooterLink()

ilBlockGUI::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.

Definition at line 644 of file class.ilBlockGUI.php.

Referenced by ilBookmarkBlockGUI\setFooterLinks(), ilPDSelectedItemsBlockGUI\setFooterLinks(), ilCalendarBlockGUI\setFooterLinks(), setPreviousNextLinks(), and ilNewsForContextBlockGUI\showViewFooter().

652  {
653  $this->footer_links[] = array(
654  "text" => $a_text,
655  "href" => $a_href,
656  "onclick" => $a_onclick,
657  "block_id" => $a_block_id,
658  "top" => $a_top,
659  "omit_separator" => $a_omit_separator,
660  "checked" => $a_checked);
661  }
+ Here is the caller graph for this function:

◆ addHeaderCommand()

ilBlockGUI::addHeaderCommand (   $a_href,
  $a_text,
  $a_as_close = false 
)

Add Header Block Command.

Parameters
string$a_hrefcommand link target
string$a_texttext

Definition at line 620 of file class.ilBlockGUI.php.

621  {
622  if ($a_as_close) {
623  $this->close_command = $a_href;
624  } else {
625  $this->header_commands[] =
626  array("href" => $a_href,
627  "text" => $a_text);
628  }
629  }

◆ addHeaderLink()

ilBlockGUI::addHeaderLink (   $a_href,
  $a_text,
  $status = true 
)

Definition at line 109 of file class.ilBlockGUI.php.

110  {
111  $this->header_links[] =
112  array('href' => $a_href, 'text' => $a_text, 'status' => (bool) $status);
113  }

◆ clearFooterLinks()

ilBlockGUI::clearFooterLinks ( )

Clear footer links.

Definition at line 674 of file class.ilBlockGUI.php.

Referenced by ilNewsForContextBlockGUI\showViewFooter().

675  {
676  $this->footer_links = array();
677  }
+ Here is the caller graph for this function:

◆ correctOffset()

ilBlockGUI::correctOffset ( )

Definition at line 295 of file class.ilBlockGUI.php.

References setOffset().

Referenced by fillDataSection().

296  {
297  if (!($this->offset < $this->max_count)) {
298  $this->setOffset(0);
299  }
300  }
setOffset($a_offset)
Set Offset.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillDataSection()

ilBlockGUI::fillDataSection ( )

Standard implementation for row based data.

Overwrite this and call setContent for other data.

Definition at line 1086 of file class.ilBlockGUI.php.

References $_GET, $_POST, $_SESSION, $data, $nav_value, correctOffset(), fillRow(), fillRowColor(), getData(), getLimit(), getNavParameter(), getOffset(), getRowTemplateDir(), getRowTemplateName(), preloadData(), and setOffset().

Referenced by ilCalendarBlockGUI\fillDataSection(), and getHTML().

1087  {
1088  $this->nav_value = (isset($_POST[$this->getNavParameter()]) && $_POST[$this->getNavParameter()] != "")
1089  ? $_POST[$this->getNavParameter()]
1090  : (isset($_GET[$this->getNavParameter()]) ? $_GET[$this->getNavParameter()] : $this->nav_value);
1091  $this->nav_value = ($this->nav_value == "" && isset($_SESSION[$this->getNavParameter()]))
1092  ? $_SESSION[$this->getNavParameter()]
1093  : $this->nav_value;
1094 
1096 
1097  $nav = explode(":", $this->nav_value);
1098  if (isset($nav[2])) {
1099  $this->setOffset($nav[2]);
1100  } else {
1101  $this->setOffset(0);
1102  }
1103 
1104  // data
1105  $this->tpl->addBlockFile(
1106  "BLOCK_ROW",
1107  "block_row",
1108  $this->getRowTemplateName(),
1109  $this->getRowTemplateDir()
1110  );
1111 
1112  $data = $this->getData();
1113  $this->max_count = count($data);
1114  $this->correctOffset();
1115  $data = array_slice($data, $this->getOffset(), $this->getLimit());
1116 
1117  $this->preloadData($data);
1118 
1119  foreach ($data as $record) {
1120  $this->tpl->setCurrentBlock("block_row");
1121  $this->fillRowColor();
1122  $this->fillRow($record);
1123  $this->tpl->setCurrentBlock("block_row");
1124  $this->tpl->parseCurrentBlock();
1125  }
1126  }
getRowTemplateDir()
Get Row Template Directory.
$_SESSION["AccountId"]
$_GET["client_id"]
getLimit()
Get Limit.
fillRowColor($a_placeholder="CSS_ROW")
preloadData(array $data)
Can be overwritten in subclasses.
setOffset($a_offset)
Set Offset.
getOffset()
Get Offset.
getData()
Get Data.
getRowTemplateName()
Get Row Template Name.
$_POST["username"]
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillDetailRow()

ilBlockGUI::fillDetailRow ( )

Fill Detail Setting Row.

Definition at line 1368 of file class.ilBlockGUI.php.

References $block_id, $ctrl, $detail_min, $end, $i, $ilCtrl, $lng, $start, $text, $url, getBlockId(), getBlockType(), getCurrentDetailLevel(), getDetailParameter(), getFooterInfo(), and ilUtil\getImagePath().

Referenced by getHTML().

1369  {
1370  $ilCtrl = $this->ctrl;
1371  $lng = $this->lng;
1372 
1373  if ($this->enabledetailrow == false) {
1374  return;
1375  }
1376 
1377  $start = ($this->detail_min < 1)
1378  ? $start = 1
1379  : $this->detail_min;
1380 
1381  $end = ($this->detail_max < $this->detail_min)
1382  ? $this->detail_min
1383  : $this->detail_max;
1384 
1385  $settings = array();
1386  for ($i = $start; $i <= $end; $i++) {
1387  $settings[] = $i;
1388  }
1389 
1390  if ($end > $start) {
1391  foreach ($settings as $i) {
1392  if (($i > $start && $i > 1)) {
1393  //$this->tpl->touchBlock("det_delim");
1394  //$this->tpl->touchBlock("det_item");
1395  }
1396  // if ($i != $this->getCurrentDetailLevel())
1397  // {
1398  $ilCtrl->setParameterByClass(
1399  "ilcolumngui",
1400  $this->getDetailParameter(),
1401  $i
1402  );
1403 
1404  $onclick = $onclick_id = "";
1405 
1406  // ajax link
1407  if ($i > 0) {
1408  $ilCtrl->setParameterByClass(
1409  "ilcolumngui",
1410  "block_id",
1411  "block_" . $this->getBlockType() . "_" . $this->block_id
1412  );
1413  $onclick = $ilCtrl->getLinkTargetByClass(
1414  "ilcolumngui",
1415  "updateBlock",
1416  "",
1417  true
1418  );
1419  $onclick_id = "block_" . $this->getBlockType() . "_" . $this->block_id;
1420  $ilCtrl->setParameterByClass(
1421  "ilcolumngui",
1422  "block_id",
1423  ""
1424  );
1425  }
1426 
1427  // normal link
1428  //$icon = ilUtil::getImagePath("details".$i.".svg");
1429  $text = $lng->txt("details") . " " . $i;
1430  $url = $ilCtrl->getLinkTargetByClass("ilcolumngui", "");
1431 
1432  if ($onclick) {
1433  $onclick = "ilBlockJSHandler('" . $onclick_id . "','" . $onclick . "')";
1434  }
1435 
1436  $checked = ($i == $this->getCurrentDetailLevel());
1437  $this->dropdown[] = array("text" => $text,
1438  "image" => $icon,
1439  "href" => $url,
1440  "onclick" => $onclick,
1441  "checked" => $checked);
1442  // }
1443  }
1444 
1445  // info + icon in detail row
1446  if ($this->getFooterInfo(true) != "") {
1447  $this->tpl->setCurrentBlock("det_info");
1448  $this->tpl->setVariable("INFO_TEXT", $this->getFooterInfo(true));
1449  $this->tpl->setVariable("ALT_DET_INFO", $lng->txt("info_short"));
1450  $this->tpl->setVariable("DI_BLOCK_ID", $this->getBlockType() . "_" . $this->getBlockId());
1451  $this->tpl->setVariable("IMG_DET_INFO", ilUtil::getImagePath("icon_info.svg"));
1452  $this->tpl->parseCurrentBlock();
1453  }
1454 
1455  /*
1456  $this->tpl->setCurrentBlock("detail_setting");
1457  $this->tpl->setVariable("TXT_DETAILS", $lng->txt("details"));
1458  $this->tpl->setVariable("DCOLSPAN", $this->getColSpan());
1459  $this->tpl->parseCurrentBlock();
1460  */
1461 
1462  $ilCtrl->setParameterByClass(
1463  "ilcolumngui",
1464  $this->getDetailParameter(),
1465  ""
1466  );
1467  }
1468  }
global $ilCtrl
Definition: ilias.php:18
$start
Definition: bench.php:8
getFooterInfo($a_hide_and_icon=false)
Get Footer Info.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
$text
Definition: errorreport.php:18
getBlockId()
Get Block Id.
$i
Definition: disco.tpl.php:19
$url
getCurrentDetailLevel()
Get Current Detail Level.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillFooter()

ilBlockGUI::fillFooter ( )

Definition at line 1135 of file class.ilBlockGUI.php.

Referenced by getHTML().

1136  {
1137  }
+ Here is the caller graph for this function:

◆ fillFooterLinks()

ilBlockGUI::fillFooterLinks (   $a_top = false,
  $a_numinfo = "" 
)

Fill footer links.

Returns
array linkbar or false on error

Definition at line 1283 of file class.ilBlockGUI.php.

References getFooterLinks().

Referenced by ilPDContentBlockGUI\fillFooter(), ilBookmarkBlockGUI\fillFooter(), ilPDSelectedItemsBlockGUI\fillFooter(), ilPDTaggingBlockGUI\fillFooter(), ilCalendarBlockGUI\fillFooter(), fillPreviousNext(), and ilNewsForContextBlockGUI\showViewFooter().

1284  {
1285  $first = true;
1286  $flinks = $this->getFooterLinks();
1287 
1288  $prefix = ($a_top) ? "top" : "foot";
1289 
1290  $has_link = false;
1291 
1292  $omit_separator = false;
1293  foreach ($flinks as $flink) {
1294  if ($flink["top"] != $a_top) {
1295  continue;
1296  }
1297 
1298  if (!$a_top) {
1299  if ($flink["onclick"]) {
1300  $flink["onclick"] = "ilBlockJSHandler('" . $flink["block_id"] .
1301  "','" . $flink["onclick"] . "')";
1302  }
1303  $this->dropdown[] = $flink;
1304  continue;
1305  }
1306 
1307  $has_link = true;
1308 
1309  if (!$first && !$omit_separator) {
1310  $this->tpl->touchBlock($prefix . "_delim");
1311  $this->tpl->touchBlock($prefix . "_item");
1312  }
1313 
1314  // ajax link
1315  if ($flink["onclick"] != "") {
1316  $this->tpl->setCurrentBlock($prefix . "_onclick");
1317  $this->tpl->setVariable(
1318  "OC_BLOCK_ID",
1319  $flink["block_id"]
1320  );
1321  $this->tpl->setVariable(
1322  "OC_HREF",
1323  $flink["onclick"]
1324  );
1325  $this->tpl->parseCurrentBlock();
1326  }
1327 
1328  // normal link
1329  if ($flink["href"] != "") {
1330  // normal link
1331  $this->tpl->setCurrentBlock($prefix . "_link");
1332  $this->tpl->setVariable(
1333  "FHREF",
1334  $flink["href"]
1335  );
1336  $this->tpl->setVariable("FLINK", $flink["text"]);
1337  $this->tpl->parseCurrentBlock();
1338  $this->tpl->touchBlock($prefix . "_item");
1339  } else {
1340  $this->tpl->setCurrentBlock($prefix . "_text");
1341  $this->tpl->setVariable("FTEXT", $flink["text"]);
1342  $this->tpl->parseCurrentBlock();
1343  $this->tpl->touchBlock($prefix . "_item");
1344  }
1345 
1346  $first = false;
1347  $omit_separator = $flink["omit_separator"];
1348  }
1349 
1350  if ($a_numinfo != "" && $has_link) {
1351  $this->tpl->setVariable("NUMINFO", $a_numinfo);
1352  $first = false;
1353  }
1354 
1355  /*
1356  if (!$first)
1357  {
1358  $this->tpl->setVariable("PCOLSPAN", $this->getColSpan());
1359  $this->tpl->setCurrentBlock($prefix."_row");
1360  $this->tpl->parseCurrentBlock();
1361  }
1362  */
1363  }
getFooterLinks()
Get footer links.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillHeaderCommands()

ilBlockGUI::fillHeaderCommands ( )

Fill header commands block.

Definition at line 945 of file class.ilBlockGUI.php.

References $close_command, $ctrl, $dropdown, $ilCtrl, $img, $lng, $url, getBlockType(), getDetailParameter(), getHeaderCommands(), ilUtil\getImagePath(), getRepositoryMode(), ilAdvancedSelectionListGUI\ICON_CONFIG, and ilAdvancedSelectionListGUI\STYLE_LINK_BUTTON.

Referenced by getHTML().

946  {
947  $lng = $this->lng;
949 
950 
951  // header commands
952  if (count($this->getHeaderCommands()) > 0 ||
953  ($this->detail_max > $this->detail_min && $this->detail_min == 0) ||
954  $this->close_command != "") {
955  foreach ($this->getHeaderCommands() as $command) {
956  $this->tpl->setCurrentBlock("header_command");
957  $this->tpl->setVariable("HREF_HCOMM", $command["href"]);
958  $this->tpl->setVariable("TXT_HCOMM", $command["text"]);
959  $this->tpl->parseCurrentBlock();
960  }
961 
962  // close button
963  if (($this->detail_max > $this->detail_min && $this->detail_min == 0 &&
964  !$this->getRepositoryMode())
965  ||
966  $this->close_command != "") {
967  $alt = $lng->txt("hide");
968  if ($this->close_command != "") {
970  } else {
971  $ilCtrl->setParameterByClass(
972  "ilcolumngui",
973  $this->getDetailParameter(),
974  "0"
975  );
976  $url = $ilCtrl->getLinkTargetByClass("ilcolumngui", "");
977  $ilCtrl->setParameterByClass(
978  "ilcolumngui",
979  $this->getDetailParameter(),
980  ""
981  );
982  }
983 
984  $this->dropdown[] = array("text" => $alt,
985  "image" => $img,
986  "href" => $url);
987  }
988 
989  $this->tpl->setCurrentBlock("header_commands");
990  $this->tpl->parseCurrentBlock();
991  }
992 
993  // adv selection gui
994  include_once "Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php";
996  $dropdown->setUseImages(true);
999  $dropdown->setId("block_dd_" . $this->getBlockType() . "_" . $this->block_id);
1000  foreach ($this->dropdown as $item) {
1001  if ($item["href"] || $item["onclick"]) {
1002  if ($item["checked"]) {
1003  $item["image"] = ilUtil::getImagePath("icon_checked.svg");
1004  }
1005  $dropdown->addItem(
1006  $item["text"],
1007  "",
1008  $item["href"],
1009  $item["image"],
1010  $item["text"],
1011  "",
1012  "",
1013  false,
1014  $item["onclick"]
1015  );
1016  }
1017  }
1018  $dropdown = $dropdown->getHTML();
1019  $this->tpl->setCurrentBlock("header_dropdown");
1020  $this->tpl->setVariable("ADV_DROPDOWN", $dropdown);
1021  $this->tpl->parseCurrentBlock();
1022 
1023  $this->tpl->setCurrentBlock("hitem");
1024  $this->tpl->parseCurrentBlock();
1025  }
getHeaderCommands()
Get Header Block commands.
getRepositoryMode()
Get RepositoryMode.
global $ilCtrl
Definition: ilias.php:18
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
User interface class for advanced drop-down selection lists.
$url
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillHeaderTitleBlock()

ilBlockGUI::fillHeaderTitleBlock ( )

Fill header title block (title and.

Definition at line 1031 of file class.ilBlockGUI.php.

References $lng, getBlockType(), getImage(), and getTitle().

Referenced by getHTML().

1032  {
1033  $lng = $this->lng;
1034 
1035  // image
1036  if ($this->getImage() != "") {
1037  $this->tpl->setCurrentBlock("block_img");
1038  $this->tpl->setVariable("IMG_BLOCK", $this->getImage());
1039  $this->tpl->setVariable(
1040  "IMID",
1041  "block_" . $this->getBlockType() . "_" . $this->block_id
1042  );
1043  $this->tpl->setVariable(
1044  "IMG_ALT",
1045  str_replace(array("'",'"'), "", strip_tags($lng->txt("icon") . " " . $this->getTitle()))
1046  );
1047  $this->tpl->parseCurrentBlock();
1048  }
1049 
1050  // header title
1051  $this->tpl->setCurrentBlock("header_title");
1052  $this->tpl->setVariable(
1053  "BTID",
1054  "block_" . $this->getBlockType() . "_" . $this->block_id
1055  );
1056  $this->tpl->setVariable(
1057  "BLOCK_TITLE",
1058  $this->getTitle()
1059  );
1060  $this->tpl->setVariable(
1061  "TXT_BLOCK",
1062  $lng->txt("block")
1063  );
1064  $this->tpl->parseCurrentBlock();
1065 
1066  $this->tpl->setCurrentBlock("hitem");
1067  $this->tpl->parseCurrentBlock();
1068  }
getImage()
Get Image.
getTitle()
Get Title.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillPreviousNext()

ilBlockGUI::fillPreviousNext ( )

Fill previous/next row.

Definition at line 1150 of file class.ilBlockGUI.php.

References $end, $lng, $max_count, $start, fillFooterLinks(), getEnableNumInfo(), getLimit(), getOffset(), and setPreviousNextLinks().

Referenced by getHTML().

1151  {
1152  $lng = $this->lng;
1153 
1154  // table pn numinfo
1155  $numinfo = "";
1156  if ($this->getEnableNumInfo() && $this->max_count > 0) {
1157  $start = $this->getOffset() + 1; // compute num info
1158  $end = $this->getOffset() + $this->getLimit();
1159 
1160  if ($end > $this->max_count or $this->getLimit() == 0) {
1162  }
1163 
1164  $numinfo = "(" . $start . "-" . $end . " " . strtolower($lng->txt("of")) . " " . $this->max_count . ")";
1165  }
1166 
1167  $this->setPreviousNextLinks();
1168  $this->fillFooterLinks(true, $numinfo);
1169  }
getLimit()
Get Limit.
fillFooterLinks($a_top=false, $a_numinfo="")
Fill footer links.
$start
Definition: bench.php:8
getEnableNumInfo()
Get Enable Item Number Info.
setPreviousNextLinks()
Get previous/next linkbar.
getOffset()
Get Offset.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillRow()

ilBlockGUI::fillRow (   $a_set)

Definition at line 1128 of file class.ilBlockGUI.php.

References $key.

Referenced by fillDataSection().

1129  {
1130  foreach ($a_set as $key => $value) {
1131  $this->tpl->setVariable("VAL_" . strtoupper($key), $value);
1132  }
1133  }
$key
Definition: croninfo.php:18
+ Here is the caller graph for this function:

◆ fillRowColor()

ilBlockGUI::fillRowColor (   $a_placeholder = "CSS_ROW")
finalprotected

Definition at line 1139 of file class.ilBlockGUI.php.

Referenced by fillDataSection().

1140  {
1141  $this->css_row = ($this->css_row != "ilBlockRow1")
1142  ? "ilBlockRow1"
1143  : "ilBlockRow2";
1144  $this->tpl->setVariable($a_placeholder, $this->css_row);
1145  }
+ Here is the caller graph for this function:

◆ getAdminCommands()

ilBlockGUI::getAdminCommands ( )

Get Administration Commmands.

Returns
boolean Administration Commmands

Definition at line 445 of file class.ilBlockGUI.php.

Referenced by getHTML().

446  {
447  return $this->admincommands;
448  }
+ Here is the caller graph for this function:

◆ getBigMode()

ilBlockGUI::getBigMode ( )

Get Big Mode.

Returns
boolean Big Mode

Definition at line 155 of file class.ilBlockGUI.php.

References $bigmode.

Referenced by getHTML().

156  {
157  return $this->bigmode;
158  }
+ Here is the caller graph for this function:

◆ getBlockCommands()

ilBlockGUI::getBlockCommands ( )

Get Block commands.

Returns
array block commands

Definition at line 609 of file class.ilBlockGUI.php.

References $block_commands.

Referenced by getHTML().

610  {
611  return $this->block_commands;
612  }
+ Here is the caller graph for this function:

◆ getBlockId()

◆ getBlockType()

ilBlockGUI::getBlockType ( )
abstract

◆ getColSpan()

ilBlockGUI::getColSpan ( )

Get Columns Span.

Returns
int Columns Span

Definition at line 465 of file class.ilBlockGUI.php.

References $colspan.

Referenced by ilBookmarkBlockGUI\fillFooter(), ilPDSelectedItemsBlockGUI\fillFooter(), ilPDTaggingBlockGUI\fillFooter(), ilCalendarBlockGUI\fillFooter(), and getHTML().

466  {
467  return $this->colspan;
468  }
+ Here is the caller graph for this function:

◆ getConfigParameter()

ilBlockGUI::getConfigParameter ( )
final

Definition at line 553 of file class.ilBlockGUI.php.

References getBlockId(), and getBlockType().

554  {
555  return $this->getBlockType() . "_" . $this->getBlockId() . "_blconf";
556  }
getBlockId()
Get Block Id.
+ Here is the call graph for this function:

◆ getCurrentDetailLevel()

◆ getData()

◆ getDetailParameter()

ilBlockGUI::getDetailParameter ( )
final

Definition at line 548 of file class.ilBlockGUI.php.

References getBlockId(), and getBlockType().

Referenced by fillDetailRow(), fillHeaderCommands(), and handleDetailLevel().

549  {
550  return $this->getBlockType() . "_" . $this->getBlockId() . "_bldet";
551  }
getBlockId()
Get Block Id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEnableDetailRow()

ilBlockGUI::getEnableDetailRow ( )

Get EnableDetailRow.

Returns
boolean EnableDetailRow

Definition at line 485 of file class.ilBlockGUI.php.

References $enabledetailrow.

486  {
487  return $this->enabledetailrow;
488  }

◆ getEnableEdit()

ilBlockGUI::getEnableEdit ( )

Get EnableEdit.

Returns
boolean EnableEdit

Definition at line 337 of file class.ilBlockGUI.php.

338  {
339  return $this->enableedit;
340  }

◆ getEnableNumInfo()

ilBlockGUI::getEnableNumInfo ( )

Get Enable Item Number Info.

Returns
boolean Enable Item Number Info

Definition at line 506 of file class.ilBlockGUI.php.

References $enablenuminfo.

Referenced by ilPDContentBlockGUI\fillFooter(), and fillPreviousNext().

507  {
508  return $this->enablenuminfo;
509  }
+ Here is the caller graph for this function:

◆ getFooterInfo()

ilBlockGUI::getFooterInfo (   $a_hide_and_icon = false)

Get Footer Info.

Returns
string Footer Info

Definition at line 381 of file class.ilBlockGUI.php.

References $footerinfo, and $footerinfo_icon.

Referenced by fillDetailRow(), and getHTML().

382  {
383  if ($a_hide_and_icon) {
384  return $this->footerinfo_icon;
385  } else {
386  return $this->footerinfo;
387  }
388  }
+ Here is the caller graph for this function:

◆ getFooterLinks()

ilBlockGUI::getFooterLinks ( )

Get footer links.

Definition at line 666 of file class.ilBlockGUI.php.

References $footer_links.

Referenced by fillFooterLinks().

667  {
668  return $this->footer_links;
669  }
+ Here is the caller graph for this function:

◆ getGuiObject()

ilBlockGUI::getGuiObject ( )

Get GuiObject.

Returns
object GUI object

Definition at line 220 of file class.ilBlockGUI.php.

221  {
222  return $this->gui_object;
223  }

◆ getHeaderCommands()

ilBlockGUI::getHeaderCommands ( )

Get Header Block commands.

Returns
array header block commands

Definition at line 636 of file class.ilBlockGUI.php.

References $header_commands.

Referenced by fillHeaderCommands().

637  {
638  return $this->header_commands;
639  }
+ Here is the caller graph for this function:

◆ getHeaderLinks()

ilBlockGUI::getHeaderLinks ( )

Definition at line 115 of file class.ilBlockGUI.php.

References $header_links.

Referenced by getHTML().

116  {
117  return $this->header_links;
118  }
+ Here is the caller graph for this function:

◆ getHTML()

ilBlockGUI::getHTML ( )

Handle config status.

Get HTML.

Definition at line 747 of file class.ilBlockGUI.php.

References $_GET, $access, $ctrl, $ilCtrl, $ilUser, $lng, $obj_def, $user, ilObject\_lookupType(), addBlockCommand(), fillDataSection(), fillDetailRow(), fillFooter(), fillHeaderCommands(), fillHeaderTitleBlock(), fillPreviousNext(), getAdminCommands(), getBigMode(), getBlockCommands(), getBlockType(), getColSpan(), getFooterInfo(), getHeaderLinks(), getRefId(), getRepositoryMode(), and isRepositoryObject().

Referenced by ilPDNewsBlockGUI\getHTML().

748  {
750  $lng = $this->lng;
751  $ilAccess = $this->access;
753  $objDefinition = $this->obj_def;
754 
755  if ($this->isRepositoryObject()) {
756  if (!$ilAccess->checkAccess("read", "", $this->getRefId())) {
757  return "";
758  }
759  }
760 
761  $this->tpl = new ilTemplate("tpl.block.html", true, true, "Services/Block");
762 
763  // $this->handleConfigStatus();
764 
765  $this->fillDataSection();
766 
767  if ($this->getRepositoryMode() && $this->isRepositoryObject()) {
768  // #10993
769  if ($this->getAdminCommands()) {
770  $this->tpl->setCurrentBlock("block_check");
771  $this->tpl->setVariable("BL_REF_ID", $this->getRefId());
772  $this->tpl->parseCurrentBlock();
773  }
774 
775  if ($ilAccess->checkAccess("delete", "", $this->getRefId())) {
776  $this->addBlockCommand(
777  "ilias.php?baseClass=ilRepositoryGUI&ref_id=" . $_GET["ref_id"] . "&cmd=delete" .
778  "&item_ref_id=" . $this->getRefId(),
779  $lng->txt("delete")
780  );
781 
782  // see ilObjectListGUI::insertCutCommand();
783  $this->addBlockCommand(
784  "ilias.php?baseClass=ilRepositoryGUI&ref_id=" . $_GET["ref_id"] . "&cmd=cut" .
785  "&item_ref_id=" . $this->getRefId(),
786  $lng->txt("move")
787  );
788  }
789 
790  // #14595 - see ilObjectListGUI::insertCopyCommand()
791  if ($ilAccess->checkAccess("copy", "", $this->getRefId())) {
792  $parent_type = ilObject::_lookupType($_GET["ref_id"], true);
793  $parent_gui = "ilObj" . $objDefinition->getClassName($parent_type) . "GUI";
794 
795  $ilCtrl->setParameterByClass("ilobjectcopygui", "source_id", $this->getRefId());
796  $copy_cmd = $ilCtrl->getLinkTargetByClass(
797  array("ilrepositorygui", $parent_gui, "ilobjectcopygui"),
798  "initTargetSelection"
799  );
800 
801  // see ilObjectListGUI::insertCopyCommand();
802  $this->addBlockCommand(
803  $copy_cmd,
804  $lng->txt("copy")
805  );
806  }
807  }
808 
809  // footer info
810  if ($this->getFooterInfo() != "") {
811  $this->tpl->setCurrentBlock("footer_information");
812  $this->tpl->setVariable("FOOTER_INFO", $this->getFooterInfo());
813  $this->tpl->setVariable("FICOLSPAN", $this->getColSpan());
814  $this->tpl->parseCurrentBlock();
815  }
816 
817  $this->dropdown = array();
818 
819  // commands
820  if (count($this->getBlockCommands()) > 0) {
821  $has_block_command = false;
822 
823  foreach ($this->getBlockCommands() as $command) {
824  if (!$command["img"] && !$command["html"]) {
825  $this->dropdown[] = $command;
826  continue;
827  }
828 
829  $has_block_command = true;
830 
831  if ($command["target"] != "") {
832  $this->tpl->setCurrentBlock("bc_target");
833  $this->tpl->setVariable("CMD_TARGET", $command["target"]);
834  $this->tpl->parseCurrentBlock();
835  }
836 
837  if ($command["img"] != "") {
838  $this->tpl->setCurrentBlock("bc_image");
839  $this->tpl->setVariable("SRC_BC", $command["img"]);
840  $this->tpl->setVariable("ALT_BC", $command["text"]);
841  $this->tpl->parseCurrentBlock();
842  $this->tpl->setCurrentBlock("block_command");
843  } elseif ($command["html"] != "") {
844  if ($command['href'] !== '') {
845  $this->tpl->setCurrentBlock("bc_html");
846  $this->tpl->setVariable("HTML", $command["html"]);
847  $this->tpl->parseCurrentBlock();
848  $this->tpl->setCurrentBlock("block_command");
849  } else {
850  $this->tpl->setCurrentBlock('bc_html_nohref');
851  $this->tpl->setVariable('HTML_NOHREF', $command['html']);
852  $this->tpl->parseCurrentBlock();
853  $this->tpl->setCurrentBlock("block_command");
854  }
855  } else {
856  $this->tpl->setCurrentBlock("block_command");
857  $this->tpl->setVariable("CMD_TEXT", $command["text"]);
858  $this->tpl->setVariable("BC_CLASS", 'class="il_ContainerItemCommand"');
859  }
860 
861  if ($command['href'] !== '') {
862  $this->tpl->setVariable("CMD_HREF", $command["href"]);
863  }
864  $this->tpl->parseCurrentBlock();
865  }
866 
867  if ($has_block_command) {
868  $this->tpl->setCurrentBlock("block_commands");
869  $this->tpl->setVariable("CCOLSPAN", $this->getColSpan());
870  $this->tpl->parseCurrentBlock();
871  }
872  }
873 
874  // fill previous next
875  $this->fillPreviousNext();
876 
877  // fill footer
878  $this->fillFooter();
879 
880  // fill row for setting details
881  $this->fillDetailRow();
882 
883  // header links
884  if (count($this->getHeaderLinks())) {
885  $counter = 0;
886  foreach ($this->getHeaderLinks() as $command) {
887  if ($counter > 0) {
888  $this->tpl->setCurrentBlock('head_delim');
889  $this->tpl->touchBlock('head_delim');
890  $this->tpl->parseCurrentBlock();
891  }
892  if ($command['status'] == true) {
893  $this->tpl->setCurrentBlock('head_link');
894  $this->tpl->setVariable('HHREF', $command['href']);
895  $this->tpl->setVariable('HLINK', $command['text']);
896  $this->tpl->parseCurrentBlock();
897  } else {
898  $this->tpl->setCurrentBlock('head_text');
899  $this->tpl->setVariable('HTEXT', $command['text']);
900  $this->tpl->parseCurrentBlock();
901  }
902 
903  $this->tpl->setCurrentBlock('head_item');
904  $this->tpl->parseCurrentBlock();
905 
906  ++$counter;
907  }
908 
909  $this->tpl->setCurrentBlock('header_links');
910  $this->tpl->parseCurrentBlock();
911  }
912 
913  // for screen readers we first output the title and the commands
914  // (e.g. close icon afterwards), otherwise we first output the
915  // header commands, since we want to have the close icon top right
916  // and not floated after the title
917  if (is_object($ilUser) && $ilUser->getPref("screen_reader_optimization")) {
918  $this->fillHeaderTitleBlock();
919  $this->fillHeaderCommands();
920  } else {
921  $this->fillHeaderCommands();
922  $this->fillHeaderTitleBlock();
923  }
924 
925  $this->tpl->setVariable("COLSPAN", $this->getColSpan());
926  if ($this->getBigMode()) {
927  $this->tpl->touchBlock("hclassb");
928  } else {
929  $this->tpl->touchBlock("hclass");
930  }
931 
932  if ($ilCtrl->isAsynch()) {
933  // return without div wrapper
934  echo $this->tpl->getAsynch();
935  } else {
936  // return incl. wrapping div with id
937  return '<div id="' . "block_" . $this->getBlockType() . "_" . $this->block_id . '">' .
938  $this->tpl->get() . '</div>';
939  }
940  }
$_GET["client_id"]
getRepositoryMode()
Get RepositoryMode.
fillHeaderTitleBlock()
Fill header title block (title and.
global $ilCtrl
Definition: ilias.php:18
fillDetailRow()
Fill Detail Setting Row.
getBlockCommands()
Get Block commands.
fillHeaderCommands()
Fill header commands block.
getFooterInfo($a_hide_and_icon=false)
Get Footer Info.
special template class to simplify handling of ITX/PEAR
getBigMode()
Get Big Mode.
$ilUser
Definition: imgupload.php:18
static _lookupType($a_id, $a_reference=false)
lookup object type
getAdminCommands()
Get Administration Commmands.
addBlockCommand( $a_href, $a_text, $a_target="", $a_img="", $a_right_aligned=false, $a_checked=false, $a_html="")
Add Block Command.
getRefId()
Get Ref Id (only used if isRepositoryObject() is true).
fillPreviousNext()
Fill previous/next row.
getColSpan()
Get Columns Span.
isRepositoryObject()
Returns whether block has a corresponding repository object.
fillDataSection()
Standard implementation for row based data.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getImage()

ilBlockGUI::getImage ( )

Get Image.

Returns
string Image

Definition at line 270 of file class.ilBlockGUI.php.

References $image.

Referenced by fillHeaderTitleBlock().

271  {
272  return $this->image;
273  }
+ Here is the caller graph for this function:

◆ getLimit()

ilBlockGUI::getLimit ( )

Get Limit.

Returns
int Limit

Definition at line 317 of file class.ilBlockGUI.php.

Referenced by fillDataSection(), fillPreviousNext(), and setPreviousNextLinks().

318  {
319  return $this->limit;
320  }
+ Here is the caller graph for this function:

◆ getMoveParameter()

ilBlockGUI::getMoveParameter ( )
final

Definition at line 558 of file class.ilBlockGUI.php.

References getBlockId(), and getBlockType().

559  {
560  return $this->getBlockType() . "_" . $this->getBlockId() . "_blmove";
561  }
getBlockId()
Get Block Id.
+ Here is the call graph for this function:

◆ getNavParameter()

ilBlockGUI::getNavParameter ( )
final

Definition at line 543 of file class.ilBlockGUI.php.

References getBlockId(), and getBlockType().

Referenced by fillDataSection(), and setPreviousNextLinks().

544  {
545  return $this->getBlockType() . "_" . $this->getBlockId() . "_blnav";
546  }
getBlockId()
Get Block Id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOffset()

ilBlockGUI::getOffset ( )

Get Offset.

Returns
int Offset

Definition at line 290 of file class.ilBlockGUI.php.

Referenced by fillDataSection(), fillPreviousNext(), and setPreviousNextLinks().

291  {
292  return $this->offset;
293  }
+ Here is the caller graph for this function:

◆ getProperty()

ilBlockGUI::getProperty (   $a_property)

Definition at line 522 of file class.ilBlockGUI.php.

Referenced by ilNewsForContextBlockGUI\getHTML(), ilCalendarBlockGUI\getHTML(), ilNewsForContextBlockGUI\initSettingsForm(), ilNewsForContextBlockGUI\saveSettings(), and ilNewsForContextBlockGUI\showNews().

523  {
524  return $this->property[$a_property];
525  }
+ Here is the caller graph for this function:

◆ getRefId()

ilBlockGUI::getRefId ( )

Get Ref Id (only used if isRepositoryObject() is true).

Returns
int Ref Id

Definition at line 425 of file class.ilBlockGUI.php.

Referenced by ilPollBlockGUI\commentJSCall(), ilPollBlockGUI\fillRow(), ilExternalFeedBlockGUI\getHTML(), ilPollBlockGUI\getHTML(), and getHTML().

426  {
427  return $this->refid;
428  }
+ Here is the caller graph for this function:

◆ getRepositoryMode()

ilBlockGUI::getRepositoryMode ( )

Get RepositoryMode.

Returns
boolean RepositoryMode

Definition at line 357 of file class.ilBlockGUI.php.

Referenced by fillHeaderCommands(), ilNewsForContextBlockGUI\getHTML(), getHTML(), ilCalendarBlockGUI\getTargetGUIClassPath(), and ilCalendarBlockGUI\setFooterLinks().

358  {
359  return $this->repositorymode;
360  }
+ Here is the caller graph for this function:

◆ getRowTemplateDir()

ilBlockGUI::getRowTemplateDir ( )

Get Row Template Directory.

Returns
string Row Template Directory

Definition at line 578 of file class.ilBlockGUI.php.

Referenced by fillDataSection().

579  {
580  return $this->rowtemplatedir;
581  }
+ Here is the caller graph for this function:

◆ getRowTemplateName()

ilBlockGUI::getRowTemplateName ( )

Get Row Template Name.

Returns
string Row Template Name

Definition at line 568 of file class.ilBlockGUI.php.

Referenced by fillDataSection().

569  {
570  return $this->rowtemplatename;
571  }
+ Here is the caller graph for this function:

◆ getScreenMode()

static ilBlockGUI::getScreenMode ( )
static

Get Screen Mode for current command.

Definition at line 682 of file class.ilBlockGUI.php.

References IL_SCREEN_SIDE.

683  {
684  return IL_SCREEN_SIDE;
685  }
const IL_SCREEN_SIDE

◆ getSubtitle()

ilBlockGUI::getSubtitle ( )

Get Subtitle.

Returns
string Subtitle

Definition at line 405 of file class.ilBlockGUI.php.

406  {
407  return $this->subtitle;
408  }

◆ getTitle()

ilBlockGUI::getTitle ( )

◆ handleDetailLevel()

ilBlockGUI::handleDetailLevel ( )

Handle read/write current detail level.

Definition at line 690 of file class.ilBlockGUI.php.

References $_GET, $block_id, $ctrl, $ilCtrl, $ilUser, $user, ilBlockSetting\_lookupDetailLevel(), ilBlockSetting\_writeDetailLevel(), getBlockType(), getDetailParameter(), and setCurrentDetailLevel().

Referenced by ilPDCalendarBlockGUI\__construct(), and setAvailableDetailLevels().

691  {
694  // set/get detail level
695  if ($this->detail_max > $this->detail_min) {
696  include_once("Services/Block/classes/class.ilBlockSetting.php");
697  if (isset($_GET[$this->getDetailParameter()])) {
699  $this->getBlockType(),
700  $_GET[$this->getDetailParameter()],
701  $ilUser->getId(),
703  );
705  if ((int) $_GET[$this->getDetailParameter()] == 0) {
706  $ilCtrl->redirectByClass("ilcolumngui", "");
707  }
708  } else {
710  $this->getBlockType(),
711  $ilUser->getId(),
713  ));
714  }
715  }
716  }
static _writeDetailLevel($a_type, $a_value, $a_user=0, $a_block_id=0)
Write detail level to database.
$_GET["client_id"]
static _lookupDetailLevel($a_type, $a_user=0, $a_block_id=0)
Lookup detail level.
global $ilCtrl
Definition: ilias.php:18
$ilUser
Definition: imgupload.php:18
setCurrentDetailLevel($a_currentdetaillevel)
Set Current Detail Level.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isRepositoryObject()

ilBlockGUI::isRepositoryObject ( )
abstractprotected

Returns whether block has a corresponding repository object.

Returns
bool

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ preloadData()

ilBlockGUI::preloadData ( array  $data)
protected

Can be overwritten in subclasses.

Only the visible part of the complete data was passed so a preload of the visible data is possible.

Parameters
array$data

Definition at line 1474 of file class.ilBlockGUI.php.

Referenced by fillDataSection().

1475  {
1476  }
+ Here is the caller graph for this function:

◆ setAdminCommands()

ilBlockGUI::setAdminCommands (   $a_admincommands)

Set Administration Commmands.

Parameters
boolean$a_admincommandsAdministration Commmands

Definition at line 435 of file class.ilBlockGUI.php.

436  {
437  $this->admincommands = $a_admincommands;
438  }

◆ setAvailableDetailLevels()

ilBlockGUI::setAvailableDetailLevels (   $a_max,
  $a_min = 0 
)

Set Available Detail Levels.

Parameters
int$a_maxMax Level
int$a_minMin Level (Default 0)

Definition at line 186 of file class.ilBlockGUI.php.

References handleDetailLevel().

Referenced by ilPDSysMessageBlockGUI\__construct(), ilBookmarkBlockGUI\__construct(), ilPDNotesBlockGUI\__construct(), ilForumPostingDraftsBlockGUI\__construct(), ilPDNewsBlockGUI\__construct(), ilPDPortfolioBlockGUI\__construct(), ilChatroomBlockGUI\__construct(), ilPDTaggingBlockGUI\__construct(), ilNewsForContextBlockGUI\__construct(), ilPDMailBlockGUI\__construct(), ilCalendarBlockGUI\__construct(), ilPDSelectedItemsBlockGUI\__construct(), ilPDSelectedItemsBlockGUI\manageObject(), ilExternalFeedBlockGUI\setBlock(), and ilPDExternalFeedBlockGUI\setBlock().

187  {
188  $this->detail_min = $a_min;
189  $this->detail_max = $a_max;
190  $this->handleDetailLevel();
191  }
handleDetailLevel()
Handle read/write current detail level.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setBigMode()

ilBlockGUI::setBigMode (   $a_bigmode)

Set Big Mode.

Parameters
boolean$a_bigmodeBig Mode

Definition at line 145 of file class.ilBlockGUI.php.

Referenced by ilPDContentBlockGUI\__construct().

146  {
147  $this->bigmode = $a_bigmode;
148  }
+ Here is the caller graph for this function:

◆ setBlockId()

ilBlockGUI::setBlockId (   $a_block_id = 0)

Set Block Id.

Parameters
int$a_block_idBlock ID

Definition at line 165 of file class.ilBlockGUI.php.

Referenced by ilPDCalendarBlockGUI\__construct(), ilObjectMetaDataBlockGUI\__construct(), ilNewsForContextBlockGUI\__construct(), ilCalendarBlockGUI\__construct(), ilPollBlockGUI\setBlock(), ilExternalFeedBlockGUI\setBlock(), and ilPDExternalFeedBlockGUI\setBlock().

166  {
167  $this->block_id = $a_block_id;
168  }
+ Here is the caller graph for this function:

◆ setColSpan()

ilBlockGUI::setColSpan (   $a_colspan)

Set Columns Span.

Parameters
int$a_colspanColumns Span

Definition at line 455 of file class.ilBlockGUI.php.

Referenced by ilForumPostingDraftsBlockGUI\fillDataSection(), ilBookmarkBlockGUI\fillDataSection(), ilPDPortfolioBlockGUI\fillDataSection(), ilPDMailBlockGUI\fillDataSection(), and ilCalendarBlockGUI\fillDataSection().

456  {
457  $this->colspan = $a_colspan;
458  }
+ Here is the caller graph for this function:

◆ setCurrentDetailLevel()

ilBlockGUI::setCurrentDetailLevel (   $a_currentdetaillevel)

Set Current Detail Level.

Parameters
int$a_currentdetaillevelCurrent Detail Level

Definition at line 198 of file class.ilBlockGUI.php.

Referenced by ilPDSysMessageBlockGUI\getHTML(), and handleDetailLevel().

199  {
200  $this->currentdetaillevel = $a_currentdetaillevel;
201  }
+ Here is the caller graph for this function:

◆ setData()

◆ setDataSection()

◆ setEnableDetailRow()

ilBlockGUI::setEnableDetailRow (   $a_enabledetailrow)

Set EnableDetailRow.

Parameters
boolean$a_enabledetailrowEnableDetailRow

Definition at line 475 of file class.ilBlockGUI.php.

Referenced by ilForumPostingDraftsBlockGUI\fillDataSection(), ilPDNotesBlockGUI\fillDataSection(), ilBookmarkBlockGUI\fillDataSection(), ilPDPortfolioBlockGUI\fillDataSection(), ilPDTaggingBlockGUI\fillDataSection(), ilPDMailBlockGUI\fillDataSection(), ilPDNewsBlockGUI\fillDataSection(), and ilPDSelectedItemsBlockGUI\getHTML().

476  {
477  $this->enabledetailrow = $a_enabledetailrow;
478  }
+ Here is the caller graph for this function:

◆ setEnableEdit()

ilBlockGUI::setEnableEdit (   $a_enableedit)

Set EnableEdit.

Parameters
boolean$a_enableeditEnableEdit

Definition at line 327 of file class.ilBlockGUI.php.

328  {
329  $this->enableedit = $a_enableedit;
330  }

◆ setEnableNumInfo()

◆ setFooterInfo()

ilBlockGUI::setFooterInfo (   $a_footerinfo,
  $a_hide_and_icon = false 
)

Set Footer Info.

Parameters
string$a_footerinfoFooter Info

Definition at line 367 of file class.ilBlockGUI.php.

Referenced by ilClassificationBlockGUI\__construct(), ilPDNewsBlockGUI\getHTML(), and ilNewsForContextBlockGUI\getHTML().

368  {
369  if ($a_hide_and_icon) {
370  $this->footerinfo_icon = $a_footerinfo;
371  } else {
372  $this->footerinfo = $a_footerinfo;
373  }
374  }
+ Here is the caller graph for this function:

◆ setGuiObject()

ilBlockGUI::setGuiObject ( $a_gui_object)

Set GuiObject.

Only used for repository blocks, that are represented as real repository objects (have a ref id and permissions)

Parameters
object$a_gui_objectGUI object

Definition at line 210 of file class.ilBlockGUI.php.

211  {
212  $this->gui_object = $a_gui_object;
213  }

◆ setImage()

ilBlockGUI::setImage (   $a_image)

Set Image.

Parameters
string$a_imageImage

Definition at line 260 of file class.ilBlockGUI.php.

Referenced by ilBookmarkBlockGUI\__construct(), ilForumPostingDraftsBlockGUI\__construct(), ilChatroomBlockGUI\__construct(), and ilPDMailBlockGUI\__construct().

261  {
262  $this->image = $a_image;
263  }
+ Here is the caller graph for this function:

◆ setLimit()

◆ setOffset()

ilBlockGUI::setOffset (   $a_offset)

Set Offset.

Parameters
int$a_offsetOffset

Definition at line 280 of file class.ilBlockGUI.php.

Referenced by correctOffset(), and fillDataSection().

281  {
282  $this->offset = $a_offset;
283  }
+ Here is the caller graph for this function:

◆ setPreviousNextLinks()

ilBlockGUI::setPreviousNextLinks ( )

Get previous/next linkbar.

Author
Sascha Hofmann shofm.nosp@m.ann@.nosp@m.datab.nosp@m.ay.d.nosp@m.e
Returns
array linkbar or false on error

Definition at line 1178 of file class.ilBlockGUI.php.

References $block_id, $ctrl, $ilCtrl, $lng, $text, addFooterLink(), getBlockType(), getLimit(), getNavParameter(), and getOffset().

Referenced by fillPreviousNext().

1179  {
1180  $ilCtrl = $this->ctrl;
1181  $lng = $this->lng;
1182 
1183  // if more entries then entries per page -> show link bar
1184  if ($this->max_count > $this->getLimit() && ($this->getLimit() != 0)) {
1185  // previous link
1186  if ($this->getOffset() >= 1) {
1187  $prevoffset = $this->getOffset() - $this->getLimit();
1188 
1189  $ilCtrl->setParameterByClass(
1190  "ilcolumngui",
1191  $this->getNavParameter(),
1192  "::" . $prevoffset
1193  );
1194 
1195  // ajax link
1196  $ilCtrl->setParameterByClass(
1197  "ilcolumngui",
1198  "block_id",
1199  "block_" . $this->getBlockType() . "_" . $this->block_id
1200  );
1201  $block_id = "block_" . $this->getBlockType() . "_" . $this->block_id;
1202  $onclick = $ilCtrl->getLinkTargetByClass(
1203  "ilcolumngui",
1204  "updateBlock",
1205  "",
1206  true
1207  );
1208  $ilCtrl->setParameterByClass(
1209  "ilcolumngui",
1210  "block_id",
1211  ""
1212  );
1213 
1214  // normal link
1215  $href = $ilCtrl->getLinkTargetByClass("ilcolumngui", "");
1216  $text = $lng->txt("previous");
1217 
1218  $this->addFooterLink($text, $href, $onclick, $block_id, true);
1219  }
1220 
1221  // calculate number of pages
1222  $pages = intval($this->max_count / $this->getLimit());
1223 
1224  // add a page if a rest remains
1225  if (($this->max_count % $this->getLimit())) {
1226  $pages++;
1227  }
1228 
1229  // show next link (if not last page)
1230  if (!(($this->getOffset() / $this->getLimit()) == ($pages - 1)) && ($pages != 1)) {
1231  $newoffset = $this->getOffset() + $this->getLimit();
1232 
1233  $ilCtrl->setParameterByClass(
1234  "ilcolumngui",
1235  $this->getNavParameter(),
1236  "::" . $newoffset
1237  );
1238 
1239  // ajax link
1240  $ilCtrl->setParameterByClass(
1241  "ilcolumngui",
1242  "block_id",
1243  "block_" . $this->getBlockType() . "_" . $this->block_id
1244  );
1245  //$this->tpl->setCurrentBlock("pnonclick");
1246  $block_id = "block_" . $this->getBlockType() . "_" . $this->block_id;
1247  $onclick = $ilCtrl->getLinkTargetByClass(
1248  "ilcolumngui",
1249  "updateBlock",
1250  "",
1251  true
1252  );
1253  //echo "-".$onclick."-";
1254  //$this->tpl->parseCurrentBlock();
1255  $ilCtrl->setParameterByClass(
1256  "ilcolumngui",
1257  "block_id",
1258  ""
1259  );
1260 
1261  // normal link
1262  $href = $ilCtrl->getLinkTargetByClass("ilcolumngui", "");
1263  $text = $lng->txt("next");
1264 
1265  $this->addFooterLink($text, $href, $onclick, $block_id, true);
1266  }
1267  $ilCtrl->setParameterByClass(
1268  "ilcolumngui",
1269  $this->getNavParameter(),
1270  ""
1271  );
1272  return true;
1273  } else {
1274  return false;
1275  }
1276  }
getLimit()
Get Limit.
global $ilCtrl
Definition: ilias.php:18
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.
$text
Definition: errorreport.php:18
getOffset()
Get Offset.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setProperties()

ilBlockGUI::setProperties (   $a_properties)

This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties.

Parameters
string$a_propertiesproperties array (key => value)

Definition at line 517 of file class.ilBlockGUI.php.

518  {
519  $this->property = $a_properties;
520  }

◆ setProperty()

ilBlockGUI::setProperty (   $a_property,
  $a_value 
)

Definition at line 527 of file class.ilBlockGUI.php.

528  {
529  $this->property[$a_property] = $a_value;
530  }

◆ setRefId()

ilBlockGUI::setRefId (   $a_refid)

Set Ref Id (only used if isRepositoryObject() is true).

Parameters
int$a_refidRef Id

Definition at line 415 of file class.ilBlockGUI.php.

416  {
417  $this->refid = $a_refid;
418  }

◆ setRepositoryMode()

ilBlockGUI::setRepositoryMode (   $a_repositorymode)

Set RepositoryMode.

Parameters
boolean$a_repositorymodeRepositoryMode

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

348  {
349  $this->repositorymode = $a_repositorymode;
350  }

◆ setRowTemplate()

ilBlockGUI::setRowTemplate (   $a_rowtemplatename,
  $a_rowtemplatedir = "" 
)

Set Row Template Name.

Parameters
string$a_rowtemplatenameRow Template Name

Definition at line 537 of file class.ilBlockGUI.php.

Referenced by ilPDNewsBlockGUI\__construct(), ilPollBlockGUI\__construct(), ilExternalFeedBlockGUI\__construct(), ilNewsForContextBlockGUI\__construct(), ilPDExternalFeedBlockGUI\__construct(), ilForumPostingDraftsBlockGUI\fillDataSection(), ilPDNotesBlockGUI\fillDataSection(), ilBookmarkBlockGUI\fillDataSection(), ilPDPortfolioBlockGUI\fillDataSection(), ilPDMailBlockGUI\fillDataSection(), and ilCalendarBlockGUI\fillDataSection().

538  {
539  $this->rowtemplatename = $a_rowtemplatename;
540  $this->rowtemplatedir = $a_rowtemplatedir;
541  }
+ Here is the caller graph for this function:

◆ setSubtitle()

ilBlockGUI::setSubtitle (   $a_subtitle)

Set Subtitle.

Parameters
string$a_subtitleSubtitle

Definition at line 395 of file class.ilBlockGUI.php.

396  {
397  $this->subtitle = $a_subtitle;
398  }

◆ setTitle()

Field Documentation

◆ $access

◆ $allow_moving

ilBlockGUI::$allow_moving = true
protected

Definition at line 35 of file class.ilBlockGUI.php.

◆ $bigmode

ilBlockGUI::$bigmode = false
protected

Definition at line 31 of file class.ilBlockGUI.php.

Referenced by getBigMode().

◆ $block_commands

ilBlockGUI::$block_commands = array()
protected

Definition at line 41 of file class.ilBlockGUI.php.

Referenced by getBlockCommands().

◆ $block_id

◆ $close_command

ilBlockGUI::$close_command = false
protected

Definition at line 43 of file class.ilBlockGUI.php.

Referenced by fillHeaderCommands().

◆ $colspan

ilBlockGUI::$colspan = 1
protected

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

Referenced by getColSpan().

◆ $css_row

ilBlockGUI::$css_row = ""
protected

Definition at line 47 of file class.ilBlockGUI.php.

◆ $ctrl

ilBlockGUI::$ctrl
protected

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

Referenced by ilPDNewsBlockGUI\addCloseCommand(), ilNewsForContextBlockGUI\addCloseCommand(), ilExternalFeedBlockGUIGen\cancelSaveFeedBlock(), ilPDNewsBlockGUI\cancelSettings(), ilNewsForContextBlockGUI\cancelSettings(), ilExternalFeedBlockGUIGen\cancelUpdateFeedBlock(), ilPDNewsBlockGUI\changeFeedSettings(), ilPDExternalFeedBlockGUI\confirmDeleteFeedBlock(), ilPDExternalFeedBlockGUI\deleteFeedBlock(), ilExternalFeedBlockGUI\disableJS(), ilPDExternalFeedBlockGUI\disableJS(), ilNewsForContextBlockGUI\disableJS(), ilPDNewsBlockGUI\editSettings(), ilRepositoryObjectSearchBlockGUI\executeCommand(), ilWikiSideBlockGUI\executeCommand(), ilExternalFeedBlockGUIGen\executeCommand(), ilWikiFunctionsBlockGUI\executeCommand(), ilWikiImportantPagesBlockGUI\executeCommand(), ilClassificationBlockGUI\executeCommand(), ilPDNotesBlockGUI\executeCommand(), ilPDPortfolioBlockGUI\executeCommand(), ilBookmarkBlockGUI\executeCommand(), ilObjectMetaDataBlockGUI\executeCommand(), ilWikiSearchBlockGUI\executeCommand(), ilPollBlockGUI\executeCommand(), ilPDTaggingBlockGUI\executeCommand(), ilDummyBlockGUI\executeCommand(), ilExternalFeedBlockGUI\executeCommand(), ilPDExternalFeedBlockGUI\executeCommand(), ilPDNewsBlockGUI\executeCommand(), ilNewsForContextBlockGUI\executeCommand(), ilPDExternalFeedBlockGUI\exitDeleteFeedBlock(), ilExternalFeedBlockGUIGen\exitSaveFeedBlock(), ilExternalFeedBlockGUIGen\exitUpdateFeedBlock(), ilRepositoryObjectSearchBlockGUI\fillDataSection(), ilWikiImportantPagesBlockGUI\fillDataSection(), ilWikiSearchBlockGUI\fillDataSection(), ilWikiSideBlockGUI\fillDataSection(), ilWikiFunctionsBlockGUI\fillDataSection(), ilClassificationBlockGUI\fillDataSection(), fillDetailRow(), ilNewsForContextBlockGUI\fillFooter(), fillHeaderCommands(), ilPollBlockGUI\fillRow(), ilPDPortfolioBlockGUI\fillRow(), ilPDNotesBlockGUI\fillRow(), ilExternalFeedBlockGUI\fillRow(), ilPDExternalFeedBlockGUI\fillRow(), ilNewsForContextBlockGUI\fillRow(), ilExternalFeedBlockGUI\getDynamic(), ilPDExternalFeedBlockGUI\getDynamic(), ilNewsForContextBlockGUI\getDynamic(), ilExternalFeedBlockGUI\getDynamicReload(), ilPDExternalFeedBlockGUI\getDynamicReload(), ilNewsForContextBlockGUI\getDynamicReload(), ilWikiImportantPagesBlockGUI\getHTML(), ilPDPortfolioBlockGUI\getHTML(), ilWikiSearchBlockGUI\getHTML(), ilWikiSideBlockGUI\getHTML(), ilWikiFunctionsBlockGUI\getHTML(), ilClassificationBlockGUI\getHTML(), ilDummyBlockGUI\getHTML(), ilExternalFeedBlockGUI\getHTML(), ilPDExternalFeedBlockGUI\getHTML(), ilPDNewsBlockGUI\getHTML(), ilNewsForContextBlockGUI\getHTML(), ilPollBlockGUI\getHTML(), getHTML(), ilExternalFeedBlockGUI\getJSEnabler(), ilPDExternalFeedBlockGUI\getJSEnabler(), ilNewsForContextBlockGUI\getJSEnabler(), ilPDNotesBlockGUI\getListRowData(), ilBookmarkBlockGUI\getListRowData(), ilNewsForContextBlockGUI\getNewsData(), ilPDPortfolioBlockGUI\getOverview(), ilPDNotesBlockGUI\getOverview(), ilBookmarkBlockGUI\getOverview(), ilExternalFeedBlockGUI\getOverview(), ilNewsForContextBlockGUI\getOverview(), ilBookmarkBlockGUI\getPDBookmarkListHTMLTree(), ilPDTaggingBlockGUI\getTagCloud(), handleDetailLevel(), ilNewsForContextBlockGUI\hideNotifications(), ilExternalFeedBlockGUI\initImportForm(), ilPDNewsBlockGUI\initPrivateSettingsForm(), ilNewsForContextBlockGUI\initSettingsForm(), ilPDExternalFeedBlockGUI\prepareSaveFeedBlock(), ilPDTaggingBlockGUI\removeTagsWithoutAccess(), ilPDNewsBlockGUI\saveSettings(), ilNewsForContextBlockGUI\saveSettings(), ilExternalFeedBlockGUI\setBlock(), ilPDExternalFeedBlockGUI\setBlock(), ilBookmarkBlockGUI\setCurrentBookmarkFolder(), ilBookmarkBlockGUI\setFooterLinks(), ilBookmarkBlockGUI\setPdFlatMode(), ilBookmarkBlockGUI\setPdTreeMode(), setPreviousNextLinks(), ilPDStudyProgrammeSimpleListGUI\shouldShowThisList(), ilExternalFeedBlockGUI\showFeedItem(), ilPDExternalFeedBlockGUI\showFeedItem(), ilPDNewsBlockGUI\showFeedUrl(), ilNewsForContextBlockGUI\showFeedUrl(), ilNewsForContextBlockGUI\showNews(), ilPDNotesBlockGUI\showNote(), ilNewsForContextBlockGUI\showNotifications(), ilPDTaggingBlockGUI\showResourcesForTag(), ilNewsForContextBlockGUI\showViewFooter(), ilNewsForContextBlockGUI\subscribeNews(), and ilNewsForContextBlockGUI\unsubscribeNews().

◆ $data

◆ $detail_max

ilBlockGUI::$detail_max = 0
protected

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

◆ $detail_min

ilBlockGUI::$detail_min = 0
protected

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

Referenced by fillDetailRow().

◆ $dropdown

ilBlockGUI::$dropdown
protected

Definition at line 49 of file class.ilBlockGUI.php.

Referenced by fillHeaderCommands().

◆ $enabledetailrow

ilBlockGUI::$enabledetailrow = true
protected

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

Referenced by getEnableDetailRow().

◆ $enablenuminfo

ilBlockGUI::$enablenuminfo = true
protected

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

Referenced by getEnableNumInfo().

◆ $footer_links

ilBlockGUI::$footer_links = array()
protected

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

Referenced by getFooterLinks().

◆ $footerinfo

ilBlockGUI::$footerinfo = false
protected

Definition at line 39 of file class.ilBlockGUI.php.

Referenced by getFooterInfo().

◆ $footerinfo_icon

ilBlockGUI::$footerinfo_icon = false
protected

Definition at line 40 of file class.ilBlockGUI.php.

Referenced by getFooterInfo().

◆ $header_commands

ilBlockGUI::$header_commands = array()
protected

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

Referenced by getHeaderCommands().

◆ $header_links

ilBlockGUI::$header_links = array()
protected

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

Referenced by getHeaderLinks().

◆ $image

ilBlockGUI::$image = false
protected

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

Referenced by getImage().

◆ $lng

ilBlockGUI::$lng
protected

Definition at line 79 of file class.ilBlockGUI.php.

Referenced by ilWikiFunctionsBlockGUI\__construct(), ilWikiSideBlockGUI\__construct(), ilBookmarkBlockGUI\__construct(), ilPDNotesBlockGUI\__construct(), ilWikiImportantPagesBlockGUI\__construct(), ilPDNewsBlockGUI\__construct(), ilPollBlockGUI\__construct(), ilClassificationBlockGUI\__construct(), ilWikiSearchBlockGUI\__construct(), ilExternalFeedBlockGUI\__construct(), ilCalendarSelectionBlockGUI\__construct(), ilPDTaggingBlockGUI\__construct(), ilNewsForContextBlockGUI\__construct(), ilPDExternalFeedBlockGUI\__construct(), ilPDStudyProgrammeSimpleListGUI\__construct(), ilCalendarBlockGUI\__construct(), ilPDNewsBlockGUI\addCloseCommand(), ilCalendarBlockGUI\addCloseCommand(), ilNewsForContextBlockGUI\addCloseCommand(), ilCalendarBlockGUI\addMiniMonth(), ilCalendarBlockGUI\addSubscriptionBlockCommand(), ilNewsForContextBlockGUI\addToSettingsForm(), ilPDNewsBlockGUI\changeFeedSettings(), ilPDExternalFeedBlockGUI\confirmDeleteFeedBlock(), ilPDNewsBlockGUI\editSettings(), ilRepositoryObjectSearchBlockGUI\fillDataSection(), ilObjectMetaDataBlockGUI\fillDataSection(), ilWikiImportantPagesBlockGUI\fillDataSection(), ilWikiSearchBlockGUI\fillDataSection(), ilWikiSideBlockGUI\fillDataSection(), ilWikiFunctionsBlockGUI\fillDataSection(), ilDummyBlockGUI\fillDataSection(), ilCalendarSelectionBlockGUI\fillDataSection(), fillDetailRow(), ilPDContentBlockGUI\fillFooter(), ilNewsForContextBlockGUI\fillFooter(), fillHeaderCommands(), fillHeaderTitleBlock(), fillPreviousNext(), ilPollBlockGUI\fillRow(), ilPDPortfolioBlockGUI\fillRow(), ilPDNotesBlockGUI\fillRow(), ilNewsForContextBlockGUI\fillRow(), ilClassificationBlockGUI\filterContainer(), ilCalendarBlockGUI\getData(), ilExternalFeedBlockGUI\getDynamicReload(), ilPDExternalFeedBlockGUI\getDynamicReload(), ilNewsForContextBlockGUI\getDynamicReload(), ilWikiImportantPagesBlockGUI\getHTML(), ilPDPortfolioBlockGUI\getHTML(), ilWikiSideBlockGUI\getHTML(), ilWikiSearchBlockGUI\getHTML(), ilWikiFunctionsBlockGUI\getHTML(), ilDummyBlockGUI\getHTML(), ilExternalFeedBlockGUI\getHTML(), ilPDExternalFeedBlockGUI\getHTML(), ilPDNewsBlockGUI\getHTML(), ilNewsForContextBlockGUI\getHTML(), ilPollBlockGUI\getHTML(), ilCalendarSelectionBlockGUI\getHTML(), ilCalendarBlockGUI\getHTML(), getHTML(), ilExternalFeedBlockGUI\getJSEnabler(), ilNewsForContextBlockGUI\getJSEnabler(), ilPDNotesBlockGUI\getListRowData(), ilBookmarkBlockGUI\getListRowData(), ilPDPortfolioBlockGUI\getOverview(), ilPDNotesBlockGUI\getOverview(), ilBookmarkBlockGUI\getOverview(), ilExternalFeedBlockGUI\getOverview(), ilPDExternalFeedBlockGUI\getOverview(), ilPDTaggingBlockGUI\getOverview(), ilNewsForContextBlockGUI\getOverview(), ilCalendarBlockGUI\getOverview(), ilExternalFeedBlockGUI\importFile(), ilExternalFeedBlockGUIGen\initFormFeedBlock(), ilPDExternalFeedBlockGUI\initFormFeedBlock(), ilExternalFeedBlockGUI\initFormFeedBlock(), ilExternalFeedBlockGUI\initImportForm(), ilPDNewsBlockGUI\initPrivateSettingsForm(), ilNewsForContextBlockGUI\initSettingsForm(), ilPDTaggingBlockGUI\removeTagsWithoutAccess(), ilBookmarkBlockGUI\setFooterLinks(), ilCalendarBlockGUI\setFooterLinks(), setPreviousNextLinks(), ilCalendarBlockGUI\showCalendarSubscription(), ilExternalFeedBlockGUI\showFeedItem(), ilPDExternalFeedBlockGUI\showFeedItem(), ilPDNewsBlockGUI\showFeedUrl(), ilNewsForContextBlockGUI\showFeedUrl(), ilNewsForContextBlockGUI\showNews(), ilPDNotesBlockGUI\showNote(), ilPDTaggingBlockGUI\showResourcesForTag(), and ilNewsForContextBlockGUI\showViewFooter().

◆ $main_tpl

◆ $max_count

ilBlockGUI::$max_count = false
protected

Definition at line 42 of file class.ilBlockGUI.php.

Referenced by fillPreviousNext().

◆ $move

ilBlockGUI::$move = array("left" => false, "right" => false, "up" => false, "down" => false)
protected

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

◆ $nav_value

ilBlockGUI::$nav_value = ""
protected

Definition at line 46 of file class.ilBlockGUI.php.

Referenced by fillDataSection().

◆ $obj_def

ilBlockGUI::$obj_def
protected

Definition at line 84 of file class.ilBlockGUI.php.

Referenced by ilNewsForContextBlockGUI\getHTML(), and getHTML().

◆ $property

ilBlockGUI::$property = false
protected

Definition at line 45 of file class.ilBlockGUI.php.

◆ $tpl

◆ $user

ilBlockGUI::$user
protected

Definition at line 64 of file class.ilBlockGUI.php.

Referenced by ilCalendarBlockGUI\__construct(), ilCalendarBlockGUI\addMiniMonth(), ilPDNewsBlockGUI\changeFeedSettings(), ilExternalFeedBlockGUI\disableJS(), ilPDExternalFeedBlockGUI\disableJS(), ilNewsForContextBlockGUI\disableJS(), ilPDNewsBlockGUI\editSettings(), ilExternalFeedBlockGUI\enableJS(), ilPDExternalFeedBlockGUI\enableJS(), ilNewsForContextBlockGUI\enableJS(), ilPDNotesBlockGUI\fillDataSection(), ilBookmarkBlockGUI\fillDataSection(), ilPDPortfolioBlockGUI\fillDataSection(), ilPDTaggingBlockGUI\fillDataSection(), ilNewsForContextBlockGUI\fillFooter(), ilPollBlockGUI\fillRow(), ilPDNotesBlockGUI\fillRow(), ilBookmarkBlockGUI\fillRow(), ilExternalFeedBlockGUI\getDynamic(), ilPDExternalFeedBlockGUI\getDynamic(), ilNewsForContextBlockGUI\getDynamic(), ilPDPortfolioBlockGUI\getHTML(), ilWikiSearchBlockGUI\getHTML(), ilWikiSideBlockGUI\getHTML(), ilWikiFunctionsBlockGUI\getHTML(), ilDummyBlockGUI\getHTML(), ilExternalFeedBlockGUI\getHTML(), ilPDExternalFeedBlockGUI\getHTML(), ilPDNewsBlockGUI\getHTML(), ilNewsForContextBlockGUI\getHTML(), ilPollBlockGUI\getHTML(), ilCalendarBlockGUI\getHTML(), getHTML(), ilPDNotesBlockGUI\getListRowData(), ilBookmarkBlockGUI\getListRowData(), ilPDNewsBlockGUI\getNewsData(), ilNewsForContextBlockGUI\getNewsData(), ilPDNotesBlockGUI\getOverview(), ilBookmarkBlockGUI\getOverview(), ilExternalFeedBlockGUI\getOverview(), ilNewsForContextBlockGUI\getOverview(), ilBookmarkBlockGUI\getPDBookmarkListHTMLTree(), handleDetailLevel(), ilNewsForContextBlockGUI\handleView(), ilNewsForContextBlockGUI\hideNotifications(), ilPDNewsBlockGUI\initPrivateSettingsForm(), ilNewsForContextBlockGUI\initSettingsForm(), ilPDTaggingBlockGUI\removeTagsWithoutAccess(), ilPDNewsBlockGUI\saveSettings(), ilNewsForContextBlockGUI\saveSettings(), ilBookmarkBlockGUI\setFooterLinks(), ilBookmarkBlockGUI\setPdFlatMode(), ilCalendarBlockGUI\setPdModeEvents(), ilCalendarBlockGUI\setPdModeMonth(), ilBookmarkBlockGUI\setPdTreeMode(), ilCalendarBlockGUI\showCalendarSubscription(), ilPDNewsBlockGUI\showFeedUrl(), ilNewsForContextBlockGUI\showFeedUrl(), ilNewsForContextBlockGUI\showNews(), ilNewsForContextBlockGUI\showNotifications(), ilPDTaggingBlockGUI\showResourcesForTag(), ilNewsForContextBlockGUI\showViewFooter(), ilNewsForContextBlockGUI\subscribeNews(), and ilNewsForContextBlockGUI\unsubscribeNews().


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