ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilDashboardLearningSequenceGUI Class Reference
+ Inheritance diagram for ilDashboardLearningSequenceGUI:
+ Collaboration diagram for ilDashboardLearningSequenceGUI:

Public Member Functions

 emptyHandling ()
 
 initViewSettings ()
 
 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 ()
 
 manually ()
 
 getViewControlsForPanel ()
 
 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 ()
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 

Protected Member Functions

 getIcon (string $title)
 
 isRelevantLso (ilObjLearningSequence $obj)
 
- Protected Member Functions inherited from ilDashboardBlockGUI
 getCardForData (BlockDTO $data)
 
 getListItemGroups ()
 Get items. More...
 
 getListItemForDataDTO (BlockDTO $data)
 
 isRepositoryObject ()
 Returns whether block has a corresponding repository object. More...
 
 getLegacyContent ()
 Get legacy content. More...
 
 preloadData (array $data)
 Can be overwritten in subclasses. More...
 
 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...
 

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 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.ilDashboardLearningSequenceGUI.php.

Member Function Documentation

◆ confirmedRemove()

ilDashboardLearningSequenceGUI::confirmedRemove ( array  $ids)
Parameters
int[]$ids

Reimplemented from ilDashboardBlockGUI.

Definition at line 110 of file class.ilDashboardLearningSequenceGUI.php.

110 : void
111 {
112 foreach ($ids as $ref_id) {
113 if ($this->access->checkAccess('leave', '', $ref_id)) {
114 if (ilObject::_lookupType($ref_id, true) === 'lso') {
116 if ($lso instanceof ilObjLearningSequence) {
117 $lso->getLSRoles()->leave($this->user->getId());
118 }
119 }
120
121 ilForumNotification::checkForumsExistsDelete($ref_id, $this->user->getId());
122 }
123 }
124
125 $this->main_tpl->setOnScreenMessage('success', $this->lng->txt('mmbr_unsubscribed_from_objs'), true);
126 $this->ctrl->returnToParent($this);
127 }
static checkForumsExistsDelete(int $ref_id, int $user_id)
static getInstanceByRefId(int $ref_id)
static _lookupType(int $id, bool $reference=false)
$ref_id
Definition: ltiauth.php:66

References $ref_id, ilObject\_lookupType(), ILIAS\Repository\access(), ilForumNotification\checkForumsExistsDelete(), ILIAS\Repository\ctrl(), ilObjLearningSequence\getInstanceByRefId(), ILIAS\Repository\lng(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

◆ emptyHandling()

ilDashboardLearningSequenceGUI::emptyHandling ( )

Reimplemented from ilDashboardBlockGUI.

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

39 : string
40 {
41 return '';
42 }

◆ getBlockType()

ilDashboardLearningSequenceGUI::getBlockType ( )

Reimplemented from ilBlockGUI.

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

105 : string
106 {
107 return 'pdlern';
108 }

◆ getIcon()

ilDashboardLearningSequenceGUI::getIcon ( string  $title)
protected

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

26 : Standard
27 {
28 if (!isset($this->icon) || is_null($this->icon)) {
29 $this->icon = $this->factory->symbol()->icon()->standard(
30 'lso',
31 $title,
32 'medium'
33 );
34 }
35
36 return $this->icon;
37 }
factory()
This describes the specific behavior of an ILIAS standard icon.
Definition: Standard.php:27

References factory().

+ Here is the call graph for this function:

◆ getRemoveMultipleActionText()

ilDashboardLearningSequenceGUI::getRemoveMultipleActionText ( )

Reimplemented from ilDashboardBlockGUI.

Definition at line 134 of file class.ilDashboardLearningSequenceGUI.php.

134 : string
135 {
136 return $this->lng->txt('pd_unsubscribe_multiple_memberships');
137 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ initViewSettings()

ilDashboardLearningSequenceGUI::initViewSettings ( )

Reimplemented from ilDashboardBlockGUI.

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

44 : void
45 {
46 $this->viewSettings = new ilPDSelectedItemsBlockViewSettings(
47 $this->user,
49 );
50
51 $this->ctrl->setParameter($this, 'view', $this->viewSettings->getCurrentView());
52 }

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

+ Here is the call graph for this function:

◆ isRelevantLso()

ilDashboardLearningSequenceGUI::isRelevantLso ( ilObjLearningSequence  $obj)
protected

Definition at line 89 of file class.ilDashboardLearningSequenceGUI.php.

89 : bool
90 {
91 $ls_lp_items = $obj->getLSLearnerItems($this->user->getId());
92 if ($ls_lp_items === []) {
93 return false;
94 }
95
96 foreach ($ls_lp_items as $item) {
97 if ($item->getLearningProgressStatus() === ilLPStatus::LP_STATUS_IN_PROGRESS_NUM) {
98 return true;
99 }
100 }
101
102 return false;
103 }
const LP_STATUS_IN_PROGRESS_NUM

References ilObjLearningSequence\getLSLearnerItems(), ilLPStatus\LP_STATUS_IN_PROGRESS_NUM, and ILIAS\Repository\user().

+ Here is the call graph for this function:

◆ removeMultipleEnabled()

ilDashboardLearningSequenceGUI::removeMultipleEnabled ( )

Reimplemented from ilDashboardBlockGUI.

Definition at line 129 of file class.ilDashboardLearningSequenceGUI.php.

129 : bool
130 {
131 return true;
132 }

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