ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilSelectedItemsBlockGUI Class Reference
+ Inheritance diagram for ilSelectedItemsBlockGUI:
+ Collaboration diagram for ilSelectedItemsBlockGUI:

Public Member Functions

 initViewSettings ()
 
 emptyHandling ()
 
 initData ()
 
 getBlockType ()
 
 confirmedRemove (array $ids)
 
 removeMultipleEnabled ()
 
 getRemoveMultipleActionText ()
 
- Public Member Functions inherited from ilDashboardBlockGUI
 __construct ()
 
 initViewSettings ()
 
 initData ()
 
 emptyHandling ()
 
 addCustomCommandsToActionMenu (ilObjectListGUI $itemListGui, int $ref_id)
 
 getNoItemFoundContent ()
 
 getViewSettings ()
 
 init ()
 
 getHTML ()
 
 setData (array $a_data)
 
 getData ()
 
 addCommandActions ()
 
 getRemoveModal ()
 
 executeCommand ()
 
 viewDashboardObject ()
 
 changePDItemSortingObject ()
 
 changePDItemPresentationObject ()
 
 getItemGroups ()
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
 removeMultipleEnabled ()
 
 getRemoveMultipleActionText ()
 
 confirmedRemove (array $ids)
 
 byType (string $a_type)
 
- Public Member Functions inherited from ilBlockGUI
 __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 ()
 
 checkOffset (int $offset)
 
 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="", ?RoundTrip $modal=null)
 
 getBlockCommands ()
 
 getHTML ()
 
 getAsynch ()
 Use this for final get before sending asynchronous output (ajax) per echo to output. More...
 
 getPaginationViewControl ()
 Fill previous/next row. More...
 
 getViewControlsForPanel ()
 
 sortObject ()
 
 addSortOption (string $option, string $label, bool $active)
 
 setSortTarget (string $target)
 
 addPresentation (string $label, string $target, bool $active)
 
 getNoItemFoundContent ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ilBlockGUI
static getScreenMode ()
 
- Data Fields inherited from ilBlockGUI
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 inherited from ilDashboardBlockGUI
 getCardForData (BlockDTO $data)
 
 getListItemGroups ()
 
 getListItemForDataDTO (BlockDTO $data)
 
 isRepositoryObject ()
 
 getLegacyContent ()
 
 preloadData (array $data)
 
 initAndShow ()
 
 isRootNode (int $refId)
 
 getRepositoryTitle ()
 
 getManageFields ()
 
- Protected Member Functions inherited from ilBlockGUI
 isRepositoryObject ()
 Returns whether block has a corresponding repository object. More...
 
 specialCharsAsEntities (string $string)
 
 initCommands ()
 
 preloadData (array $data)
 Can be overwritten in subclasses. More...
 
 getLegacyContent ()
 Get legacy content. 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...
 
 getActionsForPanel ()
 
 send (string $output)
 Send. More...
 
- Protected Attributes inherited from ilDashboardBlockGUI
ilFavouritesManager $favourites_manager
 
int $requested_item_ref_id
 
ilSetting $settings
 
ilLogger $logging
 
Services $http
 
ilPDSelectedItemsBlockViewSettings $viewSettings
 
array $data
 
- Protected Attributes inherited from ilBlockGUI
ILIAS UI Renderer $renderer
 
Factory $factory
 
object $gui_object
 
ILIAS Container Block StandardGUIRequest $request
 
ILIAS Container 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
 

Detailed Description

Definition at line 24 of file class.ilSelectedItemsBlockGUI.php.

Member Function Documentation

◆ confirmedRemove()

ilSelectedItemsBlockGUI::confirmedRemove ( array  $ids)

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

References $ref_id, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\user().

90  : void
91  {
92  foreach ($ids as $ref_id) {
93  $this->favourites_manager->remove($this->user->getId(), $ref_id);
94  }
95 
96  $this->main_tpl->setOnScreenMessage('success', $this->lng->txt('pd_remove_multi_confirm'), true);
97  $this->ctrl->returnToParent($this);
98  }
$ref_id
Definition: ltiauth.php:65
+ Here is the call graph for this function:

