ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\BookingManager\BookingProcess\WeekGUI Class Reference
+ Collaboration diagram for ILIAS\BookingManager\BookingProcess\WeekGUI:

Public Member Functions

 __construct (object $parent_gui, string $parent_cmd, array $obj_ids, int $pool_id, string $seed_str="", int $week_start=\ilCalendarSettings::WEEK_START_MONDAY)
 
 getHTML ()
 

Protected Attributes

const PROCESS_CLASS = \ilBookingProcessWithScheduleGUI::class
 
ILIAS BookingManager Objects ObjectsManager $object_manager
 
ilCtrlInterface $ctrl
 
string $parent_cmd
 
object $parent_gui
 
array $obj_ids = []
 
int $week_start
 
ilDate $seed
 
string $seed_str
 
int $time_format
 
int $day_end
 
int $day_start
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 21 of file class.WeekGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\BookingManager\BookingProcess\WeekGUI::__construct ( object  $parent_gui,
string  $parent_cmd,
array  $obj_ids,
int  $pool_id,
string  $seed_str = "",
int  $week_start = \ilCalendarSettings::WEEK_START_MONDAY 
)

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

References $DIC, ILIAS\BookingManager\BookingProcess\WeekGUI\$obj_ids, ILIAS\BookingManager\BookingProcess\WeekGUI\$parent_cmd, ILIAS\BookingManager\BookingProcess\WeekGUI\$parent_gui, ILIAS\BookingManager\BookingProcess\WeekGUI\$seed_str, ILIAS\BookingManager\BookingProcess\WeekGUI\$week_start, ILIAS\Repository\ctrl(), IL_CAL_DATE, IL_CAL_UNIX, and ilCalendarSettings\TIME_FORMAT_24.

46  {
47  global $DIC;
48 
49  $this->ctrl = $DIC->ctrl();
50  $this->parent_gui = $parent_gui;
51  $this->parent_cmd = $parent_cmd;
52  $this->obj_ids = $obj_ids;
53  $this->day_start = 8;
54  $this->day_end = 19;
55  $this->time_format = \ilCalendarSettings::TIME_FORMAT_24;
56  $this->seed_str = $seed_str;
57  $this->seed = ($this->seed_str !== "")
58  ? new \ilDate($this->seed_str, IL_CAL_DATE)
59  : new \ilDate(time(), IL_CAL_UNIX);
60  $this->week_start = $week_start;
61  $this->object_manager = $DIC->bookingManager()->internal()
62  ->domain()->objects($pool_id);
63  }
const IL_CAL_UNIX
global $DIC
Definition: feed.php:28
const IL_CAL_DATE
+ Here is the call graph for this function:

Member Function Documentation

◆ getHTML()

ILIAS\BookingManager\BookingProcess\WeekGUI::getHTML ( )

Definition at line 65 of file class.WeekGUI.php.

References ilCalendarUtil\_buildWeekDayList(), ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), ilBookingReservation\getAvailableObject(), IL_CAL_DATE, IL_CAL_FKT_GETDATE, IL_CAL_UNIX, and ilDateTime\WEEK.

65  : string
66  {
67  $navigation = new \ilCalendarHeaderNavigationGUI(
68  $this->parent_gui,
69  $this->seed,
71  $this->parent_cmd
72  );
73  $navigation->getHTML();
74 
75 
76  /*
77  $start1 = new \ilDateTime("2022-08-17 10:00:00", IL_CAL_DATETIME);
78  $end1 = new \ilDateTime("2022-08-17 11:00:00", IL_CAL_DATETIME);
79 
80  $entry1 = new WeekGridEntry(
81  $start1->get(IL_CAL_UNIX),
82  $end1->get(IL_CAL_UNIX),
83  "Moin 1"
84  );
85 
86  $start2 = new \ilDateTime("2022-08-19 12:00:00", IL_CAL_DATETIME);
87  $end2 = new \ilDateTime("2022-08-19 13:00:00", IL_CAL_DATETIME);
88 
89  $entry2 = new WeekGridEntry(
90  $start2->get(IL_CAL_UNIX),
91  $end2->get(IL_CAL_UNIX),
92  "Moin 2"
93  );*/
94 
95  $week_widget = new WeekGridGUI(
96  $this->getWeekGridEntries($this->obj_ids),
97  $this->seed,
98  $this->day_start,
99  $this->day_end,
100  $this->time_format,
101  $this->week_start
102  );
103  return $week_widget->render();
104  }
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrlInterface ILIAS\BookingManager\BookingProcess\WeekGUI::$ctrl
protected

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

◆ $day_end

int ILIAS\BookingManager\BookingProcess\WeekGUI::$day_end
protected

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

◆ $day_start

int ILIAS\BookingManager\BookingProcess\WeekGUI::$day_start
protected

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

◆ $obj_ids

array ILIAS\BookingManager\BookingProcess\WeekGUI::$obj_ids = []
protected

◆ $object_manager

ILIAS BookingManager Objects ObjectsManager ILIAS\BookingManager\BookingProcess\WeekGUI::$object_manager
protected

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

◆ $parent_cmd

string ILIAS\BookingManager\BookingProcess\WeekGUI::$parent_cmd
protected

◆ $parent_gui

object ILIAS\BookingManager\BookingProcess\WeekGUI::$parent_gui
protected

◆ $seed

ilDate ILIAS\BookingManager\BookingProcess\WeekGUI::$seed
protected

Definition at line 33 of file class.WeekGUI.php.

◆ $seed_str

string ILIAS\BookingManager\BookingProcess\WeekGUI::$seed_str
protected

◆ $time_format

int ILIAS\BookingManager\BookingProcess\WeekGUI::$time_format
protected

Definition at line 35 of file class.WeekGUI.php.

◆ $week_start

int ILIAS\BookingManager\BookingProcess\WeekGUI::$week_start
protected

◆ PROCESS_CLASS

const ILIAS\BookingManager\BookingProcess\WeekGUI::PROCESS_CLASS = \ilBookingProcessWithScheduleGUI::class
protected

Definition at line 23 of file class.WeekGUI.php.


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