ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilBlockGUI Class Reference

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

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

Public Member Functions

 __construct ()
 
 getBlockType ()
 
 setData (array $a_data)
 
 getData ()
 
 setPresentation (int $type)
 
 getPresentation ()
 
 setBlockId (string $a_block_id="0")
 
 getBlockId ()
 
 setGuiObject (object $a_gui_object)
 Set GuiObject. More...
 
 getGuiObject ()
 
 setTitle (string $a_title)
 
 getTitle ()
 
 setOffset (int $a_offset)
 
 getOffset ()
 
 correctOffset ()
 
 setLimit (int $a_limit)
 
 getLimit ()
 
 setEnableEdit (bool $a_enableedit)
 
 getEnableEdit ()
 
 setRepositoryMode (bool $a_repositorymode)
 
 getRepositoryMode ()
 
 setSubtitle (string $a_subtitle)
 
 getSubtitle ()
 
 setRefId (int $a_refid)
 Set Ref Id (only used if isRepositoryObject() is true). More...
 
 getRefId ()
 
 setAdminCommands (bool $a_admincommands)
 
 getAdminCommands ()
 
 setEnableNumInfo (bool $a_enablenuminfo)
 
 getEnableNumInfo ()
 
 setProperties (array $a_properties)
 This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties. More...
 
 getProperty (string $a_property)
 
 setProperty (string $a_property, string $a_value)
 
 setRowTemplate (string $a_rowtemplatename, string $a_rowtemplatedir="")
 Set Row Template Name. More...
 
 getNavParameter ()
 
 getConfigParameter ()
 
 getMoveParameter ()
 
 getRowTemplateName ()
 
 getRowTemplateDir ()
 
 addBlockCommand (string $a_href, string $a_text, string $a_onclick="")
 
 getBlockCommands ()
 
 getHTML ()
 
 fillHeaderCommands ()
 
 fillHeaderTitleBlock ()
 
 setDataSection (string $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 (array $a_set)
 
 fillFooter ()
 
 fillPreviousNext ()
 
 setPreviousNextLinks ()
 
 getAsynch ()
 Use this for final get before sending asynchronous output (ajax) per echo to output. More...
 
 getPaginationViewControl ()
 Fill previous/next row. More...
 
 getHTMLNew ()
 
 getNoItemFoundContent ()
 

Static Public Member Functions

static getScreenMode ()
 

Data Fields

const PRES_MAIN_LEG = 0
 
const PRES_SEC_LEG = 1
 
const PRES_SEC_LIST = 2
 
const PRES_MAIN_LIST = 3
 
const PRES_MAIN_TILE = 4
 

Protected Member Functions

 isRepositoryObject ()
 Returns whether block has a corresponding repository object. More...
 
 specialCharsAsEntities (string $string)
 
 initCommands ()
 
 fillRowColor (string $a_placeholder="CSS_ROW")
 
 preloadData (array $data)
 Can be overwritten in subclasses. More...
 
 getLegacyContent ()
 Get legacy content. More...
 
 getViewControls ()
 Get view controls. More...
 
 getListItemForData (array $data)
 Get list item for data array. More...
 
 handleNavigation ()
 Handle navigation. More...
 
 loadData ()
 Load data for current page. More...
 
 getListItemGroups ()
 Get items. More...
 
 addRepoCommands ()
 Add repo commands. More...
 
 send (string $output)
 Send. More...
 

Protected Attributes

object $gui_object
 
ILIAS Block StandardGUIRequest $request
 
ILIAS Block BlockManager $block_manager
 
bool $repositorymode = false
 
ILIAS DI UIServices $ui
 
array $data = array()
 
bool $enablenuminfo = true
 
array $footer_links = array()
 
string $block_id = "0"
 
bool $allow_moving = true
 
array $move = array("left" => false, "right" => false, "up" => false, "down" => false)
 
array $block_commands = array()
 
int $max_count = 0
 
bool $close_command = false
 
bool $image = false
 
array $property = []
 
string $nav_value = ""
 
string $css_row = ""
 
string $title = ""
 
bool $admincommands = false
 
array $dropdown
 
ilTemplate $tpl
 
ilGlobalTemplateInterface $main_tpl
 
ilObjUser $user
 
ilCtrl $ctrl
 
ilAccessHandler $access
 
ilLanguage $lng
 
ilObjectDefinition $obj_def
 
int $presentation
 
int $requested_ref_id
 
bool $new_rendering = false
 

Private Attributes

int $offset
 
int $limit
 
bool $enableedit
 
string $subtitle
 
int $refid
 
string $rowtemplatename
 
string $rowtemplatedir
 
ILIAS HTTP GlobalHttpState $http
 

Detailed Description

This class represents a block method of a block.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Constructor & Destructor Documentation

◆ __construct()

ilBlockGUI::__construct ( )

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

References $DIC, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), getBlockType(), ILIAS\FileDelivery\http(), ilYuiUtil\initConnection(), isRepositoryObject(), ILIAS\Repository\lng(), setLimit(), ILIAS\Repository\ui(), and ILIAS\Repository\user().

Referenced by ilPDNewsBlockGUI\__construct().

