ILIAS  release_8 Revision v8.24
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 ( )

Reimplemented in ilPollBlockGUI, ilPDStudyProgrammeSimpleListGUI, ilWikiFunctionsBlockGUI, ilWikiImportantPagesBlockGUI, ilCalendarBlockGUI, ilConsultationHoursCalendarBlockGUI, ilPDCalendarBlockGUI, ilClassificationBlockGUI, ilDashboardContentBlockGUI, ilPDMailBlockGUI, ilNewsForContextBlockGUI, ilPDNewsBlockGUI, and ilPDTasksBlockGUI.

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

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)
static initConnection(?ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Connection module.
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.

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

Referenced by ilPDNewsBlockGUI\__construct().

+ 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 = "" 
)

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

327 : void
328 {
329 $this->block_commands[] = [
330 "href" => $a_href,
331 "text" => $a_text,
332 "onclick" => $a_onclick
333 ];
334 }

Referenced by ilCalendarSelectionBlockGUI\__construct(), ilPollBlockGUI\getHTML(), ilCalendarBlockGUI\getHTML(), ilNewsForContextBlockGUI\getHTML(), ilPDNewsBlockGUI\getHTML(), ilWikiImportantPagesBlockGUI\getHTML(), and ilCalendarBlockGUI\initCommands().

+ Here is the caller graph for this function:

◆ addRepoCommands()

ilBlockGUI::addRepoCommands ( )
protected

Add repo commands.

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

810 : void
811 {
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 }
ilAccessHandler $access
ilLanguage $lng
isRepositoryObject()
Returns whether block has a corresponding repository object.
ilObjectDefinition $obj_def
addBlockCommand(string $a_href, string $a_text, string $a_onclick="")
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
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...
getClassName(string $obj_name)
static _lookupType(int $id, bool $reference=false)
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)

References $lng, ilObject\_lookupType(), ilRBACAccessHandler\checkAccess(), ilObjectDefinition\getClassName(), ilCtrl\getLinkTargetByClass(), and ilCtrl\setParameterByClass().

+ Here is the call graph for this function:

◆ correctOffset()

ilBlockGUI::correctOffset ( )

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

192 : void
193 {
194 if (!($this->offset < $this->max_count)) {
195 $this->setOffset(0);
196 }
197 }
setOffset(int $a_offset)

References setOffset().

+ Here is the call graph for this function:

◆ fillDataSection()

ilBlockGUI::fillDataSection ( )

Standard implementation for row based data.

Overwrite this and call setContent for other data.

Reimplemented in ilPollBlockGUI, ilPDStudyProgrammeSimpleListGUI, ilWikiFunctionsBlockGUI, ilWikiImportantPagesBlockGUI, ilCalendarBlockGUI, ilDashboardContentBlockGUI, ilPDSelectedItemsBlockGUI, ilPDMailBlockGUI, ilNewsForContextBlockGUI, ilPDNewsBlockGUI, ilObjectMetaDataBlockGUI, ilRepositoryObjectSearchBlockGUI, and ilPDTasksBlockGUI.

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

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(),
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 }
preloadData(array $data)
Can be overwritten in subclasses.
fillRowColor(string $a_placeholder="CSS_ROW")
fillRow(array $a_set)

References $data.

Referenced by ilCalendarBlockGUI\fillDataSection().

+ Here is the caller graph for this function:

◆ fillFooter()

ilBlockGUI::fillFooter ( )

Reimplemented in ilDashboardContentBlockGUI.

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

587 : void
588 {
589 }

◆ fillHeaderCommands()

ilBlockGUI::fillHeaderCommands ( )

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

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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)

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

+ Here is the call graph for this function:

◆ fillHeaderTitleBlock()

ilBlockGUI::fillHeaderTitleBlock ( )

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

494 : void
495 {
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 }

References $lng.

◆ fillPreviousNext()

ilBlockGUI::fillPreviousNext ( )

Reimplemented in ilDashboardContentBlockGUI.

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

599 : void
600 {
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 }

References $lng.

◆ fillRow()

ilBlockGUI::fillRow ( array  $a_set)

Reimplemented in ilPollBlockGUI, ilPDMailBlockGUI, ilNewsForContextBlockGUI, and ilPDTasksBlockGUI.

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

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

References ILIAS\LTI\ToolProvider\$key.

◆ fillRowColor()

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

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

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 }

◆ getAdminCommands()

ilBlockGUI::getAdminCommands ( )

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

257 : bool
258 {
260 }

References $admincommands.

◆ 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.

336 : array
337 {
339 }
array $block_commands

◆ getBlockId()

ilBlockGUI::getBlockId ( )

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

152 : string
153 {
154 return $this->block_id;
155 }

References $block_id.

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

+ Here is the caller graph for this function:

◆ getBlockType()

