|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
a bookable ressource More...
Collaboration diagram for ilBookingObject:Public Member Functions | |
| __construct ($a_id=null) | |
| Constructor. More... | |
| getId () | |
| Get id. More... | |
| setTitle ($a_title) | |
| Set object title. More... | |
| getTitle () | |
| Get object title. More... | |
| setDescription ($a_value) | |
| Set object description. More... | |
| getDescription () | |
| Get object description. More... | |
| setPoolId ($a_pool_id) | |
| Set booking pool id. More... | |
| getPoolId () | |
| Get booking pool id. More... | |
| setScheduleId ($a_schedule_id) | |
| Set booking schedule id. More... | |
| getScheduleId () | |
| Get booking schedule id. More... | |
| setNrOfItems ($a_value) | |
| Set number of items. More... | |
| getNrOfItems () | |
| Get number of items. More... | |
| setFile ($a_value) | |
| Set info file. More... | |
| getFile () | |
| Get info file. More... | |
| getFileFullPath () | |
| Get path to info file. More... | |
| uploadFile (array $a_upload) | |
| Upload new info file. More... | |
| deleteFile () | |
| remove existing info file More... | |
| setPostText ($a_value) | |
| Set post text. More... | |
| getPostText () | |
| Get post text. More... | |
| setPostFile ($a_value) | |
| Set post file. More... | |
| getPostFile () | |
| Get post file. More... | |
| getPostFileFullPath () | |
| Get path to post file. More... | |
| uploadPostFile (array $a_upload) | |
| Upload new post file. More... | |
| deletePostFile () | |
| remove existing post file More... | |
| deleteFiles () | |
| remove existing files More... | |
| save () | |
| Create new entry in db. More... | |
| update () | |
| Update entry in db. More... | |
| delete () | |
| Delete single entry. More... | |
| doClone ($a_pool_id, $a_schedule_map=null) | |
Static Public Member Functions | |
| static | initStorage ($a_id, $a_subdir=null) |
| Init file system storage. More... | |
| static | getList ($a_pool_id, $a_title=null) |
| Get list of booking objects for given type. More... | |
| static | getNumberOfObjectsForPool ($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. More... | |
| static | lookupPoolId ($object_id) |
| Lookup pool id. More... | |
| static | lookupTitle ($object_id) |
| Lookup pool id. More... | |
Protected Member Functions | |
| read () | |
| Get dataset from db. More... | |
| getDBFields () | |
| Parse properties for sql statements. More... | |
Protected Attributes | |
| $db | |
| $id | |
| $pool_id | |
| $title | |
| $description | |
| $nr_of_items | |
| $schedule_id | |
| $info_file | |
| $post_text | |
| $post_file | |
| ilBookingObject::__construct | ( | $a_id = null | ) |
Constructor.
if id is given will read dataset from db
| int | $a_id |
Definition at line 36 of file class.ilBookingObject.php.
Here is the call graph for this function:| ilBookingObject::delete | ( | ) |
Delete single entry.
Definition at line 500 of file class.ilBookingObject.php.
References $db, $ilDB, and deleteFiles().
Here is the call graph for this function:| ilBookingObject::deleteFile | ( | ) |
remove existing info file
Definition at line 201 of file class.ilBookingObject.php.
References getFileFullPath(), and setFile().
Referenced by uploadFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingObject::deleteFiles | ( | ) |
remove existing files
Definition at line 302 of file class.ilBookingObject.php.
References setFile(), and setPostFile().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingObject::deletePostFile | ( | ) |
remove existing post file
Definition at line 288 of file class.ilBookingObject.php.
References getPostFileFullPath(), and setPostFile().
Referenced by uploadPostFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingObject::doClone | ( | $a_pool_id, | |
$a_schedule_map = null |
|||
| ) |
Definition at line 535 of file class.ilBookingObject.php.
References $schedule_id, $source, getDescription(), getFile(), getId(), getNrOfItems(), getPostFile(), getPostText(), getScheduleId(), getTitle(), initStorage(), and ilUtil\rCopy().
Here is the call graph for this function:
|
protected |
Parse properties for sql statements.
Definition at line 365 of file class.ilBookingObject.php.
References getDescription(), getFile(), getNrOfItems(), getPostFile(), getPostText(), getScheduleId(), and getTitle().
Referenced by save(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingObject::getDescription | ( | ) |
Get object description.
Definition at line 85 of file class.ilBookingObject.php.
References $description.
Referenced by doClone(), and getDBFields().
Here is the caller graph for this function:| ilBookingObject::getFile | ( | ) |
Get info file.
Definition at line 157 of file class.ilBookingObject.php.
References $info_file.
Referenced by doClone(), and getDBFields().
Here is the caller graph for this function:| ilBookingObject::getFileFullPath | ( | ) |
Get path to info file.
Definition at line 165 of file class.ilBookingObject.php.
References $info_file, and initStorage().
Referenced by deleteFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingObject::getId | ( | ) |
Get id.
Definition at line 49 of file class.ilBookingObject.php.
References $id.
Referenced by doClone().
Here is the caller graph for this function:
|
static |
Get list of booking objects for given type.
| int | $a_pool_id | |
| string | $a_title |
Definition at line 428 of file class.ilBookingObject.php.
References $DIC, $ilDB, and $res.
Referenced by ilBookingPreferencesManager\calculateBookings(), ilObjBookingPool\cloneObject(), ilBookingObjectsTableGUI\getItems(), ilBookingAssignObjectsTableGUI\getItems(), ilObjBookingPoolGUI\initEditCustomForm(), ilBookingParticipantsTableGUI\initFilter(), ilBookingReservationsTableGUI\initFilter(), ilBookingPreferencesGUI\initPreferenceForm(), ilBookingPreferencesGUI\listPreferenceOptions(), ilBookingPreferencesManager\readBookings(), ilBookingScheduleGUI\render(), and ilBookingReservationsGUI\rsvConfirmCancel().
Here is the caller graph for this function:| ilBookingObject::getNrOfItems | ( | ) |
Get number of items.
Definition at line 139 of file class.ilBookingObject.php.
References $nr_of_items.
Referenced by doClone(), and getDBFields().
Here is the caller graph for this function:
|
static |
Get nr of available items.
| array | $a_obj_ids |
Definition at line 517 of file class.ilBookingObject.php.
Referenced by ilBookingProcessGUI\confirmedBooking(), ilBookingReservation\getAvailableObject(), ilBookingReservation\getNumAvailablesNoSchedule(), and ilBookingReservation\isObjectAvailableInPeriod().
Here is the caller graph for this function:
|
static |
Get number of booking objects for given booking pool id.
| int | $a_pool_id |
Definition at line 458 of file class.ilBookingObject.php.
Referenced by ilBookingParticipantsTableGUI\fillRow().
Here is the caller graph for this function:
|
static |
Get all booking pool object ids from an specific booking pool.
| int | $a_pool_id |
Definition at line 478 of file class.ilBookingObject.php.
Referenced by ilBookingReservation\isBookingPoolLimitReachedByUser().
Here is the caller graph for this function:| ilBookingObject::getPoolId | ( | ) |
Get booking pool id.
Definition at line 103 of file class.ilBookingObject.php.
References $pool_id.
Referenced by save().
Here is the caller graph for this function:| ilBookingObject::getPostFile | ( | ) |
Get post file.
Definition at line 243 of file class.ilBookingObject.php.
References $post_file.
Referenced by doClone(), and getDBFields().
Here is the caller graph for this function:| ilBookingObject::getPostFileFullPath | ( | ) |
Get path to post file.
Definition at line 251 of file class.ilBookingObject.php.
References $post_file, and initStorage().
Referenced by deletePostFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingObject::getPostText | ( | ) |
Get post text.
Definition at line 225 of file class.ilBookingObject.php.
References $post_text.
Referenced by doClone(), and getDBFields().
Here is the caller graph for this function:| ilBookingObject::getScheduleId | ( | ) |
Get booking schedule id.
Definition at line 121 of file class.ilBookingObject.php.
References $schedule_id.
Referenced by doClone(), and getDBFields().
Here is the caller graph for this function:| ilBookingObject::getTitle | ( | ) |
Get object title.
Definition at line 67 of file class.ilBookingObject.php.
References $title.
Referenced by doClone(), and getDBFields().
Here is the caller graph for this function:
|
static |
Init file system storage.
| type | $a_id | |
| type | $a_subdir |
Definition at line 320 of file class.ilBookingObject.php.
Referenced by doClone(), getFileFullPath(), getPostFileFullPath(), uploadFile(), and uploadPostFile().
Here is the caller graph for this function:
|
static |
Lookup pool id.
| int | $object_id |
Definition at line 567 of file class.ilBookingObject.php.
Referenced by ilObjBookingPoolGUI\__construct(), ilBookingReservationsGUI\__construct(), and ilBookingReservation\getMembersWithoutReservation().
Here is the caller graph for this function:
|
static |
Lookup pool id.
| int | $object_id |
Definition at line 588 of file class.ilBookingObject.php.
Referenced by ilBookingPreferencesGUI\savePreferences().
Here is the caller graph for this function:
|
protected |
Get dataset from db.
Definition at line 341 of file class.ilBookingObject.php.
References $db, $ilDB, setDescription(), setFile(), setNrOfItems(), setPoolId(), setPostFile(), setPostText(), setScheduleId(), and setTitle().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingObject::save | ( | ) |
Create new entry in db.
Definition at line 384 of file class.ilBookingObject.php.
References $db, $ilDB, getDBFields(), and getPoolId().
Here is the call graph for this function:| ilBookingObject::setDescription | ( | $a_value | ) |
Set object description.
| string | $a_value |
Definition at line 76 of file class.ilBookingObject.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingObject::setFile | ( | $a_value | ) |
Set info file.
| string | $a_value |
Definition at line 148 of file class.ilBookingObject.php.
Referenced by deleteFile(), deleteFiles(), read(), and uploadFile().
Here is the caller graph for this function:| ilBookingObject::setNrOfItems | ( | $a_value | ) |
Set number of items.
| int | $a_value |
Definition at line 130 of file class.ilBookingObject.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingObject::setPoolId | ( | $a_pool_id | ) |
Set booking pool id.
| int | $a_pool_id |
Definition at line 94 of file class.ilBookingObject.php.
Referenced by read(), and ilBookingObjectGUI\save().
Here is the caller graph for this function:| ilBookingObject::setPostFile | ( | $a_value | ) |
Set post file.
| string | $a_value |
Definition at line 234 of file class.ilBookingObject.php.
Referenced by deleteFiles(), deletePostFile(), read(), and uploadPostFile().
Here is the caller graph for this function:| ilBookingObject::setPostText | ( | $a_value | ) |
Set post text.
| string | $a_value |
Definition at line 216 of file class.ilBookingObject.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingObject::setScheduleId | ( | $a_schedule_id | ) |
Set booking schedule id.
| int | $a_schedule_id |
Definition at line 112 of file class.ilBookingObject.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingObject::setTitle | ( | $a_title | ) |
Set object title.
| string | $a_title |
Definition at line 58 of file class.ilBookingObject.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingObject::update | ( | ) |
Update entry in db.
Definition at line 405 of file class.ilBookingObject.php.
References $db, $ilDB, and getDBFields().
Here is the call graph for this function:| ilBookingObject::uploadFile | ( | array | $a_upload | ) |
Upload new info file.
| array | $a_upload |
Definition at line 179 of file class.ilBookingObject.php.
References deleteFile(), initStorage(), ilUtil\moveUploadedFile(), and setFile().
Here is the call graph for this function:| ilBookingObject::uploadPostFile | ( | array | $a_upload | ) |
Upload new post file.
| array | $a_upload |
Definition at line 265 of file class.ilBookingObject.php.
References deletePostFile(), initStorage(), ilUtil\moveUploadedFile(), and setPostFile().
Here is the call graph for this function:
|
protected |
Definition at line 17 of file class.ilBookingObject.php.
Referenced by delete(), lookupPoolId(), lookupTitle(), read(), save(), and update().
|
protected |
Definition at line 22 of file class.ilBookingObject.php.
Referenced by getDescription().
|
protected |
Definition at line 19 of file class.ilBookingObject.php.
Referenced by getId().
|
protected |
Definition at line 25 of file class.ilBookingObject.php.
Referenced by getFile(), and getFileFullPath().
|
protected |
Definition at line 23 of file class.ilBookingObject.php.
Referenced by getNrOfItems().
|
protected |
Definition at line 20 of file class.ilBookingObject.php.
Referenced by getPoolId().
|
protected |
Definition at line 27 of file class.ilBookingObject.php.
Referenced by getPostFile(), and getPostFileFullPath().
|
protected |
Definition at line 26 of file class.ilBookingObject.php.
Referenced by getPostText().
|
protected |
Definition at line 24 of file class.ilBookingObject.php.
Referenced by doClone(), and getScheduleId().
|
protected |
Definition at line 21 of file class.ilBookingObject.php.
Referenced by getTitle().