ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 23 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 41 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.

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

Member Function Documentation

◆ getHTML()

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

Definition at line 67 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.

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

Field Documentation

◆ $ctrl

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

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

◆ $day_end

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

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

◆ $day_start

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

Definition at line 39 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 26 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 35 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 37 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 25 of file class.WeekGUI.php.


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