◆ getConfigParameter()

ilBlockGUI::getConfigParameter ( )
final

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

307 : string
308 {
309 return $this->getBlockType() . "_" . $this->getBlockId() . "_blconf";
310 }

◆ getData()

◆ getEnableEdit()

ilBlockGUI::getEnableEdit ( )

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

214 : bool
215 {
216 return $this->enableedit;
217 }

References $enableedit.

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

+ Here is the caller graph for this function:

◆ getEnableNumInfo()

ilBlockGUI::getEnableNumInfo ( )

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

267 : bool
268 {
270 }

References $enablenuminfo.

Referenced by ilDashboardContentBlockGUI\fillFooter().

+ Here is the caller graph for this function:

◆ getGuiObject()

ilBlockGUI::getGuiObject ( )

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

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

References $gui_object.

◆ getHTML()

ilBlockGUI::getHTML ( )

Reimplemented in ilPollBlockGUI, ilPDStudyProgrammeSimpleListGUI, ilCalendarBlockGUI, ilCalendarSelectionBlockGUI, ilClassificationBlockGUI, ilDashboardContentBlockGUI, ilPDSelectedItemsBlockGUI, ilPDMailBlockGUI, ilNewsForContextBlockGUI, ilPDNewsBlockGUI, and ilRepositoryObjectSearchBlockGUI.

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

350 : string
351 {
352 $this->initCommands();
353
354 if ($this->new_rendering) {
355 return $this->getHTMLNew();
356 }
357
358 $ilCtrl = $this->ctrl;
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 }
fillDataSection()
Standard implementation for row based data.
ilObjUser $user
special template class to simplify handling of ITX/PEAR
$ilUser
Definition: imgupload.php:34

References $ilUser, $lng, and ilObject\_lookupType().

Referenced by ilPDNewsBlockGUI\getHTML().

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

◆ getHTMLNew()

ilBlockGUI::getHTMLNew ( )

Reimplemented in ilConsultationHoursCalendarBlockGUI, and ilPDTasksBlockGUI.

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

868 : string
869 {
870 global $DIC;
871 $factory = $DIC->ui()->factory();
872 $renderer = $DIC->ui()->renderer();
874 $panel = null;
875
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()) {
888 $panel = $factory->panel()->secondary()->legacy(
889 $this->specialCharsAsEntities($this->getTitle()),
890 $factory->legacy($this->getLegacyContent())
891 );
892 break;
893
895 $panel = $factory->panel()->standard(
896 $this->specialCharsAsEntities($this->getTitle()),
897 $factory->legacy($this->getLegacyContent())
898 );
899 break;
900
902 $this->handleNavigation();
903 $panel = $factory->panel()->secondary()->listing(
904 $this->specialCharsAsEntities($this->getTitle()),
905 $this->getListItemGroups()
906 );
907 break;
908
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 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
send(string $output)
Send.
specialCharsAsEntities(string $string)
handleNavigation()
Handle navigation.
const PRES_MAIN_LIST
getListItemGroups()
Get items.
addRepoCommands()
Add repo commands.
const PRES_MAIN_TILE
getViewControls()
Get view controls.
isAsynch()
@inheritDoc
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $panel
Definition: imgupload.php:198
$factory
Definition: metadata.php:75

References $DIC, $factory, $id, $panel, ilRBACAccessHandler\checkAccess(), ILIAS\UI\Implementation\Component\ViewControl\getViewControls(), ilCtrl\isAsynch(), ILIAS\Repository\lng(), and send().

+ Here is the call graph for this function:

◆ getLegacyContent()

ilBlockGUI::getLegacyContent ( )
protected

◆ getLimit()

ilBlockGUI::getLimit ( )

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

204 : int
205 {
206 return $this->limit;
207 }

References $limit.

◆ getListItemForData()

ilBlockGUI::getListItemForData ( array  $data)
protected

Get list item for data array.

Parameters
array$data
Returns
null|\ILIAS\UI\Component\Item\Item

Reimplemented in ilCalendarBlockGUI, ilCalendarSelectionBlockGUI, ilConsultationHoursCalendarBlockGUI, ilPDSelectedItemsBlockGUI, ilPDMailBlockGUI, ilNewsForContextBlockGUI, and ilPDTasksBlockGUI.

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

683 {
684 return null;
685 }
Common interface to all items.
Definition: Item.php:32

◆ getListItemGroups()

ilBlockGUI::getListItemGroups ( )
protected

Get items.

Returns
\ILIAS\UI\Component\Item\Group[]

Reimplemented in ilPDSelectedItemsBlockGUI.

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

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 }
loadData()
Load data for current page.
getListItemForData(array $data)
Get list item for data array.

References $data, $DIC, and $factory.

◆ getMoveParameter()

ilBlockGUI::getMoveParameter ( )
final

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

