ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilPDCalendarBlockGUI Class Reference

Calendar blocks, displayed on personal desktop. More...

+ Inheritance diagram for ilPDCalendarBlockGUI:
+ Collaboration diagram for ilPDCalendarBlockGUI:

Public Member Functions

 __construct ()
 Constructor. More...
 
 getBlockType ()
 
Returns
string
More...
 
 returnToUpperContext ()
 Return to upper context. More...
 
- Public Member Functions inherited from ilCalendarBlockGUI
 __construct ()
 Constructor. More...
 
 getShowWeeksColumn ()
 Show weeks column. More...
 
 getBlockType ()
 
Returns
string
More...
 
 setParentGUI ($a_val)
 Set parent gui. More...
 
 getParentGUI ()
 Get parent gui. More...
 
 setForceMonthView ($a_val)
 Set force month view. More...
 
 getForceMonthView ()
 Get force month view. More...
 
 executeCommand ()
 execute command More...
 
 setEnableEdit ($a_enable_edit=0)
 Set EnableEdit. More...
 
 getEnableEdit ()
 Get EnableEdit. More...
 
 fillDataSection ()
 Fill data section. More...
 
 getTargetGUIClassPath ()
 Get target gui class path (for presenting the calendar) More...
 
 addMiniMonth ($a_tpl, $a_include_view_ctrl=false)
 Add mini version of monthly overview (Maybe extracted to another class, if used in pd calendar tab. More...
 
 getHTML ()
 Get bloch HTML code. More...
 
 getOverview ()
 Get overview. More...
 
 setSeed ()
 Set seed. More...
 
 returnToUpperContext ()
 Return to upper context. More...
 
 fillFooter ()
 
 initCommands ()
 Init commands. More...
 
 setPdModeEvents ()
 
 setPdModeMonth ()
 
 getEvents ()
 Get events. More...
 
 getData ()
 Get Data. More...
 
 getDatesForItem ($item)
 Get start/end date for item. More...
 
 getModalForApp ()
 Get modal for appointment (see similar code in ilCalendarAgendaListGUI) todo use all this methods from ilcalendarviewgui.php. More...
 
- 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 = "pdcal"
 
- Static Public Attributes inherited from ilCalendarBlockGUI
static $block_type = "cal"
 
static $st_data
 

Protected Member Functions

 initCategories ()
 init categories More...
 
- Protected Member Functions inherited from ilCalendarBlockGUI
 isRepositoryObject ()
 Returns whether block has a corresponding repository object.
Returns
bool
More...
 
 getViewControl ()
 Get view control. More...
 
 initCategories ()
 init categories @access protected More...
 
 setSubTabs ()
 
 getViewControls ()
 Get view controls.
Returns
array
More...
 
 getLegacyContent ()
 Get legacy content.
Returns
string
More...
 
 getListItemForData (array $data)
 Get list item for data array.
Parameters
array$data
Returns
null|\ILIAS\UI\Component\Item\Item
More...
 
 getNoItemFoundContent ()
 No item entry. More...
 
 addConsultationHourButtons (ilTemplate $panel_template)
 Add consultation hour buttons. More...
 
 addSubscriptionButton (ilTemplate $panel_template)
 Add subscription button. More...
 
- 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...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilCalendarBlockGUI
static getScreenMode ()
 Get Screen Mode for current command. More...
 
static getScreenMode ()
 Get Screen Mode for current command. More...
 
- Data Fields inherited from ilCalendarBlockGUI
 $ctrl = null
 
- 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
 
- Protected Attributes inherited from ilCalendarBlockGUI
 $mode
 
 $display_mode
 
 $tabs
 
 $obj_data_cache
 
 $parent_gui = "ilcolumngui"
 
 $ui
 
 $force_month_view = false
 
 $new_rendering = true
 
- 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
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilPDCalendarBlockGUI::__construct ( )

Constructor.

Reimplemented from ilCalendarBlockGUI.

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

28 {
30 $this->setBlockId(0);
31 }
setBlockId($a_block_id=0)
Set Block Id.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), and ilBlockGUI\setBlockId().

+ Here is the call graph for this function:

Member Function Documentation

◆ getBlockType()

ilPDCalendarBlockGUI::getBlockType ( )

Returns
string

Reimplemented from ilCalendarBlockGUI.

Definition at line 37 of file class.ilPDCalendarBlockGUI.php.

37 : string
38 {
39 return self::$block_type;
40 }

References $block_type.

◆ initCategories()

ilPDCalendarBlockGUI::initCategories ( )
protected

init categories

@access protected

Parameters

return

Reimplemented from ilCalendarBlockGUI.

Definition at line 49 of file class.ilPDCalendarBlockGUI.php.

50 {
51 include_once './Services/Calendar/classes/class.ilCalendarUserSettings.php';
52 if (!$this->initialized) {
55 } else {
57 }
58
60 if ($this->getForceMonthView()) {
61 // nothing to do here
62 }
63 elseif (!$cats->getMode()) {
64 $cats->initialize($this->mode, (int) $_GET['ref_id'], true);
65 }
66 }
67 $this->initialized = true;
68 }
$_GET["client_id"]
getForceMonthView()
Get force month view.
static _getInstance($a_usr_id=0)
get singleton instance
static _getInstance()
get instance for logged in user

References $_GET, ilCalendarCategories\_getInstance(), ilCalendarUserSettings\_getInstance(), ilCalendarUserSettings\CAL_SELECTION_MEMBERSHIP, ilCalendarBlockGUI\getForceMonthView(), ilCalendarCategories\MODE_PERSONAL_DESKTOP_ITEMS, and ilCalendarCategories\MODE_PERSONAL_DESKTOP_MEMBERSHIP.

+ Here is the call graph for this function:

◆ returnToUpperContext()

ilPDCalendarBlockGUI::returnToUpperContext ( )

Return to upper context.

Reimplemented from ilCalendarBlockGUI.

Definition at line 73 of file class.ilPDCalendarBlockGUI.php.

74 {
75 global $DIC;
76
77 $ilCtrl = $DIC['ilCtrl'];
78
79 $ilCtrl->redirectByClass("ildashboardgui", "show");
80 }
global $ilCtrl
Definition: ilias.php:18
$DIC
Definition: xapitoken.php:46

References $DIC, and $ilCtrl.

Field Documentation

◆ $block_type

ilPDCalendarBlockGUI::$block_type = "pdcal"
static

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

Referenced by getBlockType().


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