ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjBookingPool Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilObjBookingPool:
+ Collaboration diagram for ilObjBookingPool:

Public Member Functions

 __construct (int $a_id=0, bool $a_call_by_reference=true)
 
 create ()
 note: title, description and type should be set when this function is called More...
 
 update ()
 
 read ()
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 cloneObject (int $target_id, int $copy_id=0, bool $omit_tree=false)
 
 setMessages (bool $a_value=true)
 
 usesMessages ()
 
 setPublicLog (bool $a_value=true)
 Toggle public log property. More...
 
 hasPublicLog ()
 
 setScheduleType (int $a_value)
 
 getScheduleType ()
 
 setReminderStatus (int $a_val)
 
 getReminderStatus ()
 
 setReminderDay (int $a_val)
 
 getReminderDay ()
 
 setPreferenceNumber (int $a_val)
 
 getPreferenceNumber ()
 
 setPreferenceDeadline (int $a_val)
 
 getPreferenceDeadline ()
 
 setOverallLimit (?int $a_value=null)
 Set overall / global booking limit. More...
 
 getOverallLimit ()
 
 setReservationFilterPeriod (?int $a_value=null)
 Set reservation filter period default. More...
 
 getReservationFilterPeriod ()
 
- Public Member Functions inherited from ilObject
 getObjectProperties ()
 
 flushObjectProperties ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 processAutoRating ()
 
 read ()
 
 getId ()
 
 setId (int $id)
 
 setRefId (int $ref_id)
 
 getRefId ()
 
 getType ()
 
 setType (string $type)
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 
 getUntranslatedTitle ()
 Get untranslated object title WebDAV needs to access the untranslated title of an object. More...
 
 setTitle (string $title)
 
 getDescription ()
 
 setDescription (string $description)
 
 getLongDescription ()
 get object long description (stored in object_description) More...
 
 getImportId ()
 
 setImportId (string $import_id)
 
 setOfflineStatus (bool $status)
 
 getOfflineStatus ()
 
 supportsOfflineHandling ()
 
 getOwner ()
 
 getOwnerName ()
 get full name of object owner More...
 
 setOwner (int $usr_id)
 
 getCreateDate ()
 Get create date in YYYY-MM-DD HH-MM-SS format. More...
 
 getLastUpdateDate ()
 Get last update date in YYYY-MM-DD HH-MM-SS format. More...
 
 create ()
 note: title, description and type should be set when this function is called More...
 
 update ()
 
 MDUpdateListener (string $element)
 Metadata update listener. More...
 
 createMetaData ()
 
 updateMetaData ()
 
 deleteMetaData ()
 
 updateOwner ()
 update owner of object in db More...
 
 putInTree (int $parent_ref_id)
 maybe this method should be in tree object!? More...
 
 setPermissions (int $parent_ref_id)
 
 setParentRolePermissions (int $parent_ref_id)
 Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More...
 
 createReference ()
 creates reference for object More...
 
 countReferences ()
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 initDefaultRoles ()
 init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type. More...
 
 applyDidacticTemplate (int $tpl_id)
 
 getXMLZip ()
 
 getHTMLDirectory ()
 
 appendCopyInfo (int $target_id, int $copy_id, int $new_obj_id)
 Prepend Copy info if object with same name exists in that container. More...
 
 cloneDependencies (int $target_id, int $copy_id)
 Clone object dependencies. More...
 
 cloneMetaData (ilObject $target_obj)
 Copy meta data. More...
 
 selfOrParentWithRatingEnabled ()
 
 getPossibleSubObjects (bool $filter=true)
 get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More...
 

Static Public Member Functions

static getPoolsWithReminders ()
 Get pools with reminders. More...
 
static writeLastReminderTimestamp (int $a_obj_id, int $a_ts)
 
static getAdvancedMDFields (int $a_ref_id)
 
- Static Public Member Functions inherited from ilObject
static _lookupObjIdByImportId (string $import_id)
 Get (latest) object id for an import id. More...
 
static _lookupImportId (int $obj_id)
 
static _lookupOwnerName (int $owner_id)
 Lookup owner name for owner id. More...
 
static _getIdForImportId (string $import_id)
 
static _getAllReferences (int $id)
 get all reference ids for object ID More...
 
static _lookupTitle (int $obj_id)
 
static lookupOfflineStatus (int $obj_id)
 Lookup offline status using objectDataCache. More...
 
static _lookupOwner (int $obj_id)
 Lookup owner user ID for object ID. More...
 
static _getIdsForTitle (string $title, string $type='', bool $partial_match=false)
 
static _lookupDescription (int $obj_id)
 
static _lookupLastUpdate (int $obj_id, bool $formatted=false)
 
static _getLastUpdateOfObjects (array $obj_ids)
 
static _lookupObjId (int $ref_id)
 
static _setDeletedDate (int $ref_id, int $deleted_by)
 
static setDeletedDates (array $ref_ids, int $user_id)
 
static _resetDeletedDate (int $ref_id)
 
static _lookupDeletedDate (int $ref_id)
 
static _writeTitle (int $obj_id, string $title)
 write title to db (static) More...
 
static _writeDescription (int $obj_id, string $desc)
 write description to db (static) More...
 
static _writeImportId (int $obj_id, string $import_id)
 write import id to db (static) More...
 
static _lookupType (int $id, bool $reference=false)
 
static _isInTrash (int $ref_id)
 
static _hasUntrashedReference (int $obj_id)
 checks whether an object has at least one reference that is not in trash More...
 
static _lookupObjectId (int $ref_id)
 
static _getObjectsDataForType (string $type, bool $omit_trash=false)
 get all objects of a certain type More...
 
static _exists (int $id, bool $reference=false, ?string $type=null)
 checks if an object exists in object_data More...
 
static _getObjectsByType (string $obj_type="", ?int $owner=null)
 
static _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true)
 Prepare copy wizard object selection. More...
 
static getIconForType (string $type)
 
static _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false)
 Get icon for repository item. More...
 
static collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0)
 Collect deletion dependencies. More...
 
static getDeletionDependencies (int $obj_id)
 Get deletion dependencies. More...
 
static getLongDescriptions (array $obj_ids)
 
static getAllOwnedRepositoryObjects (int $user_id)
 
static fixMissingTitles ($type, array &$obj_title_map)
 Try to fix missing object titles. More...
 
static _lookupCreationDate (int $obj_id)
 
static _getObjectTypeIdByTitle (string $type, ?\ilDBInterface $ilDB=null)
 

Data Fields

const TYPE_FIX_SCHEDULE = 1
 
const TYPE_NO_SCHEDULE = 2
 
const TYPE_NO_SCHEDULE_PREFERENCES = 3
 
- Data Fields inherited from ilObject
const TITLE_LENGTH = 255
 
const DESC_LENGTH = 128
 
const LONG_DESC_LENGTH = 4000
 
const TABLE_OBJECT_DATA = "object_data"
 
array $objectList
 
string $untranslatedTitle
 

Protected Member Functions

 getDBFields ()
 Parse properties for sql statements. More...
 
- Protected Member Functions inherited from ilObject
 doMDUpdateListener (string $a_element)
 
 beforeMDUpdateListener (string $a_element)
 
 doCreateMetaData ()
 
 beforeCreateMetaData ()
 
 doUpdateMetaData ()
 
 beforeUpdateMetaData ()
 
 doDeleteMetaData ()
 
 beforeDeleteMetaData ()
 
 handleAutoRating ()
 
 hasAutoRating ()
 

Protected Attributes

ILIAS BookingManager InternalDomainService $domain
 
bool $public_log = false
 
int $schedule_type = 0
 
int $overall_limit = null
 
int $reservation_period = null
 
int $reminder_status = 0
 
int $reminder_day = 1
 
int $pref_deadline = 0
 
int $preference_nr = 0
 
bool $messages = false
 
- Protected Attributes inherited from ilObject
ilLogger $obj_log
 
ILIAS $ilias
 
ilObjectDefinition $obj_definition
 
ilDBInterface $db
 
ilLogger $log
 
ilErrorHandling $error
 
ilTree $tree
 
ilAppEventHandler $app_event_handler
 
ilRbacAdmin $rbac_admin
 
ilRbacReview $rbac_review
 
ilObjUser $user
 
ilLanguage $lng
 
LOMServices $lom_services
 
bool $call_by_reference
 
int $max_title = self::TITLE_LENGTH
 
int $max_desc = self::DESC_LENGTH
 
bool $add_dots = true
 
int $ref_id = null
 
string $type = ""
 
string $title = ""
 
string $desc = ""
 
string $long_desc = ""
 
int $owner = 0
 
string $create_date = ""
 
string $last_update = ""
 
string $import_id = ""
 
bool $register = false
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilObjBookingPool

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

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

Constructor & Destructor Documentation

◆ __construct()

