ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilPDMembershipBlockGUI Class Reference

Memberships block. More...

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

Public Member Functions

 __construct ($on_mem_overview=false)
 ilPDSelectedItemsBlockGUI constructor. More...
 
 getNoItemFoundContent ()
 No item entry. More...
 
- Public Member Functions inherited from ilPDSelectedItemsBlockGUI
 __construct ()
 
 getViewSettings ()
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
 getBlockType ()
 
 getHTML ()
 
 executeCommand ()
 
 fillDataSection ()
 
 fillFooter ()
 
 changePDItemPresentation ()
 
 changePDItemSorting ()
 
 manageObject ()
 
 confirmRemoveObject ()
 
 confirmedRemove ()
 
 confirmedUnsubscribe ()
 
 getNoItemFoundContent ()
 
- Public Member Functions inherited from ilBlockGUI
 getBlockType ()
 
 __construct ()
 Constructor. More...
 
 setData ($a_data)
 Set Data. More...
 
 getData ()
 Get Data. More...
 
 setPresentation (int $type)
 Set presentation. More...
 
 getPresentation ()
 Get presentation type. More...
 
 setBlockId ($a_block_id=0)
 Set Block Id. More...
 
 getBlockId ()
 Get Block Id. More...
 
 setGuiObject (&$a_gui_object)
 Set GuiObject. More...
 
 getGuiObject ()
 Get GuiObject. More...
 
 setTitle ($a_title)
 Set Title. More...
 
 getTitle ()
 Get Title. More...
 
 setOffset ($a_offset)
 Set Offset. More...
 
 getOffset ()
 Get Offset. More...
 
 correctOffset ()
 
 setLimit ($a_limit)
 Set Limit. More...
 
 getLimit ()
 Get Limit. More...
 
 setEnableEdit ($a_enableedit)
 Set EnableEdit. More...
 
 getEnableEdit ()
 Get EnableEdit. More...
 
 setRepositoryMode ($a_repositorymode)
 Set RepositoryMode. More...
 
 getRepositoryMode ()
 Get RepositoryMode. More...
 
 setSubtitle ($a_subtitle)
 Set Subtitle. More...
 
 getSubtitle ()
 Get Subtitle. More...
 
 setRefId ($a_refid)
 Set Ref Id (only used if isRepositoryObject() is true). More...
 
 getRefId ()
 Get Ref Id (only used if isRepositoryObject() is true). More...
 
 setAdminCommands (bool $a_admincommands)
 Set Administration Commmands. More...
 
 getAdminCommands ()
 Get Administration Commmands. More...
 
 setEnableNumInfo ($a_enablenuminfo)
 Set Enable Item Number Info. More...
 
 getEnableNumInfo ()
 Get Enable Item Number Info. More...
 
 setProperties ($a_properties)
 This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties. More...
 
 getProperty ($a_property)
 
 setProperty ($a_property, $a_value)
 
 setRowTemplate ($a_rowtemplatename, $a_rowtemplatedir="")
 Set Row Template Name. More...
 
 getNavParameter ()
 
 getConfigParameter ()
 
 getMoveParameter ()
 
 getRowTemplateName ()
 Get Row Template Name. More...
 
 getRowTemplateDir ()
 Get Row Template Directory. More...
 
 addBlockCommand (string $a_href, string $a_text, string $a_onclick="")
 Add Block Command. More...
 
 getBlockCommands ()
 Get Block commands. More...
 
 getHTML ()
 Get HTML. More...
 
 fillHeaderCommands ()
 Fill header commands block. More...
 
 fillHeaderTitleBlock ()
 Fill header title block (title and. More...
 
 setDataSection ($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 ($a_set)
 
 fillFooter ()
 
 fillPreviousNext ()
 Fill previous/next row. More...
 
 setPreviousNextLinks ()
 Get previous/next linkbar. More...
 
 getAsynch ()
 Use this for final get before sending asynchronous output (ajax) per echo to output. More...
 
 getPaginationViewControl ()
 Fill previous/next row. More...
 
 getHTMLNew ()
 Get HTML. More...
 

Static Public Attributes

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

Protected Member Functions

 initViewSettings ()
 Evaluates the view settings of this block. More...
 
 returnToContext ()
 Return to context. More...
 
 getViewTitle ()
 Get view title. More...
 
- Protected Member Functions inherited from ilPDSelectedItemsBlockGUI
 initViewSettings ()
 
 returnToContext ()
 
 isRepositoryObject ()
 
 getViewTitle ()
 
 getContent ()
 
 setContent (string $a_content)
 
 getGroupedCommandsForView ($manage=false)
 
 setFooterLinks ()
 
 renderGroupedItems (array $grouped_items, bool $showHeader=true)
 
 getViewBlockHtml ()
 
 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...
 
 initCommands ()
 Init commands. More...
 
 fillRowColor ($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...
 
 getNoItemFoundContent ()
 No item entry. More...
 

Protected Attributes

 $on_mem_overview
 Is block displayed on membership overview? More...
 
- Protected Attributes inherited from ilPDSelectedItemsBlockGUI
 $new_rendering = true
 
 $rbacsystem
 
 $settings
 
 $obj_definition
 
 $viewSettings
 
 $blockView
 
 $manage = false
 
 $content = ''
 
 $lng
 
 $ctrl
 
 $user
 
 $ui
 
 $http
 
 $objectService
 
 $favourites
 
 $tree
 
 $list_factory
 
 $logging
 
- Protected Attributes inherited from ilBlockGUI
 $ui
 
 $data = array()
 
 $enablenuminfo = true
 
 $footer_links = array()
 
 $block_id = 0
 
 $allow_moving = true
 
 $move = array("left" => false, "right" => false, "up" => false, "down" => false)
 
 $block_commands = array()
 
 $max_count = false
 
 $close_command = false
 
 $image = false
 
 $property = false
 
 $nav_value = ""
 
 $css_row = ""
 
 $title = ""
 
 $admincommands = false
 
 $dropdown
 
 $tpl
 
 $main_tpl
 
 $user
 
 $ctrl
 
 $access
 
 $lng
 
 $obj_def
 
 $presentation
 
 $new_rendering = false
 

Additional Inherited Members

- Static Public Member Functions inherited from ilPDSelectedItemsBlockGUI
static getScreenMode ()
 
- Static Public Member Functions inherited from ilBlockGUI
static getScreenMode ()
 Get Screen Mode for current command. More...
 
- 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
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilPDMembershipBlockGUI::__construct (   $on_mem_overview = false)

ilPDSelectedItemsBlockGUI constructor.

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

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

26  {
28  $this->lng->loadLanguageModule("dash");
29  $this->lng->loadLanguageModule("mmbr");
30  $this->on_mem_overview = $on_mem_overview;
31  }
$on_mem_overview
Is block displayed on membership overview?
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getNoItemFoundContent()

ilPDMembershipBlockGUI::getNoItemFoundContent ( )

No item entry.

Returns
string

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

References $txt.

80  : string
81  {
82  $txt = $this->lng->txt("rep_mo_mem_dash");
83  return $txt;
84  }
$txt
Definition: error.php:13

◆ getViewTitle()

ilPDMembershipBlockGUI::getViewTitle ( )
protected

Get view title.

Returns
string

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

67  {
68  if ($this->on_mem_overview) {
69  return $this->lng->txt("mmbr_memberships");
70  }
71  return parent::getViewTitle();
72  }

◆ initViewSettings()

ilPDMembershipBlockGUI::initViewSettings ( )
protected

Evaluates the view settings of this block.

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

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

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

◆ returnToContext()

ilPDMembershipBlockGUI::returnToContext ( )
protected

Return to context.

Parameters

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

55  {
56  if ($this->on_mem_overview) {
57  $this->ctrl->redirectByClass('ilmembershipoverviewgui', '');
58  }
59  parent::returnToContext();
60  }

Field Documentation

◆ $block_type

ilPDMembershipBlockGUI::$block_type = 'pdmem'
static

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

◆ $on_mem_overview

ilPDMembershipBlockGUI::$on_mem_overview
protected

Is block displayed on membership overview?

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

Referenced by __construct().


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