ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.InternalDataService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\BookingManager;
22 
27 
33 {
35 
36  public function __construct()
37  {
38  $this->preferences_factory = new ilBookingPreferencesFactory();
39  //$this->..._factory = new ...\DataFactory();
40  }
41 
42  public function preferences(array $preferences): ilBookingPreferences
43  {
44  return $this->preferences_factory->preferences($preferences);
45  }
46 
47  public function weekEntry(
48  int $start,
49  int $end,
50  string $html
51  ): WeekGridEntry {
52  return new WeekGridEntry(
53  $start,
54  $end,
55  $html
56  );
57  }
58 
59  public function settings(
60  int $id,
61  bool $public_log,
62  int $schedule_type,
63  int $overall_limit = 0,
64  int $reservation_period = 0,
65  bool $reminder_status = false,
66  int $reminder_day = 1,
67  int $pref_deadline = 0,
68  int $preference_nr = 0,
69  bool $messages = false
70  ): Settings {
71  return new Settings(
72  $id,
73  $public_log,
74  $schedule_type,
75  $overall_limit,
76  $reservation_period,
77  $reminder_status,
78  $reminder_day,
79  $pref_deadline,
80  $preference_nr,
81  $messages
82  );
83  }
84 }
settings(int $id, bool $public_log, int $schedule_type, int $overall_limit=0, int $reservation_period=0, bool $reminder_status=false, int $reminder_day=1, int $pref_deadline=0, int $preference_nr=0, bool $messages=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$messages
Definition: xapiexit.php:21
weekEntry(int $start, int $end, string $html)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23