312 : string
313 {
314 return $this->getBlockType() . "_" . $this->getBlockId() . "_blmove";
315 }

◆ getNavParameter()

ilBlockGUI::getNavParameter ( )
final

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

302 : string
303 {
304 return $this->getBlockType() . "_" . $this->getBlockId() . "_blnav";
305 }

◆ getNoItemFoundContent()

ilBlockGUI::getNoItemFoundContent ( )

Reimplemented in ilCalendarBlockGUI, ilPDMembershipBlockGUI, ilPDSelectedItemsBlockGUI, ilNewsForContextBlockGUI, and ilPDTasksBlockGUI.

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

1000 : string
1001 {
1002 return $this->lng->txt("no_items");
1003 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getOffset()

ilBlockGUI::getOffset ( )

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

187 : int
188 {
189 return $this->offset;
190 }

References $offset.

◆ getPaginationViewControl()

ilBlockGUI::getPaginationViewControl ( )

Fill previous/next row.

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

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 }
This describes a Pagination Control.
Definition: Pagination.php:33

References $DIC, and $factory.

◆ getPresentation()

ilBlockGUI::getPresentation ( )

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

142 : int
143 {
144 return $this->presentation;
145 }

References $presentation.

Referenced by ilCalendarBlockGUI\getViewControls().

+ Here is the caller graph for this function:

◆ getProperty()

ilBlockGUI::getProperty ( string  $a_property)

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

281 : ?string
282 {
283 return $this->property[$a_property] ?? null;
284 }

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

+ Here is the caller graph for this function:

◆ getRefId()

ilBlockGUI::getRefId ( )

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

247 : int
248 {
249 return $this->refid;
250 }

References $refid.

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

+ Here is the caller graph for this function:

◆ getRepositoryMode()

ilBlockGUI::getRepositoryMode ( )

◆ getRowTemplateDir()

ilBlockGUI::getRowTemplateDir ( )

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

322 : string
323 {
325 }
string $rowtemplatedir

Referenced by ilPollBlockGUI\getLegacyContent().

+ Here is the caller graph for this function:

◆ getRowTemplateName()

ilBlockGUI::getRowTemplateName ( )

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

317 : string
318 {
320 }
string $rowtemplatename

Referenced by ilPollBlockGUI\getLegacyContent().

+ Here is the caller graph for this function:

◆ getScreenMode()

static ilBlockGUI::getScreenMode ( )
static

◆ getSubtitle()

ilBlockGUI::getSubtitle ( )

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

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

References $subtitle.

◆ getTitle()

ilBlockGUI::getTitle ( )

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

177 : string
178 {
179 return $this->title;
180 }

References $title.

Referenced by ilWikiFunctionsBlockGUI\getLegacyContent().

+ Here is the caller graph for this function:

◆ getViewControls()

ilBlockGUI::getViewControls ( )
protected

Get view controls.

Returns
array

Reimplemented in ilCalendarBlockGUI.

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

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.

◆ handleNavigation()

ilBlockGUI::handleNavigation ( )
protected

Handle navigation.

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

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(),
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 }

◆ initCommands()

ilBlockGUI::initCommands ( )
protected

Reimplemented in ilCalendarBlockGUI.

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

346 : void
347 {
348 }

◆ isRepositoryObject()

◆ loadData()

ilBlockGUI::loadData ( )
protected

Load data for current page.

Returns
array

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

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 }

References $data.

◆ 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

Reimplemented in ilPDMailBlockGUI.

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

628 : void
629 {
630 }

◆ send()

ilBlockGUI::send ( string  $output)
protected

Send.

Exceptions
ResponseSendingException

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

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 }

References ILIAS\FileDelivery\http().

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

+ 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.

147 : void
148 {
149 $this->block_id = $a_block_id;
150 }

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

+ 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.

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 }

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

+ 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.

182 : void
183 {
184 $this->offset = $a_offset;
185 }

Referenced by correctOffset().

+ Here is the caller graph for this function:

◆ setPresentation()

◆ setPreviousNextLinks()

ilBlockGUI::setPreviousNextLinks ( )

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

620 : void
621 {
622 }

◆ 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.

297 : void {
298 $this->rowtemplatename = $a_rowtemplatename;
299 $this->rowtemplatedir = $a_rowtemplatedir;
300 }

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

+ 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.

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 }

Referenced by ilPollBlockGUI\fillRow().

+ 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.

◆ $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.

◆ $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 ilNewsForContextBlockGUI\getHTML().

◆ $offset

int ilBlockGUI::$offset
private

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

Referenced by getOffset().

◆ $presentation

int ilBlockGUI::$presentation
protected

◆ $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.

◆ $rowtemplatename

string ilBlockGUI::$rowtemplatename
private

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

◆ $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.

Referenced by __construct().

◆ 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: