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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilPDMembershipBlockGUI:
+ Collaboration diagram for ilPDMembershipBlockGUI:

Public Member Functions

 __construct (bool $on_mem_overview=false)
 
 getNoItemFoundContent ()
 
- Public Member Functions inherited from ilPDSelectedItemsBlockGUI
 getViewSettings ()
 
 addToDeskObject ()
 Add desktop item public. More...
 
 removeFromDeskObject ()
 Remove from desktop public. More...
 
 getBlockType ()
 
 getHTML ()
 
 executeCommand ()
 
 fillDataSection ()
 
 changePDItemPresentation ()
 
 changePDItemSorting ()
 
 manageObject ()
 
 confirmRemoveObject ()
 
 confirmedRemove ()
 
 confirmedUnsubscribe ()
 
 getNoItemFoundContent ()
 
- 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 ()
 
 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 Attributes

static string $block_type = 'pdmem'
 
- Static Public Attributes inherited from ilPDSelectedItemsBlockGUI
static string $block_type = 'pditems'
 

Protected Member Functions

 initViewSettings ()
 
 returnToContext ()
 
 getViewTitle ()
 
- Protected Member Functions inherited from ilPDSelectedItemsBlockGUI
 initViewSettings ()
 
 returnToContext ()
 
 isRepositoryObject ()
 
 getViewTitle ()
 
 getContent ()
 
 setContent (string $a_content)
 
 getGroupedCommandsForView (bool $manage=false)
 
 initAndShow ()
 
 cancel ()
 
 getListItemGroups ()
 
 getListItemForData (array $data)
 
 getCardForData (array $item)
 
 getLegacyContent ()
 
 renderManageList (array $grouped_items)
 
 getRepositoryTitle ()
 
- Protected Member Functions inherited from ilBlockGUI
 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

bool $on_mem_overview
 
- Protected Attributes inherited from ilPDSelectedItemsBlockGUI
bool $new_rendering = true
 
ilRbacSystem $rbacsystem
 
ilSetting $settings
 
ilObjectDefinition $obj_definition
 
ilPDSelectedItemsBlockViewSettings $viewSettings
 
ilPDSelectedItemsBlockViewGUI $blockView
 
bool $manage = false
 
string $content = ''
 
ilLanguage $lng
 
ilCtrl $ctrl
 
ilObjUser $user
 
Services $http
 
Factory $refinery
 
ilObjectService $objectService
 
ilFavouritesManager $favourites
 
ilTree $tree
 
ilPDSelectedItemsBlockListGUIFactory $list_factory
 
ilLogger $logging
 
- Protected Attributes inherited from ilBlockGUI
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
 

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
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning ilPDMembershipBlockGUI: ilCommonActionDispatcherGUI

Definition at line 22 of file class.ilPDMembershipBlockGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilPDMembershipBlockGUI::__construct ( bool  $on_mem_overview = false)

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

References $on_mem_overview, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\lng().

31  {
33  $this->lng->loadLanguageModule("dash");
34  $this->lng->loadLanguageModule("mmbr");
35  $this->on_mem_overview = $on_mem_overview;
36  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getNoItemFoundContent()

ilPDMembershipBlockGUI::getNoItemFoundContent ( )

Definition at line 67 of file class.ilPDMembershipBlockGUI.php.

References $txt, and ILIAS\Repository\lng().

67  : string
68  {
69  $txt = $this->lng->txt("rep_mo_mem_dash");
70  return $txt;
71  }
$txt
Definition: error.php:13
+ Here is the call graph for this function:

◆ getViewTitle()

ilPDMembershipBlockGUI::getViewTitle ( )
protected

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

References ILIAS\Repository\lng().

59  : string
60  {
61  if ($this->on_mem_overview) {
62  return $this->lng->txt("mmbr_memberships");
63  }
64  return parent::getViewTitle();
65  }
+ Here is the call graph for this function:

◆ initViewSettings()

ilPDMembershipBlockGUI::initViewSettings ( )
protected

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

References ilPDSelectedItemsBlockViewGUI\bySettings(), ILIAS\Repository\ctrl(), ILIAS\Repository\user(), and ilPDSelectedItemsBlockConstants\VIEW_MY_MEMBERSHIPS.

38  : void
39  {
40  $this->viewSettings = new ilPDSelectedItemsBlockViewSettings(
41  $this->user,
43  );
44  $this->viewSettings->parse();
45 
46  $this->blockView = ilPDSelectedItemsBlockViewGUI::bySettings($this->viewSettings);
47 
48  $this->ctrl->setParameter($this, 'view', $this->viewSettings->getCurrentView());
49  }
static bySettings(ilPDSelectedItemsBlockViewSettings $viewSettings)
+ Here is the call graph for this function:

◆ returnToContext()

ilPDMembershipBlockGUI::returnToContext ( )
protected

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

References ILIAS\Repository\ctrl().

51  : void
52  {
53  if ($this->on_mem_overview) {
54  $this->ctrl->redirectByClass('ilmembershipoverviewgui', '');
55  }
56  parent::returnToContext();
57  }
+ Here is the call graph for this function:

Field Documentation

◆ $block_type

string ilPDMembershipBlockGUI::$block_type = 'pdmem'
static

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

◆ $on_mem_overview

bool ilPDMembershipBlockGUI::$on_mem_overview
protected

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

Referenced by __construct().


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