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

ilConsultationHoursCalendarBlockGUI: ilColumnGUI More...

+ Inheritance diagram for ilConsultationHoursCalendarBlockGUI:
+ Collaboration diagram for ilConsultationHoursCalendarBlockGUI:

Public Member Functions

 __construct ()
 
 getBlockType ()
 
 getTargetGUIClassPath ()
 Get target gui class path (for presenting the calendar) More...
 
 getData ()
 
 getHTMLNew ()
 
- 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...
 

Protected Member Functions

 isRepositoryObject ()
 
 getListItemForData (array $data)
 
- 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

 $new_rendering = true
 
 $consultation_hour_links
 
- 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 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()

ilConsultationHoursCalendarBlockGUI::__construct ( )

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

References ILIAS\GlobalScreen\Provider\__construct(), ilBlockGUI\setBlockId(), ilBlockGUI\setEnableNumInfo(), ilBlockGUI\setLimit(), ilBlockGUI\setPresentation(), and ilBlockGUI\setTitle().

30  {
32 
33  $this->lng->loadLanguageModule("dateplaner");
34 
35  $this->setBlockId('ch_' . $this->ctrl->getContextObjId());
36  $this->setLimit(5);
37  $this->setEnableNumInfo(false);
38  $this->setTitle($this->lng->txt('consultation_hours_block_title'));
39  $this->setPresentation(self::PRES_SEC_LIST);
40  }
setEnableNumInfo($a_enablenuminfo)
Set Enable Item Number Info.
setTitle($a_title)
Set Title.
setBlockId($a_block_id=0)
Set Block Id.
setLimit($a_limit)
Set Limit.
__construct(Container $dic, ilPlugin $plugin)
setPresentation(int $type)
Set presentation.
+ Here is the call graph for this function:

Member Function Documentation

◆ getBlockType()

ilConsultationHoursCalendarBlockGUI::getBlockType ( )

Definition at line 42 of file class.ilConsultationHoursCalendarBlockGUI.php.

42  : string
43  {
44  return 'chcal';
45  }

◆ getData()

ilConsultationHoursCalendarBlockGUI::getData ( )

Definition at line 74 of file class.ilConsultationHoursCalendarBlockGUI.php.

References $_GET, $consultation_hour_links, ilConsultationHourUtils\getConsultationHourLinksForRepositoryObject(), getTargetGUIClassPath(), and user().

Referenced by getHTMLNew().

74  : array
75  {
76  if (isset($this->consultation_hour_links)) {
78  }
79  return $this->consultation_hour_links = \ilConsultationHourUtils::getConsultationHourLinksForRepositoryObject(
80  (int) $_GET['ref_id'],
81  $this->user->getId(),
82  $this->getTargetGUIClassPath()
83  );
84  }
$_GET["client_id"]
user()
Definition: user.php:4
static getConsultationHourLinksForRepositoryObject(int $ref_id, int $current_user_id, array $ctrl_class_structure)
getTargetGUIClassPath()
Get target gui class path (for presenting the calendar)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getHTMLNew()

ilConsultationHoursCalendarBlockGUI::getHTMLNew ( )

Definition at line 95 of file class.ilConsultationHoursCalendarBlockGUI.php.

References getData().

95  : string
96  {
97  if (empty($this->getData())) {
98  return '';
99  }
100  return parent::getHTMLNew();
101  }
+ Here is the call graph for this function:

◆ getListItemForData()

ilConsultationHoursCalendarBlockGUI::getListItemForData ( array  $data)
protected

Definition at line 86 of file class.ilConsultationHoursCalendarBlockGUI.php.

References ui().

86  : Item
87  {
88  $button = $this->ui->factory()->button()->shy(
89  $data['txt'] ?? '',
90  $data['link'] ?? ''
91  );
92  return $this->ui->factory()->item()->standard($button);
93  }
Common interface to all items.
Definition: Item.php:10
ui()
Definition: ui.php:5
+ Here is the call graph for this function:

◆ getTargetGUIClassPath()

ilConsultationHoursCalendarBlockGUI::getTargetGUIClassPath ( )

Get target gui class path (for presenting the calendar)

Definition at line 55 of file class.ilConsultationHoursCalendarBlockGUI.php.

References $_GET, ilObject\_lookupType(), and ilBlockGUI\getRepositoryMode().

Referenced by getData().

55  : array
56  {
57  $target_class = [];
58  if (!$this->getRepositoryMode()) {
59  $target_class = ["ildashboardgui", "ilcalendarpresentationgui"];
60  } else {
61  switch (ilObject::_lookupType((int) $_GET["ref_id"], true)) {
62  case "crs":
63  $target_class = ["ilobjcoursegui", "ilcalendarpresentationgui"];
64  break;
65 
66  case "grp":
67  $target_class = ["ilobjgroupgui", "ilcalendarpresentationgui"];
68  break;
69  }
70  }
71  return $target_class;
72  }
$_GET["client_id"]
getRepositoryMode()
Get RepositoryMode.
static _lookupType($a_id, $a_reference=false)
lookup object type
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isRepositoryObject()

ilConsultationHoursCalendarBlockGUI::isRepositoryObject ( )
protected

Definition at line 47 of file class.ilConsultationHoursCalendarBlockGUI.php.

47  : bool
48  {
49  return false;
50  }

Field Documentation

◆ $consultation_hour_links

ilConsultationHoursCalendarBlockGUI::$consultation_hour_links
protected

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

Referenced by getData().

◆ $new_rendering

ilConsultationHoursCalendarBlockGUI::$new_rendering = true
protected

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