◆ emptyHandling()

ilSelectedItemsBlockGUI::emptyHandling ( )

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

References $txt, ilLink\_getStaticLink(), factory(), ilDashboardBlockGUI\getRepositoryTitle(), ilBlockGUI\getTitle(), ILIAS\Repository\lng(), renderer(), and ILIAS\Repository\ui().

36  : string
37  {
38  $this->lng->loadLanguageModule('rep');
39  $txt = $this->lng->txt('rep_fav_intro1') . '<br>';
40  $txt .= sprintf(
41  $this->lng->txt('rep_fav_intro2'),
42  $this->getRepositoryTitle()
43  ) . '<br>';
44  $txt .= $this->lng->txt('rep_fav_intro3');
45  $mbox = $this->ui->factory()->messageBox()->info($txt);
46  $mbox = $mbox->withLinks(
47  [
48  $this->ui->factory()->link()->standard(
49  $this->getRepositoryTitle(),
50  ilLink::_getStaticLink(1, 'root', true)
51  )
52  ]
53  );
54 
55  return $this->renderer->render(
56  $this->factory->panel()->standard(
57  $this->getTitle(),
58  $this->factory->legacy()->content($this->renderer->render($mbox))
59  )
60  );
61  }
factory()
renderer()
$txt
Definition: error.php:31
+ Here is the call graph for this function:

◆ getBlockType()

ilSelectedItemsBlockGUI::getBlockType ( )

Definition at line 85 of file class.ilSelectedItemsBlockGUI.php.

85  : string
86  {
87  return 'pditems';
88  }

◆ getRemoveMultipleActionText()

ilSelectedItemsBlockGUI::getRemoveMultipleActionText ( )

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

References ILIAS\Repository\lng().

105  : string
106  {
107  return $this->lng->txt('pd_remove_multiple');
108  }
+ Here is the call graph for this function:

◆ initData()

ilSelectedItemsBlockGUI::initData ( )

Definition at line 63 of file class.ilSelectedItemsBlockGUI.php.

References ilDashboardBlockGUI\$data, $provider, null, ilDashboardBlockGUI\setData(), and ILIAS\Repository\user().

63  : void
64  {
66  $data = $provider->getItems();
67  $data = array_map(static function (array $item): BlockDTO {
68  $start = isset($item['start']) && $item['start'] instanceof ilDateTime ? $item['start'] : null;
69  $end = isset($item['end']) && $item['end'] instanceof ilDateTime ? $item['end'] : null;
70 
71  return new BlockDTO(
72  $item['type'],
73  (int) $item['ref_id'],
74  (int) $item['obj_id'],
75  $item['title'],
76  $item['description'],
77  $start,
78  $end,
79  );
80  }, $data);
81 
82  $this->setData(['' => $data]);
83  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$provider
Definition: ltitoken.php:80
+ Here is the call graph for this function:

◆ initViewSettings()

ilSelectedItemsBlockGUI::initViewSettings ( )

Definition at line 26 of file class.ilSelectedItemsBlockGUI.php.

References ILIAS\Repository\ctrl(), ILIAS\Repository\user(), and ilPDSelectedItemsBlockConstants\VIEW_SELECTED_ITEMS.

26  : void
27  {
28  $this->viewSettings = new ilPDSelectedItemsBlockViewSettings(
29  $this->user,
31  );
32 
33  $this->ctrl->setParameter($this, 'view', $this->viewSettings->getCurrentView());
34  }
+ Here is the call graph for this function:

◆ removeMultipleEnabled()

ilSelectedItemsBlockGUI::removeMultipleEnabled ( )

Definition at line 100 of file class.ilSelectedItemsBlockGUI.php.

100  : bool
101  {
102  return true;
103  }

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