ilObjBookingPool::__construct ( int  $a_id = 0,
bool  $a_call_by_reference = true 
)

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

45 {
46 global $DIC;
47
48 $this->db = $DIC->database();
49 $this->type = "book";
50 $this->setScheduleType(self::TYPE_FIX_SCHEDULE);
51 parent::__construct($a_id, $a_call_by_reference);
52 $this->domain = $DIC->bookingManager()->internal()->domain();
53 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and setScheduleType().

+ Here is the call graph for this function:

Member Function Documentation

◆ cloneObject()

ilObjBookingPool::cloneObject ( int  $target_id,
int  $copy_id = 0,
bool  $omit_tree = false 
)

Definition at line 213 of file class.ilObjBookingPool.php.

213 : ?ilObject
214 {
215 $new_obj = parent::cloneObject($target_id, $copy_id, $omit_tree);
216
217 $schedule_manager = $this->domain->schedules($this->getId());
218
219 if ($new_obj !== null) {
220 //copy online status if object is not the root copy object
221 $cp_options = ilCopyWizardOptions::_getInstance($copy_id);
222
223 /*
224 if (!$cp_options->isRootNode($this->getRefId())) {
225 $new_obj->setOffline($this->isOffline());
226 }*/
227
228 $new_obj->setScheduleType($this->getScheduleType());
229 $new_obj->setPublicLog($this->hasPublicLog());
230 $new_obj->setOverallLimit($this->getOverallLimit());
231 $new_obj->setReminderStatus($this->getReminderStatus());
232 $new_obj->setReminderDay($this->getReminderDay());
233 $new_obj->setPreferenceNumber($this->getPreferenceNumber());
234 $new_obj->setPreferenceDeadline($this->getPreferenceDeadline());
235 $new_obj->setMessages($this->usesMessages());
236
237 $smap = null;
238 if ($this->getScheduleType() === self::TYPE_FIX_SCHEDULE) {
239 // schedules
240 foreach ($schedule_manager->getScheduleList() as $schedule_id => $title) {
241 $schedule = new ilBookingSchedule($schedule_id);
242 $smap[$schedule_id] = $schedule->doClone($new_obj->getId());
243 }
244 }
245
246 // objects
247 foreach (ilBookingObject::getList($this->getId()) as $item) {
248 $bobj = new ilBookingObject($item["booking_object_id"]);
249 $bobj->doClone($new_obj->getId(), $smap);
250 }
251
252 $new_obj->update();
253
254 return $new_obj;
255 }
256 return null;
257 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getList(int $a_pool_id, ?string $a_title=null)
Get list of booking objects.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getInstance(int $a_copy_id)
Class ilObject Basic functions for all objects.
string $title

References ilCopyWizardOptions\_getInstance(), ILIAS\Survey\Mode\getId(), and ilBookingObject\getList().

+ Here is the call graph for this function:

◆ create()

ilObjBookingPool::create ( )

note: title, description and type should be set when this function is called

Reimplemented from ilObject.

Definition at line 73 of file class.ilObjBookingPool.php.

73 : int
74 {
76
77 $new_id = parent::create();
78
79 $fields = $this->getDBFields();
80 $fields["booking_pool_id"] = array("integer", $new_id);
81
82 $ilDB->insert("booking_settings", $fields);
83
84 return $new_id;
85 }
getDBFields()
Parse properties for sql statements.
ilDBInterface $db

References ilObject\$db, $ilDB, and getDBFields().

+ Here is the call graph for this function:

◆ delete()

ilObjBookingPool::delete ( )

delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!!

Returns
bool true if object was removed completely; false if only a references was removed

Reimplemented from ilObject.

Definition at line 171 of file class.ilObjBookingPool.php.

171 : bool
172 {
174
175 $id = $this->getId();
176
177 if ($this->referenced) {
178 $use_repo = new ilObjUseBookDBRepository($ilDB);
179 $use_repo->deleteEntriesOfBookRefId($this->getRefId());
180 }
181
182 // always call parent delete function first!!
183 if (!parent::delete()) {
184 return false;
185 }
186
187 // put here your module specific stuff
188
189 $ilDB->manipulate('DELETE FROM booking_settings' .
190 ' WHERE booking_pool_id = ' . $ilDB->quote($id, 'integer'));
191
192 $ilDB->manipulate('DELETE FROM booking_schedule' .
193 ' WHERE pool_id = ' . $ilDB->quote($id, 'integer'));
194
195 $objects = array();
196 $set = $ilDB->query('SELECT booking_object_id FROM booking_object' .
197 ' WHERE pool_id = ' . $ilDB->quote($id, 'integer'));
198 while ($row = $ilDB->fetchAssoc($set)) {
199 $objects[] = $row['booking_object_id'];
200 }
201
202 if (count($objects)) {
203 $ilDB->manipulate('DELETE FROM booking_reservation' .
204 ' WHERE ' . $ilDB->in('object_id', $objects, '', 'integer'));
205 }
206
207 $ilDB->manipulate('DELETE FROM booking_object' .
208 ' WHERE pool_id = ' . $ilDB->quote($id, 'integer'));
209
210 return true;
211 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $id, $ilDB, and ILIAS\Survey\Mode\getId().

+ Here is the call graph for this function:

◆ getAdvancedMDFields()

static ilObjBookingPool::getAdvancedMDFields ( int  $a_ref_id)
static

Definition at line 373 of file class.ilObjBookingPool.php.

375 : array {
376 $fields = array();
377
378 $recs = ilAdvancedMDRecord::_getSelectedRecordsByObject("book", $a_ref_id, "bobj");
379
380 foreach ($recs as $record_obj) {
381 foreach (ilAdvancedMDFieldDefinition::getInstancesByRecordId($record_obj->getRecordId()) as $def) {
382 $field_id = $def->getFieldId();
383 $fields[$field_id] = array(
384 "id" => $field_id,
385 "title" => $def->getTitle(),
386 "type" => $def->getType()
387 );
388 }
389 }
390
391 return $fields;
392 }
static getInstancesByRecordId( $a_record_id, $a_only_searchable=false, string $language='')
Get definitions by record id.
static _getSelectedRecordsByObject(string $a_obj_type, int $a_id, string $a_sub_type="", bool $is_ref_id=true)

Referenced by ilBookingReservationsTableGUI\__construct(), and ilBookingObjectsTableGUI\__construct().

+ Here is the caller graph for this function:

◆ getDBFields()

ilObjBookingPool::getDBFields ( )
protected

Parse properties for sql statements.

Definition at line 58 of file class.ilObjBookingPool.php.

58 : array
59 {
60 return array(
61 "schedule_type" => array("integer", $this->getScheduleType()),
62 "public_log" => array("integer", $this->hasPublicLog()),
63 "ovlimit" => array("integer", $this->getOverallLimit()),
64 "reminder_status" => array("integer", $this->getReminderStatus()),
65 "reminder_day" => array("integer", $this->getReminderDay()),
66 "rsv_filter_period" => array("integer", $this->getReservationFilterPeriod()),
67 "preference_nr" => array("integer", $this->getPreferenceNumber()),
68 "pref_deadline" => array("integer", $this->getPreferenceDeadline()),
69 "messages" => array("integer", $this->usesMessages())
70 );
71 }

References getOverallLimit(), getPreferenceDeadline(), getPreferenceNumber(), getReminderDay(), getReminderStatus(), getReservationFilterPeriod(), getScheduleType(), hasPublicLog(), and usesMessages().

Referenced by create(), and update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOverallLimit()

ilObjBookingPool::getOverallLimit ( )

Definition at line 349 of file class.ilObjBookingPool.php.

349 : ?int
350 {
352 }

Referenced by getDBFields().

+ Here is the caller graph for this function:

◆ getPoolsWithReminders()

static ilObjBookingPool::getPoolsWithReminders ( )
static

Get pools with reminders.

Definition at line 133 of file class.ilObjBookingPool.php.

133 : array
134 {
135 global $DIC;
136
137 $db = $DIC->database();
138 $pools = [];
139 $set = $db->queryF(
140 "SELECT * FROM booking_settings " .
141 " WHERE reminder_status = %s " .
142 " AND reminder_day > %s ",
143 array("integer","integer","integer"),
144 array(1,0,0)
145 );
146 while ($rec = $db->fetchAssoc($set)) {
147 if (!ilObject::lookupOfflineStatus($rec["booking_pool_id"])) {
148 $pools[] = $rec;
149 }
150 }
151 return $pools;
152 }
static lookupOfflineStatus(int $obj_id)
Lookup offline status using objectDataCache.
fetchAssoc(ilDBStatement $statement)
queryF(string $query, array $types, array $values)

References ilObject\$db, $DIC, ilDBInterface\fetchAssoc(), ilObject\lookupOfflineStatus(), and ilDBInterface\queryF().

Referenced by ilBookCronNotification\sendNotifications().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPreferenceDeadline()

ilObjBookingPool::getPreferenceDeadline ( )
Returns
int preference deadline unix timestamp

Definition at line 335 of file class.ilObjBookingPool.php.

335 : int
336 {
338 }

Referenced by getDBFields().

+ Here is the caller graph for this function:

◆ getPreferenceNumber()

ilObjBookingPool::getPreferenceNumber ( )

Definition at line 319 of file class.ilObjBookingPool.php.

319 : int
320 {
322 }

Referenced by getDBFields().

+ Here is the caller graph for this function:

◆ getReminderDay()

ilObjBookingPool::getReminderDay ( )

Definition at line 309 of file class.ilObjBookingPool.php.

309 : int
310 {
311 return $this->reminder_day;
312 }

Referenced by getDBFields().

+ Here is the caller graph for this function:

◆ getReminderStatus()

ilObjBookingPool::getReminderStatus ( )

Definition at line 299 of file class.ilObjBookingPool.php.

299 : int
300 {
302 }

Referenced by getDBFields().

+ Here is the caller graph for this function:

◆ getReservationFilterPeriod()

ilObjBookingPool::getReservationFilterPeriod ( )

Definition at line 363 of file class.ilObjBookingPool.php.

363 : ?int
364 {
366 }

Referenced by getDBFields().

+ Here is the caller graph for this function:

◆ getScheduleType()

ilObjBookingPool::getScheduleType ( )

Definition at line 289 of file class.ilObjBookingPool.php.

289 : int
290 {
292 }

Referenced by ilBookingReservationsTableGUI\__construct(), getDBFields(), and ILIAS\BookingManager\BookingProcess\GUIService\getProcessClassForPool().

+ Here is the caller graph for this function:

◆ hasPublicLog()

ilObjBookingPool::hasPublicLog ( )

Definition at line 279 of file class.ilObjBookingPool.php.

279 : bool
280 {
281 return $this->public_log;
282 }

Referenced by getDBFields().

+ Here is the caller graph for this function:

◆ read()

ilObjBookingPool::read ( )

Reimplemented from ilObject.

Definition at line 107 of file class.ilObjBookingPool.php.

107 : void
108 {
110
111 parent::read();
112
113 // put here object specific stuff
114 if ($this->getId()) {
115 $set = $ilDB->query('SELECT * FROM booking_settings' .
116 ' WHERE booking_pool_id = ' . $ilDB->quote($this->getId(), 'integer'));
117 $row = $ilDB->fetchAssoc($set);
118 $this->setPublicLog($row['public_log']);
119 $this->setScheduleType($row['schedule_type']);
120 $this->setOverallLimit($row['ovlimit']);
121 $this->setReminderStatus($row['reminder_status']);
122 $this->setReminderDay($row['reminder_day']);
123 $this->setReservationFilterPeriod($row['rsv_filter_period']);
124 $this->setPreferenceNumber($row['preference_nr']);
125 $this->setPreferenceDeadline($row['pref_deadline']);
126 $this->setMessages((bool) ((int) ($row['messages'] ?? 0)));
127 }
128 }
setReservationFilterPeriod(?int $a_value=null)
Set reservation filter period default.
setMessages(bool $a_value=true)
setOverallLimit(?int $a_value=null)
Set overall / global booking limit.
setPublicLog(bool $a_value=true)
Toggle public log property.

References ilObject\$db, $ilDB, ilObject\getId(), setMessages(), setOverallLimit(), setPreferenceDeadline(), setPreferenceNumber(), setPublicLog(), setReminderDay(), setReminderStatus(), setReservationFilterPeriod(), and setScheduleType().

+ Here is the call graph for this function:

◆ setMessages()

ilObjBookingPool::setMessages ( bool  $a_value = true)

Definition at line 259 of file class.ilObjBookingPool.php.

261 : void {
262 $this->messages = $a_value;
263 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setOverallLimit()

ilObjBookingPool::setOverallLimit ( ?int  $a_value = null)

Set overall / global booking limit.

Definition at line 344 of file class.ilObjBookingPool.php.

344 : void
345 {
346 $this->overall_limit = $a_value;
347 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setPreferenceDeadline()

ilObjBookingPool::setPreferenceDeadline ( int  $a_val)
Parameters
int$a_valpreference deadline unix timestamp

Definition at line 327 of file class.ilObjBookingPool.php.

327 : void
328 {
329 $this->pref_deadline = $a_val;
330 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setPreferenceNumber()

ilObjBookingPool::setPreferenceNumber ( int  $a_val)

Definition at line 314 of file class.ilObjBookingPool.php.

314 : void
315 {
316 $this->preference_nr = $a_val;
317 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setPublicLog()

ilObjBookingPool::setPublicLog ( bool  $a_value = true)

Toggle public log property.

Definition at line 273 of file class.ilObjBookingPool.php.

275 : void {
276 $this->public_log = $a_value;
277 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setReminderDay()

ilObjBookingPool::setReminderDay ( int  $a_val)

Definition at line 304 of file class.ilObjBookingPool.php.

304 : void
305 {
306 $this->reminder_day = $a_val;
307 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setReminderStatus()

ilObjBookingPool::setReminderStatus ( int  $a_val)

Definition at line 294 of file class.ilObjBookingPool.php.

294 : void
295 {
296 $this->reminder_status = $a_val;
297 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setReservationFilterPeriod()

ilObjBookingPool::setReservationFilterPeriod ( ?int  $a_value = null)

Set reservation filter period default.

Definition at line 357 of file class.ilObjBookingPool.php.

359 : void {
360 $this->reservation_period = $a_value;
361 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setScheduleType()

ilObjBookingPool::setScheduleType ( int  $a_value)

Definition at line 284 of file class.ilObjBookingPool.php.

284 : void
285 {
286 $this->schedule_type = $a_value;
287 }

Referenced by __construct(), and read().

+ Here is the caller graph for this function:

◆ update()

ilObjBookingPool::update ( )

Reimplemented from ilObject.

Definition at line 87 of file class.ilObjBookingPool.php.

87 : bool
88 {
90
91 if (!parent::update()) {
92 return false;
93 }
94
95 // put here object specific stuff
96 if ($this->getId()) {
97 $ilDB->update(
98 "booking_settings",
99 $this->getDBFields(),
100 array("booking_pool_id" => array("integer", $this->getId()))
101 );
102 }
103
104 return true;
105 }

References ilObject\$db, $ilDB, getDBFields(), and ilObject\getId().

+ Here is the call graph for this function:

◆ usesMessages()

ilObjBookingPool::usesMessages ( )

Definition at line 265 of file class.ilObjBookingPool.php.

265 : bool
266 {
267 return $this->messages;
268 }

References $messages.

Referenced by getDBFields().

+ Here is the caller graph for this function:

◆ writeLastReminderTimestamp()

static ilObjBookingPool::writeLastReminderTimestamp ( int  $a_obj_id,
int  $a_ts 
)
static
Parameters
int$a_obj_idpool id
int$a_tstimestamp

Definition at line 158 of file class.ilObjBookingPool.php.

161 : void {
162 global $DIC;
163 $db = $DIC->database();
164 $db->update("booking_settings", array(
165 "last_remind_ts" => array("integer", $a_ts)
166 ), array( // where
167 "booking_pool_id" => array("integer", $a_obj_id)
168 ));
169 }
update(string $table_name, array $values, array $where)
@description $where MUST contain existing columns only.

Referenced by ilBookCronNotification\sendNotifications().

+ Here is the caller graph for this function:

Field Documentation

◆ $domain

ILIAS BookingManager InternalDomainService ilObjBookingPool::$domain
protected

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

◆ $messages

bool ilObjBookingPool::$messages = false
protected

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

◆ $overall_limit

int ilObjBookingPool::$overall_limit = null
protected

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

◆ $pref_deadline

int ilObjBookingPool::$pref_deadline = 0
protected

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

◆ $preference_nr

int ilObjBookingPool::$preference_nr = 0
protected

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

◆ $public_log

bool ilObjBookingPool::$public_log = false
protected

Definition at line 31 of file class.ilObjBookingPool.php.

◆ $reminder_day

int ilObjBookingPool::$reminder_day = 1
protected

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

◆ $reminder_status

int ilObjBookingPool::$reminder_status = 0
protected

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

◆ $reservation_period

int ilObjBookingPool::$reservation_period = null
protected

Definition at line 34 of file class.ilObjBookingPool.php.

◆ $schedule_type

int ilObjBookingPool::$schedule_type = 0
protected

Definition at line 32 of file class.ilObjBookingPool.php.

◆ TYPE_FIX_SCHEDULE

◆ TYPE_NO_SCHEDULE

◆ TYPE_NO_SCHEDULE_PREFERENCES


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