ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 26 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 44 of file class.WeekGUI.php.

51 {
52 global $DIC;
53
54 $this->ctrl = $DIC->ctrl();
55 $this->parent_gui = $parent_gui;
56 $this->parent_cmd = $parent_cmd;
57 $this->obj_ids = $obj_ids;
58 $this->day_start = 8;
59 $this->day_end = 19;
60 $this->time_format = \ilCalendarSettings::TIME_FORMAT_24;
61 $this->seed_str = $seed_str;
62 $this->seed = ($this->seed_str !== "")
63 ? new \ilDate($this->seed_str, IL_CAL_DATE)
64 : new \ilDate(time(), IL_CAL_UNIX);
65 $this->week_start = $week_start;
66 $this->object_manager = $DIC->bookingManager()->internal()
67 ->domain()->objects($pool_id);
68 }
const IL_CAL_DATE
const IL_CAL_UNIX
Class for single dates.
global $DIC
Definition: shib_login.php:26

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.

+ Here is the call graph for this function:

Member Function Documentation

◆ getHTML()

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

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

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

References ilDateTime\WEEK.

Field Documentation

◆ $ctrl

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

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

◆ $day_end

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

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

◆ $day_start

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

Definition at line 42 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 29 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 38 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 40 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 28 of file class.WeekGUI.php.


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