ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_id=null) | |
getId () | |
setTitle (string $a_title) | |
getTitle () | |
setDescription (string $a_value) | |
getDescription () | |
setPoolId (int $a_pool_id) | |
getPoolId () | |
setScheduleId (?int $a_schedule_id) | |
getScheduleId () | |
setNrOfItems (int $a_value) | |
getNrOfItems () | |
setFile (string $a_value) | |
getFile () | |
getFileFullPath () | |
uploadFile (array $a_upload) | |
Upload new info file. More... | |
deleteFile () | |
setPostText (string $a_value) | |
getPostText () | |
setPostFile (string $a_value) | |
getPostFile () | |
getPostFileFullPath () | |
uploadPostFile (array $a_upload) | |
Upload new post file. More... | |
deletePostFile () | |
deleteFiles () | |
save () | |
update () | |
delete () | |
Delete single entry. More... | |
deleteReservationsAndCalEntries (int $object_id) | |
doClone (int $a_pool_id, array $a_schedule_map=null) | |
Static Public Member Functions | |
static | initStorage (int $a_id, string $a_subdir="") |
Init file system storage. More... | |
static | getList (int $a_pool_id, string $a_title=null) |
Get list of booking objects. More... | |
static | getNumberOfObjectsForPool (int $a_pool_id) |
Get number of booking objects for given booking pool id. More... | |
static | getObjectsForPool (int $a_pool_id) |
Get all booking pool object ids from an specific booking pool. More... | |
static | getNrOfItemsForObjects (array $a_obj_ids) |
Get nr of available items for a set of object ids. More... | |
static | lookupPoolId (int $object_id) |
static | lookupTitle (int $object_id) |
Protected Member Functions | |
read () | |
getDBFields () | |
Protected Attributes | |
ilDBInterface | $db |
int | $id = 0 |
int | $pool_id = 0 |
string | $title = "" |
string | $description = "" |
int | $nr_of_items = 0 |
int | $schedule_id = null |
string | $info_file = "" |
string | $post_text = "" |
string | $post_file = "" |
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 A bookable ressource
Definition at line 23 of file class.ilBookingObject.php.
ilBookingObject::__construct | ( | int | $a_id = null | ) |
Definition at line 36 of file class.ilBookingObject.php.
References $DIC, ILIAS\Repository\int(), and read().
ilBookingObject::delete | ( | ) |
Delete single entry.
Definition at line 400 of file class.ilBookingObject.php.
References $db, $ilDB, and deleteFiles().
ilBookingObject::deleteFile | ( | ) |
Definition at line 143 of file class.ilBookingObject.php.
References $path, getFileFullPath(), and setFile().
Referenced by uploadFile().
ilBookingObject::deleteFiles | ( | ) |
Definition at line 222 of file class.ilBookingObject.php.
References setFile(), and setPostFile().
Referenced by delete().
ilBookingObject::deletePostFile | ( | ) |
Definition at line 209 of file class.ilBookingObject.php.
References $path, getPostFileFullPath(), and setPostFile().
Referenced by uploadPostFile().
ilBookingObject::deleteReservationsAndCalEntries | ( | int | $object_id | ) |
Definition at line 413 of file class.ilBookingObject.php.
References ilCalendarEntry\delete().
ilBookingObject::doClone | ( | int | $a_pool_id, |
array | $a_schedule_map = null |
||
) |
Definition at line 451 of file class.ilBookingObject.php.
References $source, getDescription(), getFile(), getId(), getNrOfItems(), getPostFile(), getPostText(), getScheduleId(), getTitle(), and ilFileUtils\rCopy().
|
protected |
Definition at line 279 of file class.ilBookingObject.php.
References getDescription(), getFile(), getNrOfItems(), getPostFile(), getPostText(), getScheduleId(), and getTitle().
Referenced by save(), and update().
ilBookingObject::getDescription | ( | ) |
Definition at line 66 of file class.ilBookingObject.php.
References $description.
Referenced by doClone(), and getDBFields().
ilBookingObject::getFile | ( | ) |
Definition at line 106 of file class.ilBookingObject.php.
References $info_file.
Referenced by doClone(), and getDBFields().
ilBookingObject::getFileFullPath | ( | ) |
Definition at line 111 of file class.ilBookingObject.php.
References $info_file, and $path.
Referenced by deleteFile().
ilBookingObject::getId | ( | ) |
Definition at line 46 of file class.ilBookingObject.php.
References $id.
Referenced by doClone().
|
static |
Get list of booking objects.
Definition at line 329 of file class.ilBookingObject.php.
References $DIC, $ilDB, and $res.
Referenced by ilBookingPreferencesManager\calculateBookings(), ilObjBookingPool\cloneObject(), ilBookingAssignObjectsTableGUI\getItems(), ilBookingObjectsTableGUI\getItems(), ilObjBookingPoolGUI\initEditCustomForm(), ilBookingParticipantsTableGUI\initFilter(), ilBookingReservationsTableGUI\initFilter(), ilBookingPreferencesGUI\initPreferenceForm(), ilBookingPreferencesGUI\listPreferenceOptions(), ilBookingPreferencesManager\readBookings(), ilBookingScheduleGUI\render(), and ilBookingReservationsGUI\rsvConfirmCancel().
ilBookingObject::getNrOfItems | ( | ) |
Definition at line 96 of file class.ilBookingObject.php.
References $nr_of_items.
Referenced by doClone(), and getDBFields().
|
static |
Get nr of available items for a set of object ids.
int[] | $a_obj_ids |
Definition at line 432 of file class.ilBookingObject.php.
References $DIC, $ilDB, and ILIAS\Repository\int().
Referenced by ilBookingProcessGUI\confirmedBooking(), ilBookingReservation\getAvailableObject(), ilBookingReservation\getNumAvailablesNoSchedule(), and ilBookingReservation\isObjectAvailableInPeriod().
|
static |
Get number of booking objects for given booking pool id.
Definition at line 359 of file class.ilBookingObject.php.
Referenced by ilBookingParticipantsTableGUI\fillRow().
|
static |
Get all booking pool object ids from an specific booking pool.
Definition at line 378 of file class.ilBookingObject.php.
Referenced by ilBookingReservation\isBookingPoolLimitReachedByUser().
ilBookingObject::getPoolId | ( | ) |
Definition at line 76 of file class.ilBookingObject.php.
References $pool_id.
Referenced by save().
ilBookingObject::getPostFile | ( | ) |
Definition at line 171 of file class.ilBookingObject.php.
References $post_file.
Referenced by doClone(), and getDBFields().
ilBookingObject::getPostFileFullPath | ( | ) |
Definition at line 176 of file class.ilBookingObject.php.
References $path, and $post_file.
Referenced by deletePostFile().
ilBookingObject::getPostText | ( | ) |
Definition at line 161 of file class.ilBookingObject.php.
References $post_text.
Referenced by doClone(), and getDBFields().
ilBookingObject::getScheduleId | ( | ) |
Definition at line 86 of file class.ilBookingObject.php.
References $schedule_id.
Referenced by doClone(), and getDBFields().
ilBookingObject::getTitle | ( | ) |
Definition at line 56 of file class.ilBookingObject.php.
References $title.
Referenced by doClone(), getDBFields(), and ilBookingReservationsGUI\rsvConfirmCancelAggregationForm().
|
static |
Init file system storage.
Definition at line 236 of file class.ilBookingObject.php.
References $path.
|
static |
Definition at line 479 of file class.ilBookingObject.php.
References $DIC, ilDBInterface\fetchAssoc(), and ilDBInterface\queryF().
Referenced by ilBookingReservationsGUI\__construct(), ilBookingObjectGUI\__construct(), and ilBookingReservation\getMembersWithoutReservation().
|
static |
Definition at line 494 of file class.ilBookingObject.php.
References $DIC, ilDBInterface\fetchAssoc(), and ilDBInterface\queryF().
Referenced by ilBookingPreferencesGUI\savePreferences().
|
protected |
Definition at line 256 of file class.ilBookingObject.php.
References $db, $ilDB, setDescription(), setFile(), setNrOfItems(), setPoolId(), setPostFile(), setPostText(), setScheduleId(), and setTitle().
Referenced by __construct().
ilBookingObject::save | ( | ) |
Definition at line 292 of file class.ilBookingObject.php.
References $db, $ilDB, getDBFields(), and getPoolId().
ilBookingObject::setDescription | ( | string | $a_value | ) |
Definition at line 61 of file class.ilBookingObject.php.
Referenced by read().
ilBookingObject::setFile | ( | string | $a_value | ) |
Definition at line 101 of file class.ilBookingObject.php.
Referenced by deleteFile(), deleteFiles(), read(), and uploadFile().
ilBookingObject::setNrOfItems | ( | int | $a_value | ) |
Definition at line 91 of file class.ilBookingObject.php.
Referenced by read().
ilBookingObject::setPoolId | ( | int | $a_pool_id | ) |
Definition at line 71 of file class.ilBookingObject.php.
Referenced by read().
ilBookingObject::setPostFile | ( | string | $a_value | ) |
Definition at line 166 of file class.ilBookingObject.php.
Referenced by deleteFiles(), deletePostFile(), read(), and uploadPostFile().
ilBookingObject::setPostText | ( | string | $a_value | ) |
Definition at line 156 of file class.ilBookingObject.php.
Referenced by read().
ilBookingObject::setScheduleId | ( | ?int | $a_schedule_id | ) |
Definition at line 81 of file class.ilBookingObject.php.
Referenced by read().
ilBookingObject::setTitle | ( | string | $a_title | ) |
Definition at line 51 of file class.ilBookingObject.php.
Referenced by read().
ilBookingObject::update | ( | ) |
Definition at line 309 of file class.ilBookingObject.php.
References $db, $ilDB, and getDBFields().
ilBookingObject::uploadFile | ( | array | $a_upload | ) |
Upload new info file.
Definition at line 123 of file class.ilBookingObject.php.
References $path, deleteFile(), ilFileUtils\moveUploadedFile(), and setFile().
ilBookingObject::uploadPostFile | ( | array | $a_upload | ) |
Upload new post file.
Definition at line 188 of file class.ilBookingObject.php.
References $path, deletePostFile(), ilFileUtils\moveUploadedFile(), and setPostFile().
|
protected |
|
protected |
Definition at line 29 of file class.ilBookingObject.php.
Referenced by getDescription().
|
protected |
Definition at line 26 of file class.ilBookingObject.php.
Referenced by getId().
|
protected |
Definition at line 32 of file class.ilBookingObject.php.
Referenced by getFile(), and getFileFullPath().
|
protected |
Definition at line 30 of file class.ilBookingObject.php.
Referenced by getNrOfItems().
|
protected |
Definition at line 27 of file class.ilBookingObject.php.
Referenced by getPoolId().
|
protected |
Definition at line 34 of file class.ilBookingObject.php.
Referenced by getPostFile(), and getPostFileFullPath().
|
protected |
Definition at line 33 of file class.ilBookingObject.php.
Referenced by getPostText().
|
protected |
Definition at line 31 of file class.ilBookingObject.php.
Referenced by getScheduleId().
|
protected |
Definition at line 28 of file class.ilBookingObject.php.
Referenced by getTitle().