77  {
78  global $DIC;
79 
80 
81  $this->http = $DIC->http();
82  $block_service = new ILIAS\Block\Service($DIC);
83  $this->block_manager = $block_service->internal()
84  ->domain()
85  ->block();
86  $this->request = $block_service->internal()
87  ->gui()
88  ->standardRequest();
89 
90 
91  // default presentation
92  $this->presentation = self::PRES_SEC_LEG;
93 
94  $this->user = $DIC->user();
95  $this->ctrl = $DIC->ctrl();
96  $this->access = $DIC->access();
97  $this->lng = $DIC->language();
98  $this->main_tpl = $DIC["tpl"];
99  $this->obj_def = $DIC["objDefinition"];
100  $this->ui = $DIC->ui();
101 
103  $this->main_tpl->addJavaScript("./Services/Block/js/ilblockcallback.js");
104 
105  $this->setLimit((int) $this->user->getPref("hits_per_page"));
106 
107  $this->requested_ref_id = $this->request->getRefId();
108  }
setLimit(int $a_limit)
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
static initConnection(?ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Connection module.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Function Documentation

◆ addBlockCommand()

ilBlockGUI::addBlockCommand ( string  $a_href,
string  $a_text,
string  $a_onclick = "" 
)

◆ addRepoCommands()

ilBlockGUI::addRepoCommands ( )
protected

Add repo commands.

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

References $access, $ctrl, $lng, $obj_def, ilObject\_lookupType(), addBlockCommand(), ilRBACAccessHandler\checkAccess(), ilObjectDefinition\getClassName(), ilCtrl\getLinkTargetByClass(), getRefId(), getRepositoryMode(), isRepositoryObject(), ilCtrl\setParameterByClass(), and ilLanguage\txt().

Referenced by getHTMLNew().

810  : void
811  {
813  $lng = $this->lng;
814  $ctrl = $this->ctrl;
816 
817  if ($this->getRepositoryMode() && $this->isRepositoryObject()) {
818  // #10993
819  // @todo: fix this in new presentation somehow
820  /*
821  if ($this->getAdminCommands()) {
822  $this->tpl->setCurrentBlock("block_check");
823  $this->tpl->setVariable("BL_REF_ID", $this->getRefId());
824  $this->tpl->parseCurrentBlock();
825  }*/
826 
827  if ($access->checkAccess("delete", "", $this->getRefId())) {
828  $this->addBlockCommand(
829  "ilias.php?baseClass=ilRepositoryGUI&ref_id=" . $this->requested_ref_id . "&cmd=delete" .
830  "&item_ref_id=" . $this->getRefId(),
831  $lng->txt("delete")
832  );
833 
834  $this->addBlockCommand(
835  "ilias.php?baseClass=ilRepositoryGUI&ref_id=" . $this->requested_ref_id . "&cmd=link" .
836  "&item_ref_id=" . $this->getRefId(),
837  $lng->txt("link")
838  );
839 
840  // see ilObjectListGUI::insertCutCommand();
841  $this->addBlockCommand(
842  "ilias.php?baseClass=ilRepositoryGUI&ref_id=" . $this->requested_ref_id . "&cmd=cut" .
843  "&item_ref_id=" . $this->getRefId(),
844  $lng->txt("move")
845  );
846  }
847 
848  // #14595 - see ilObjectListGUI::insertCopyCommand()
849  if ($access->checkAccess("copy", "", $this->getRefId())) {
850  $parent_type = ilObject::_lookupType($this->requested_ref_id, true);
851  $parent_gui = "ilObj" . $obj_def->getClassName($parent_type) . "GUI";
852 
853  $ctrl->setParameterByClass("ilobjectcopygui", "source_id", $this->getRefId());
854  $copy_cmd = $ctrl->getLinkTargetByClass(
855  array("ilrepositorygui", $parent_gui, "ilobjectcopygui"),
856  "initTargetSelection"
857  );
858 
859  // see ilObjectListGUI::insertCopyCommand();
860  $this->addBlockCommand(
861  $copy_cmd,
862  $lng->txt("copy")
863  );
864  }
865  }
866  }
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
ilObjectDefinition $obj_def
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
ilLanguage $lng
checkAccess(string $a_permission, string $a_cmd, int $a_ref_id, string $a_type="", ?int $a_obj_id=null, ?int $a_tree_id=null)
check access for an object (provide $a_type and $a_obj_id if available for better performance) ...
setParameterByClass(string $a_class, string $a_parameter, $a_value)
getClassName(string $obj_name)
isRepositoryObject()
Returns whether block has a corresponding repository object.
ilAccessHandler $access
addBlockCommand(string $a_href, string $a_text, string $a_onclick="")
static _lookupType(int $id, bool $reference=false)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ correctOffset()

ilBlockGUI::correctOffset ( )

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

References setOffset().

Referenced by fillDataSection(), and loadData().

192  : void
193  {
194  if (!($this->offset < $this->max_count)) {
195  $this->setOffset(0);
196  }
197  }
setOffset(int $a_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 534 of file class.ilBlockGUI.php.

References correctOffset(), fillRow(), fillRowColor(), getData(), getLimit(), getNavParameter(), getOffset(), getRowTemplateDir(), getRowTemplateName(), preloadData(), and setOffset().

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

534  : void
535  {
536  $req_nav_par = $this->request->getNavPar($this->getNavParameter());
537  if ($req_nav_par != "") {
538  $this->nav_value = $req_nav_par;
539  }
540  $this->nav_value = ($this->nav_value != "")
541  ? $this->nav_value
542  : $this->block_manager->getNavPar($this->getNavParameter());
543 
544  $this->block_manager->setNavPar(
545  $this->getNavParameter(),
546  $this->nav_value
547  );
548 
549  $nav = explode(":", $this->nav_value);
550  if (isset($nav[2])) {
551  $this->setOffset((int) $nav[2]);
552  } else {
553  $this->setOffset(0);
554  }
555 
556  // data
557  $this->tpl->addBlockFile(
558  "BLOCK_ROW",
559  "block_row",
560  $this->getRowTemplateName(),
561  $this->getRowTemplateDir()
562  );
563 
564  $data = $this->getData();
565  $this->max_count = count($data);
566  $this->correctOffset();
567  $data = array_slice($data, $this->getOffset(), $this->getLimit());
568 
569  $this->preloadData($data);
570 
571  foreach ($data as $record) {
572  $this->tpl->setCurrentBlock("block_row");
573  $this->fillRowColor();
574  $this->fillRow($record);
575  $this->tpl->setCurrentBlock("block_row");
576  $this->tpl->parseCurrentBlock();
577  }
578  }
fillRow(array $a_set)
fillRowColor(string $a_placeholder="CSS_ROW")
setOffset(int $a_offset)
preloadData(array $data)
Can be overwritten in subclasses.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillFooter()

ilBlockGUI::fillFooter ( )

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

Referenced by getHTML().

587  : void
588  {
589  }
+ Here is the caller graph for this function:

◆ fillHeaderCommands()

ilBlockGUI::fillHeaderCommands ( )

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

References getBlockType(), ilUtil\getImagePath(), ilAdvancedSelectionListGUI\ICON_CONFIG, and ilAdvancedSelectionListGUI\STYLE_LINK_BUTTON.

Referenced by getHTML().

459  : void
460  {
461  // adv selection gui
463  $dropdown->setUseImages(true);
466  $dropdown->setId("block_dd_" . $this->getBlockType() . "_" . $this->block_id);
467  foreach ($this->dropdown as $item) {
468  if ($item["href"] || $item["onclick"]) {
469  if (isset($item["checked"]) && $item["checked"]) {
470  $item["image"] = ilUtil::getImagePath("icon_checked.svg");
471  }
472  $dropdown->addItem(
473  $item["text"],
474  "",
475  $item["href"],
476  $item["image"] ?? "",
477  $item["text"],
478  "",
479  "",
480  false,
481  $item["onclick"]
482  );
483  }
484  }
485  $dropdown = $dropdown->getHTML();
486  $this->tpl->setCurrentBlock("header_dropdown");
487  $this->tpl->setVariable("ADV_DROPDOWN", $dropdown);
488  $this->tpl->parseCurrentBlock();
489 
490  $this->tpl->setCurrentBlock("hitem");
491  $this->tpl->parseCurrentBlock();
492  }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillHeaderTitleBlock()

ilBlockGUI::fillHeaderTitleBlock ( )

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

References $lng, getBlockType(), getTitle(), and ilLanguage\txt().

Referenced by getHTML().

494  : void
495  {
496  $lng = $this->lng;
497 
498 
499  // header title
500  $this->tpl->setCurrentBlock("header_title");
501  $this->tpl->setVariable(
502  "BTID",
503  "block_" . $this->getBlockType() . "_" . $this->block_id
504  );
505  $this->tpl->setVariable(
506  "BLOCK_TITLE",
507  $this->getTitle()
508  );
509  $this->tpl->setVariable(
510  "TXT_BLOCK",
511  $lng->txt("block")
512  );
513  $this->tpl->parseCurrentBlock();
514 
515  $this->tpl->setCurrentBlock("hitem");
516  $this->tpl->parseCurrentBlock();
517  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
ilLanguage $lng
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillPreviousNext()

ilBlockGUI::fillPreviousNext ( )

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

References $lng, $max_count, getEnableNumInfo(), getLimit(), getOffset(), setPreviousNextLinks(), and ilLanguage\txt().

Referenced by getHTML().

599  : void
600  {
601  $lng = $this->lng;
602 
603  // table pn numinfo
604  $numinfo = "";
605  if ($this->getEnableNumInfo() && $this->max_count > 0) {
606  $start = $this->getOffset() + 1; // compute num info
607  $end = $this->getOffset() + $this->getLimit();
608 
609  if ($end > $this->max_count or $this->getLimit() == 0) {
610  $end = $this->max_count;
611  }
612 
613  $numinfo = "(" . $start . "-" . $end . " " . strtolower($lng->txt("of")) . " " . $this->max_count . ")";
614  }
615 
616  $this->setPreviousNextLinks();
617  $this->tpl->setVariable("NUMINFO", $numinfo);
618  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
ilLanguage $lng
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillRow()

ilBlockGUI::fillRow ( array  $a_set)

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

References ILIAS\LTI\ToolProvider\$key.

Referenced by fillDataSection().

580  : void
581  {
582  foreach ($a_set as $key => $value) {
583  $this->tpl->setVariable("VAL_" . strtoupper($key), $value);
584  }
585  }
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the caller graph for this function:

◆ fillRowColor()

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

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

Referenced by fillDataSection().

591  : void
592  {
593  $this->css_row = ($this->css_row != "ilBlockRow1")
594  ? "ilBlockRow1"
595  : "ilBlockRow2";
596  $this->tpl->setVariable($a_placeholder, $this->css_row);
597  }
+ Here is the caller graph for this function:

◆ getAdminCommands()

ilBlockGUI::getAdminCommands ( )

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

References $admincommands.

Referenced by getHTML().

257  : bool
258  {
259  return $this->admincommands;
260  }
+ Here is the caller graph for this function:

◆ getAsynch()

ilBlockGUI::getAsynch ( )

Use this for final get before sending asynchronous output (ajax) per echo to output.

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

636  : string
637  {
638  header("Content-type: text/html; charset=UTF-8");
639  return $this->tpl->get();
640  }

◆ getBlockCommands()

ilBlockGUI::getBlockCommands ( )

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

References $block_commands.

Referenced by getHTML(), and getHTMLNew().

336  : array
337  {
338  return $this->block_commands;
339  }
array $block_commands
+ Here is the caller graph for this function:

◆ getBlockId()

ilBlockGUI::getBlockId ( )

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

References $block_id.

Referenced by ilCalendarBlockGUI\__construct(), getConfigParameter(), ilNewsForContextBlockGUI\getDynamicReload(), ilNewsForContextBlockGUI\getJSEnabler(), getMoveParameter(), getNavParameter(), and ilCalendarBlockGUI\setSeed().

152  : string
153  {
154  return $this->block_id;
155  }
+ Here is the caller graph for this function:

◆ getBlockType()

ilBlockGUI::getBlockType ( )
abstract

◆ getConfigParameter()

ilBlockGUI::getConfigParameter ( )
final

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

References getBlockId(), and getBlockType().

307  : string
308  {
309  return $this->getBlockType() . "_" . $this->getBlockId() . "_blconf";
310  }
+ Here is the call graph for this function:

◆ getData()

ilBlockGUI::getData ( )

◆ getEnableEdit()

ilBlockGUI::getEnableEdit ( )

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

References $enableedit.

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

214  : bool
215  {
216  return $this->enableedit;
217  }
+ Here is the caller graph for this function:

◆ getEnableNumInfo()

ilBlockGUI::getEnableNumInfo ( )

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

References $enablenuminfo.

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

267  : bool
268  {
269  return $this->enablenuminfo;
270  }
+ Here is the caller graph for this function:

◆ getGuiObject()

ilBlockGUI::getGuiObject ( )

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

References $gui_object.

167  : object
168  {
169  return $this->gui_object;
170  }
object $gui_object

◆ getHTML()

ilBlockGUI::getHTML ( )

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

References $access, $ctrl, $ilUser, $lng, $obj_def, $user, ilObject\_lookupType(), addBlockCommand(), fillDataSection(), fillFooter(), fillHeaderCommands(), fillHeaderTitleBlock(), fillPreviousNext(), getAdminCommands(), getBlockCommands(), getBlockType(), getHTMLNew(), getPresentation(), getRefId(), getRepositoryMode(), initCommands(), isRepositoryObject(), and ilLanguage\txt().

Referenced by ilPDNewsBlockGUI\getHTML().

350  : string
351  {
352  $this->initCommands();
353 
354  if ($this->new_rendering) {
355  return $this->getHTMLNew();
356  }
357 
358  $ilCtrl = $this->ctrl;
359  $lng = $this->lng;
360  $ilAccess = $this->access;
362  $objDefinition = $this->obj_def;
363 
364  if ($this->isRepositoryObject()) {
365  if (!$ilAccess->checkAccess("read", "", $this->getRefId())) {
366  return "";
367  }
368  }
369 
370  $this->tpl = new ilTemplate("tpl.block.html", true, true, "Services/Block");
371 
372  // $this->handleConfigStatus();
373 
374  $this->fillDataSection();
375  if ($this->getRepositoryMode() && $this->isRepositoryObject()) {
376  // #10993
377  // @todo: fix this in new presentation somehow
378  if ($this->getAdminCommands()) {
379  $this->tpl->setCurrentBlock("block_check");
380  $this->tpl->setVariable("BL_REF_ID", $this->getRefId());
381  $this->tpl->parseCurrentBlock();
382  }
383 
384  if ($ilAccess->checkAccess("delete", "", $this->getRefId())) {
385  $this->addBlockCommand(
386  "ilias.php?baseClass=ilRepositoryGUI&ref_id=" . $this->requested_ref_id . "&cmd=delete" .
387  "&item_ref_id=" . $this->getRefId(),
388  $lng->txt("delete")
389  );
390 
391  // see ilObjectListGUI::insertCutCommand();
392  $this->addBlockCommand(
393  "ilias.php?baseClass=ilRepositoryGUI&ref_id=" . $this->requested_ref_id . "&cmd=cut" .
394  "&item_ref_id=" . $this->getRefId(),
395  $lng->txt("move")
396  );
397  }
398 
399  // #14595 - see ilObjectListGUI::insertCopyCommand()
400  if ($ilAccess->checkAccess("copy", "", $this->getRefId())) {
401  $parent_type = ilObject::_lookupType($this->requested_ref_id, true);
402  $parent_gui = "ilObj" . $objDefinition->getClassName($parent_type) . "GUI";
403 
404  $ilCtrl->setParameterByClass("ilobjectcopygui", "source_id", $this->getRefId());
405  $copy_cmd = $ilCtrl->getLinkTargetByClass(
406  array("ilrepositorygui", $parent_gui, "ilobjectcopygui"),
407  "initTargetSelection"
408  );
409 
410  // see ilObjectListGUI::insertCopyCommand();
411  $this->addBlockCommand(
412  $copy_cmd,
413  $lng->txt("copy")
414  );
415  }
416  }
417 
418  $this->dropdown = array();
419 
420  // commands
421  if (count($this->getBlockCommands()) > 0) {
422  foreach ($this->getBlockCommands() as $command) {
423  if ($command["onclick"]) {
424  $command["onclick"] = "ilBlockJSHandler('" . "block_" . $this->getBlockType() . "_" . $this->block_id .
425  "','" . $command["onclick"] . "')";
426  }
427  $this->dropdown[] = $command;
428  }
429  }
430 
431  // fill previous next
432  $this->fillPreviousNext();
433 
434  // fill footer
435  $this->fillFooter();
436 
437 
438  $this->fillHeaderCommands();
439  $this->fillHeaderTitleBlock();
440 
441  if ($this->getPresentation() === self::PRES_MAIN_LEG) {
442  $this->tpl->touchBlock("hclassb");
443  } else {
444  $this->tpl->touchBlock("hclass");
445  }
446 
447  if ($ilCtrl->isAsynch()) {
448  // return without div wrapper
449  echo $this->tpl->get();
450  //echo $this->tpl->getAsynch();
451  } else {
452  // return incl. wrapping div with id
453  return '<div id="' . "block_" . $this->getBlockType() . "_" . $this->block_id . '">' .
454  $this->tpl->get() . '</div>';
455  }
456  return "";
457  }
ilObjUser $user
ilObjectDefinition $obj_def
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
ilLanguage $lng
$ilUser
Definition: imgupload.php:34
isRepositoryObject()
Returns whether block has a corresponding repository object.
ilAccessHandler $access
addBlockCommand(string $a_href, string $a_text, string $a_onclick="")
static _lookupType(int $id, bool $reference=false)
fillDataSection()
Standard implementation for row based data.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getHTMLNew()

ilBlockGUI::getHTMLNew ( )

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

References $access, $ctrl, $DIC, $factory, $id, $panel, addRepoCommands(), ilRBACAccessHandler\checkAccess(), getBlockCommands(), getBlockType(), getListItemGroups(), getPresentation(), getTitle(), getViewControls(), handleNavigation(), ilCtrl\isAsynch(), isRepositoryObject(), ILIAS\Repository\lng(), send(), and specialCharsAsEntities().

Referenced by getHTML().

868  : string
869  {
870  global $DIC;
871  $factory = $DIC->ui()->factory();
872  $renderer = $DIC->ui()->renderer();
874  $panel = null;
875 
876  $ctrl = $this->ctrl;
877 
878  if ($this->isRepositoryObject()) {
879  if (!$access->checkAccess("read", "", $this->getRefId())) {
880  return "";
881  }
882  }
883 
884  $this->addRepoCommands();
885 
886  switch ($this->getPresentation()) {
887  case self::PRES_SEC_LEG:
888  $panel = $factory->panel()->secondary()->legacy(
889  $this->specialCharsAsEntities($this->getTitle()),
890  $factory->legacy($this->getLegacyContent())
891  );
892  break;
893 
894  case self::PRES_MAIN_LEG:
895  $panel = $factory->panel()->standard(
896  $this->specialCharsAsEntities($this->getTitle()),
897  $factory->legacy($this->getLegacyContent())
898  );
899  break;
900 
901  case self::PRES_SEC_LIST:
902  $this->handleNavigation();
903  $panel = $factory->panel()->secondary()->listing(
904  $this->specialCharsAsEntities($this->getTitle()),
905  $this->getListItemGroups()
906  );
907  break;
908 
909  case self::PRES_MAIN_TILE:
910  case self::PRES_MAIN_LIST:
911  $this->handleNavigation();
912  $panel = $factory->panel()->listing()->standard(
913  $this->specialCharsAsEntities($this->getTitle()),
914  $this->getListItemGroups()
915  );
916  break;
917 
918  }
919 
920  // actions
921  $actions = [];
922 
923  foreach ($this->getBlockCommands() as $command) {
924  $href = ($command["onclick"] != "")
925  ? ""
926  : $command["href"];
927  $button = $factory->button()->shy($command["text"], $href);
928  if ($command["onclick"]) {
929  $button = $button->withOnLoadCode(function ($id) use ($command) {
930  return
931  "$(\"#$id\").click(function() { ilBlockJSHandler('" . "block_" . $this->getBlockType() . "_" . $this->block_id .
932  "','" . $command["onclick"] . "');});";
933  });
934  }
935  $actions[] = $button;
936  }
937 
938  // check for empty list panel
939  if (in_array($this->getPresentation(), [self::PRES_SEC_LIST, self::PRES_MAIN_LIST]) &&
940  (count($panel->getItemGroups()) == 0 || (count($panel->getItemGroups()) == 1 && count($panel->getItemGroups()[0]->getItems()) == 0))) {
941  if ($this->getPresentation() == self::PRES_SEC_LIST) {
942  $panel = $factory->panel()->secondary()->legacy(
943  $this->specialCharsAsEntities($this->getTitle()),
944  $factory->legacy($this->getNoItemFoundContent())
945  );
946  } else {
947  $panel = $factory->panel()->standard(
948  $this->specialCharsAsEntities($this->getTitle()),
949  $factory->legacy($this->getNoItemFoundContent())
950  );
951  }
952  }
953 
954 
955  if (count($actions) > 0) {
956  $actions = $factory->dropdown()->standard($actions)
957  ->withAriaLabel(sprintf(
958  $this->lng->txt('actions_for'),
959  htmlspecialchars($this->getTitle())
960  ));
961  $panel = $panel->withActions($actions);
962  }
963 
964  // view controls
965  if (count($this->getViewControls()) > 0) {
966  $panel = $panel->withViewControls($this->getViewControls());
967  }
968 
969  if ($ctrl->isAsynch()) {
970  $html = $renderer->renderAsync($panel);
971  } else {
972  $html = $renderer->render($panel);
973  }
974 
975 
976  if ($ctrl->isAsynch()) {
977  $this->send($html);
978  } else {
979  // return incl. wrapping div with id
980  $html = '<div id="' . "block_" . $this->getBlockType() . "_" . $this->block_id . '">' .
981  $html . '</div>';
982  }
983 
984  return $html;
985  }
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $panel
Definition: imgupload.php:198
handleNavigation()
Handle navigation.
send(string $output)
Send.
addRepoCommands()
Add repo commands.
checkAccess(string $a_permission, string $a_cmd, int $a_ref_id, string $a_type="", ?int $a_obj_id=null, ?int $a_tree_id=null)
check access for an object (provide $a_type and $a_obj_id if available for better performance) ...
specialCharsAsEntities(string $string)
global $DIC
Definition: feed.php:28
getListItemGroups()
Get items.
getViewControls()
Get view controls.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
isRepositoryObject()
Returns whether block has a corresponding repository object.
ilAccessHandler $access
$factory
Definition: metadata.php:75
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLegacyContent()

ilBlockGUI::getLegacyContent ( )
protected

Get legacy content.

Returns
string

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

655  : string
656  {
657  return "";
658  }

◆ getLimit()

ilBlockGUI::getLimit ( )

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

References $limit.

Referenced by fillDataSection(), fillPreviousNext(), getPaginationViewControl(), handleNavigation(), and loadData().

204  : int
205  {
206  return $this->limit;
207  }
+ Here is the caller graph for this function:

◆ getListItemForData()

ilBlockGUI::getListItemForData ( array  $data)
protected

Get list item for data array.

Parameters
array$data
Returns
null|

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

Referenced by getListItemGroups().

683  {
684  return null;
685  }
Common interface to all items.
Definition: Item.php:31
+ Here is the caller graph for this function:

◆ getListItemGroups()

ilBlockGUI::getListItemGroups ( )
protected

Get items.

Returns
[]

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

References $DIC, $factory, getListItemForData(), and loadData().

Referenced by getHTMLNew().

735  : array
736  {
737  global $DIC;
738  $factory = $DIC->ui()->factory();
739 
740  $data = $this->loadData();
741 
742  $items = [];
743 
744  foreach ($data as $record) {
745  $item = $this->getListItemForData($record);
746  if ($item !== null) {
747  $items[] = $item;
748  }
749  }
750 
751  $item_group = $factory->item()->group("", $items);
752 
753  return [$item_group];
754  }
global $DIC
Definition: feed.php:28
getListItemForData(array $data)
Get list item for data array.
loadData()
Load data for current page.
$factory
Definition: metadata.php:75
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMoveParameter()

ilBlockGUI::getMoveParameter ( )
final

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

References getBlockId(), and getBlockType().

312  : string
313  {
314  return $this->getBlockType() . "_" . $this->getBlockId() . "_blmove";
315  }
+ Here is the call graph for this function:

◆ getNavParameter()

ilBlockGUI::getNavParameter ( )
final

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

References getBlockId(), and getBlockType().

Referenced by fillDataSection(), getPaginationViewControl(), and handleNavigation().

302  : string
303  {
304  return $this->getBlockType() . "_" . $this->getBlockId() . "_blnav";
305  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getNoItemFoundContent()

ilBlockGUI::getNoItemFoundContent ( )

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

References ILIAS\Repository\lng().

1000  : string
1001  {
1002  return $this->lng->txt("no_items");
1003  }
+ Here is the call graph for this function:

◆ getOffset()

ilBlockGUI::getOffset ( )

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

References $offset.

Referenced by fillDataSection(), fillPreviousNext(), getPaginationViewControl(), and loadData().

187  : int
188  {
189  return $this->offset;
190  }
+ Here is the caller graph for this function:

◆ getPaginationViewControl()

ilBlockGUI::getPaginationViewControl ( )

Fill previous/next row.

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

References $block_id, $ctrl, $DIC, $factory, getBlockType(), getLimit(), getNavParameter(), getOffset(), and ilCtrl\setParameterByClass().

Referenced by getViewControls().

760  {
761  global $DIC;
762  $factory = $DIC->ui()->factory();
763 
764  $ilCtrl = $this->ctrl;
765 
766 
767  // $ilCtrl->setParameterByClass("ilcolumngui",
768  // $this->getNavParameter(), "::" . $prevoffset);
769 
770  // ajax link
771  $ilCtrl->setParameterByClass(
772  "ilcolumngui",
773  "block_id",
774  "block_" . $this->getBlockType() . "_" . $this->block_id
775  );
776  $block_id = "block_" . $this->getBlockType() . "_" . $this->block_id;
777  $onclick = $ilCtrl->getLinkTargetByClass(
778  "ilcolumngui",
779  "updateBlock",
780  "",
781  true
782  );
783  $ilCtrl->setParameterByClass(
784  "ilcolumngui",
785  "block_id",
786  ""
787  );
788 
789  // normal link
790  $href = $ilCtrl->getLinkTargetByClass("ilcolumngui", "", "", false, false);
791 
792  //$ilCtrl->setParameterByClass("ilcolumngui",
793  // $this->getNavParameter(), "");
794 
795  if ($this->max_count <= $this->getLimit()) {
796  return null;
797  }
798 
799  return $factory->viewControl()->pagination()
800  ->withTargetURL($href, $this->getNavParameter() . "page")
801  ->withTotalEntries($this->max_count)
802  ->withPageSize($this->getLimit())
803  ->withMaxPaginationButtons(5)
804  ->withCurrentPage($this->getOffset() / $this->getLimit());
805  }
setParameterByClass(string $a_class, string $a_parameter, $a_value)
This describes a Pagination Control.
Definition: Pagination.php:32
global $DIC
Definition: feed.php:28
$factory
Definition: metadata.php:75
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPresentation()

ilBlockGUI::getPresentation ( )

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

References $presentation.

Referenced by getHTML(), getHTMLNew(), getViewControls(), and ilCalendarBlockGUI\getViewControls().

142  : int
143  {
144  return $this->presentation;
145  }
+ Here is the caller graph for this function:

◆ getProperty()

ilBlockGUI::getProperty ( string  $a_property)

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

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

281  : ?string
282  {
283  return $this->property[$a_property] ?? null;
284  }
+ Here is the caller graph for this function:

◆ getRefId()

ilBlockGUI::getRefId ( )

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

References $refid.

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

247  : int
248  {
249  return $this->refid;
250  }
+ Here is the caller graph for this function:

◆ getRepositoryMode()

ilBlockGUI::getRepositoryMode ( )

◆ getRowTemplateDir()

ilBlockGUI::getRowTemplateDir ( )

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

References $rowtemplatedir.

Referenced by fillDataSection(), and ilPollBlockGUI\getLegacyContent().

322  : string
323  {
324  return $this->rowtemplatedir;
325  }
string $rowtemplatedir
+ Here is the caller graph for this function:

◆ getRowTemplateName()

ilBlockGUI::getRowTemplateName ( )

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

References $rowtemplatename.

Referenced by fillDataSection(), and ilPollBlockGUI\getLegacyContent().

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

◆ getScreenMode()

static ilBlockGUI::getScreenMode ( )
static

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

References IL_SCREEN_SIDE.

341  : string
342  {
343  return IL_SCREEN_SIDE;
344  }
const IL_SCREEN_SIDE

◆ getSubtitle()

ilBlockGUI::getSubtitle ( )

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

References $subtitle.

234  : string
235  {
236  return $this->subtitle;
237  }

◆ getTitle()

ilBlockGUI::getTitle ( )

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

References $title.

Referenced by fillHeaderTitleBlock(), getHTMLNew(), and ilWikiFunctionsBlockGUI\getLegacyContent().

177  : string
178  {
179  return $this->title;
180  }
+ Here is the caller graph for this function:

◆ getViewControls()

ilBlockGUI::getViewControls ( )
protected

Get view controls.

Returns
array

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

References getPaginationViewControl(), and getPresentation().

Referenced by getHTMLNew().

665  : array
666  {
667  if ($this->getPresentation() == self::PRES_SEC_LIST) {
668  $pg_view_control = $this->getPaginationViewControl();
669  if (!is_null($pg_view_control)) {
670  return [$pg_view_control];
671  }
672  }
673  return [];
674  }
getPaginationViewControl()
Fill previous/next row.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleNavigation()

ilBlockGUI::handleNavigation ( )
protected

Handle navigation.

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

References getLimit(), getNavParameter(), and setOffset().

Referenced by getHTMLNew().

691  : void
692  {
693  $reg_page = $this->request->getNavPage($this->getNavParameter());
694  if ($reg_page !== "") {
695  $this->nav_value = "::" . ($reg_page * $this->getLimit());
696  }
697 
698  if ($this->nav_value == "") {
699  $this->nav_value = $this->block_manager->getNavPar($this->getNavParameter());
700  }
701 
702  $this->block_manager->setNavPar(
703  $this->getNavParameter(),
704  $this->nav_value
705  );
706 
707  $nav = explode(":", $this->nav_value);
708  if (isset($nav[2])) {
709  $this->setOffset((int) $nav[2]);
710  } else {
711  $this->setOffset(0);
712  }
713  }
setOffset(int $a_offset)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initCommands()

ilBlockGUI::initCommands ( )
protected

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

Referenced by getHTML().

346  : void
347  {
348  }
+ Here is the caller graph for this function:

◆ isRepositoryObject()

ilBlockGUI::isRepositoryObject ( )
abstractprotected

Returns whether block has a corresponding repository object.

Referenced by __construct(), addRepoCommands(), getHTML(), and getHTMLNew().

+ Here is the caller graph for this function:

◆ loadData()

ilBlockGUI::loadData ( )
protected

Load data for current page.

Returns
array

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

References $data, correctOffset(), getData(), getLimit(), getOffset(), and preloadData().

Referenced by getListItemGroups().

719  : array
720  {
721  $data = $this->getData();
722  $this->max_count = count($data);
723  $this->correctOffset();
724  $data = array_slice($data, $this->getOffset(), $this->getLimit());
725  $this->preloadData($data);
726  return $data;
727  }
preloadData(array $data)
Can be overwritten in subclasses.
+ Here is the call graph for this function:
+ 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 628 of file class.ilBlockGUI.php.

Referenced by fillDataSection(), and loadData().

628  : void
629  {
630  }
+ Here is the caller graph for this function:

◆ send()

ilBlockGUI::send ( string  $output)
protected

Send.

Exceptions
ResponseSendingException

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

References ILIAS\FileDelivery\http().

Referenced by ilNewsForContextBlockGUI\enableJS(), getHTMLNew(), ilNewsForContextBlockGUI\hideNotifications(), and ilNewsForContextBlockGUI\showNotifications().

991  : void
992  {
993  $this->http->saveResponse($this->http->response()->withBody(
994  Streams::ofString($output)
995  ));
996  $this->http->sendResponse();
997  $this->http->close();
998  }
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAdminCommands()

ilBlockGUI::setAdminCommands ( bool  $a_admincommands)

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

252  : void
253  {
254  $this->admincommands = $a_admincommands;
255  }

◆ setBlockId()

ilBlockGUI::setBlockId ( string  $a_block_id = "0")

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

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

147  : void
148  {
149  $this->block_id = $a_block_id;
150  }
+ Here is the caller graph for this function:

◆ setData()

◆ setDataSection()

ilBlockGUI::setDataSection ( string  $a_content)

Call this from overwritten fillDataSection(), if standard row based data is not used.

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

Referenced by ilWikiImportantPagesBlockGUI\fillDataSection(), ilPDTasksBlockGUI\fillDataSection(), ilRepositoryObjectSearchBlockGUI\fillDataSection(), ilWikiFunctionsBlockGUI\fillDataSection(), ilObjectMetaDataBlockGUI\fillDataSection(), ilPDMailBlockGUI\fillDataSection(), ilPDNewsBlockGUI\fillDataSection(), ilPDSelectedItemsBlockGUI\fillDataSection(), ilNewsForContextBlockGUI\fillDataSection(), ilCalendarBlockGUI\fillDataSection(), and ilPollBlockGUI\fillDataSection().

522  : void
523  {
524  $this->tpl->setCurrentBlock("data_section");
525  $this->tpl->setVariable("DATA", $a_content);
526  $this->tpl->parseCurrentBlock();
527  $this->tpl->setVariable("BLOCK_ROW", "");
528  }
+ Here is the caller graph for this function:

◆ setEnableEdit()

ilBlockGUI::setEnableEdit ( bool  $a_enableedit)

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

209  : void
210  {
211  $this->enableedit = $a_enableedit;
212  }

◆ setEnableNumInfo()

◆ setGuiObject()

ilBlockGUI::setGuiObject ( object  $a_gui_object)

Set GuiObject.

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

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

162  : void
163  {
164  $this->gui_object = $a_gui_object;
165  }

◆ setLimit()

◆ setOffset()

ilBlockGUI::setOffset ( int  $a_offset)

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

Referenced by correctOffset(), fillDataSection(), and handleNavigation().

182  : void
183  {
184  $this->offset = $a_offset;
185  }
+ Here is the caller graph for this function:

◆ setPresentation()

◆ setPreviousNextLinks()

ilBlockGUI::setPreviousNextLinks ( )

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

Referenced by fillPreviousNext().

620  : void
621  {
622  }
+ Here is the caller graph for this function:

◆ setProperties()

ilBlockGUI::setProperties ( array  $a_properties)

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

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

276  : void
277  {
278  $this->property = $a_properties;
279  }

◆ setProperty()

ilBlockGUI::setProperty ( string  $a_property,
string  $a_value 
)

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

286  : void
287  {
288  $this->property[$a_property] = $a_value;
289  }

◆ setRefId()

ilBlockGUI::setRefId ( int  $a_refid)

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

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

242  : void
243  {
244  $this->refid = $a_refid;
245  }

◆ setRepositoryMode()

ilBlockGUI::setRepositoryMode ( bool  $a_repositorymode)

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

219  : void
220  {
221  $this->repositorymode = $a_repositorymode;
222  }

◆ setRowTemplate()

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

Set Row Template Name.

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

Referenced by ilPDNewsBlockGUI\__construct(), ilPollBlockGUI\__construct(), ilNewsForContextBlockGUI\__construct(), ilPDTasksBlockGUI\fillDataSection(), ilPDMailBlockGUI\fillDataSection(), and ilCalendarBlockGUI\fillDataSection().

297  : void {
298  $this->rowtemplatename = $a_rowtemplatename;
299  $this->rowtemplatedir = $a_rowtemplatedir;
300  }
+ Here is the caller graph for this function:

◆ setSubtitle()

ilBlockGUI::setSubtitle ( string  $a_subtitle)

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

229  : void
230  {
231  $this->subtitle = $a_subtitle;
232  }

◆ setTitle()

◆ specialCharsAsEntities()

ilBlockGUI::specialCharsAsEntities ( string  $string)
protected

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

Referenced by ilPollBlockGUI\fillRow(), and getHTMLNew().

117  : string
118  {
119  // Should be replaced by a proper refinery transformation once https://github.com/ILIAS-eLearning/ILIAS/pull/6314 is merged
120  return htmlspecialchars(
121  $string,
122  ENT_QUOTES | ENT_SUBSTITUTE,
123  'utf-8'
124  );
125  }
+ Here is the caller graph for this function:

Field Documentation

◆ $access

◆ $admincommands

bool ilBlockGUI::$admincommands = false
protected

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

Referenced by getAdminCommands().

◆ $allow_moving

bool ilBlockGUI::$allow_moving = true
protected

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

◆ $block_commands

array ilBlockGUI::$block_commands = array()
protected

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

Referenced by getBlockCommands().

◆ $block_id

string ilBlockGUI::$block_id = "0"
protected

◆ $block_manager

ILIAS Block BlockManager ilBlockGUI::$block_manager
protected

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

◆ $close_command

bool ilBlockGUI::$close_command = false
protected

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

◆ $css_row

string ilBlockGUI::$css_row = ""
protected

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

◆ $ctrl

◆ $data

◆ $dropdown

array ilBlockGUI::$dropdown
protected

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

◆ $enableedit

bool ilBlockGUI::$enableedit
private

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

Referenced by getEnableEdit().

◆ $enablenuminfo

bool ilBlockGUI::$enablenuminfo = true
protected

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

Referenced by getEnableNumInfo().

◆ $footer_links

array ilBlockGUI::$footer_links = array()
protected

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

◆ $gui_object

object ilBlockGUI::$gui_object
protected

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

Referenced by getGuiObject().

◆ $http

ILIAS HTTP GlobalHttpState ilBlockGUI::$http
private

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

◆ $image

bool ilBlockGUI::$image = false
protected

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

◆ $limit

int ilBlockGUI::$limit
private

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

Referenced by getLimit().

◆ $lng

◆ $main_tpl

◆ $max_count

int ilBlockGUI::$max_count = 0
protected

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

Referenced by fillPreviousNext().

◆ $move

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

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

◆ $nav_value

string ilBlockGUI::$nav_value = ""
protected

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

◆ $new_rendering

bool ilBlockGUI::$new_rendering = false
protected

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

◆ $obj_def

ilObjectDefinition ilBlockGUI::$obj_def
protected

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

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

◆ $offset

int ilBlockGUI::$offset
private

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

Referenced by getOffset().

◆ $presentation

◆ $property

array ilBlockGUI::$property = []
protected

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

◆ $refid

int ilBlockGUI::$refid
private

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

Referenced by getRefId().

◆ $repositorymode

bool ilBlockGUI::$repositorymode = false
protected

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

Referenced by getRepositoryMode().

◆ $request

ILIAS Block StandardGUIRequest ilBlockGUI::$request
protected

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

Referenced by ilWikiFunctionsBlockGUI\__construct().

◆ $requested_ref_id

int ilBlockGUI::$requested_ref_id
protected

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

Referenced by ilClassificationBlockGUI\__construct().

◆ $rowtemplatedir

string ilBlockGUI::$rowtemplatedir
private

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

Referenced by getRowTemplateDir().

◆ $rowtemplatename

string ilBlockGUI::$rowtemplatename
private

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

Referenced by getRowTemplateName().

◆ $subtitle

string ilBlockGUI::$subtitle
private

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

Referenced by getSubtitle().

◆ $title

◆ $tpl

◆ $ui

◆ $user

◆ PRES_MAIN_LEG

const ilBlockGUI::PRES_MAIN_LEG = 0

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

◆ PRES_MAIN_LIST

const ilBlockGUI::PRES_MAIN_LIST = 3

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

◆ PRES_MAIN_TILE

const ilBlockGUI::PRES_MAIN_TILE = 4

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

◆ PRES_SEC_LEG

const ilBlockGUI::PRES_SEC_LEG = 1

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

◆ PRES_SEC_LIST

const ilBlockGUI::PRES_SEC_LIST = 2

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


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