| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
a bookable ressource More...
 Collaboration diagram for ilBookingObject:
 Collaboration diagram for ilBookingObject:| Public Member Functions | |
| __construct ($a_id=NULL) | |
| Constructor. | |
| getId () | |
| Get id. | |
| setTitle ($a_title) | |
| Set object title. | |
| getTitle () | |
| Get object title. | |
| setDescription ($a_value) | |
| Set object description. | |
| getDescription () | |
| Get object description. | |
| setPoolId ($a_pool_id) | |
| Set booking pool id. | |
| getPoolId () | |
| Get booking pool id. | |
| setScheduleId ($a_schedule_id) | |
| Set booking schedule id. | |
| getScheduleId () | |
| Get booking schedule id. | |
| setNrOfItems ($a_value) | |
| Set number of items. | |
| getNrOfItems () | |
| Get number of items. | |
| setFile ($a_value) | |
| Set info file. | |
| getFile () | |
| Get info file. | |
| getFileFullPath () | |
| Get path to info file. | |
| uploadFile (array $a_upload) | |
| Upload new info file. | |
| deleteFile () | |
| remove existing info file | |
| setPostText ($a_value) | |
| Set post text. | |
| getPostText () | |
| Get post text. | |
| setPostFile ($a_value) | |
| Set post file. | |
| getPostFile () | |
| Get post file. | |
| getPostFileFullPath () | |
| Get path to post file. | |
| uploadPostFile (array $a_upload) | |
| Upload new post file. | |
| deletePostFile () | |
| remove existing post file | |
| deleteFiles () | |
| remove existing files | |
| save () | |
| Create new entry in db. | |
| update () | |
| Update entry in db. | |
| delete () | |
| Delete single entry. | |
| doClone ($a_pool_id, $a_schedule_map=null) | |
| Static Public Member Functions | |
| static | initStorage ($a_id, $a_subdir=null) | 
| Init file system storage. | |
| static | getList ($a_pool_id) | 
| Get list of booking objects for given type. | |
| static | getNrOfItemsForObjects (array $a_obj_ids) | 
| Get nr of available items. | |
| Protected Member Functions | |
| read () | |
| Get dataset from db. | |
| getDBFields () | |
| Parse properties for sql statements. | |
| Protected Attributes | |
| $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 31 of file class.ilBookingObject.php.
References read().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookingObject::delete | ( | ) | 
Delete single entry.
Definition at line 455 of file class.ilBookingObject.php.
References deleteFiles().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookingObject::deleteFile | ( | ) | 
remove existing info file
Definition at line 197 of file class.ilBookingObject.php.
References $path, getFileFullPath(), and setFile().
Referenced by uploadFile().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::deleteFiles | ( | ) | 
remove existing files
Definition at line 305 of file class.ilBookingObject.php.
References setFile(), and setPostFile().
Referenced by delete().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::deletePostFile | ( | ) | 
remove existing post file
Definition at line 289 of file class.ilBookingObject.php.
References $path, getPostFileFullPath(), and setPostFile().
Referenced by uploadPostFile().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::doClone | ( | $a_pool_id, | |
| $a_schedule_map = null | |||
| ) | 
Definition at line 490 of file class.ilBookingObject.php.
References $schedule_id, getDescription(), getFile(), getId(), getNrOfItems(), getPostFile(), getPostText(), getScheduleId(), getTitle(), initStorage(), and ilUtil\rCopy().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Parse properties for sql statements.
Definition at line 374 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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::getDescription | ( | ) | 
Get object description.
Definition at line 77 of file class.ilBookingObject.php.
References $description.
Referenced by doClone(), and getDBFields().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::getFile | ( | ) | 
Get info file.
Definition at line 149 of file class.ilBookingObject.php.
References $info_file.
Referenced by doClone(), and getDBFields().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::getFileFullPath | ( | ) | 
Get path to info file.
Definition at line 157 of file class.ilBookingObject.php.
References $path, and initStorage().
Referenced by deleteFile().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::getId | ( | ) | 
Get id.
Definition at line 41 of file class.ilBookingObject.php.
References $id.
Referenced by doClone().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Get list of booking objects for given type.
| int | $a_pool_id | 
Definition at line 435 of file class.ilBookingObject.php.
Referenced by ilObjBookingPool\cloneObject(), ilBookingObjectsTableGUI\getItems(), ilObjBookingPoolGUI\initEditCustomForm(), ilBookingReservationsTableGUI\initFilter(), and ilBookingScheduleGUI\render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::getNrOfItems | ( | ) | 
Get number of items.
Definition at line 131 of file class.ilBookingObject.php.
References $nr_of_items.
Referenced by doClone(), and getDBFields().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Get nr of available items.
| array | $a_obj_ids | 
Definition at line 473 of file class.ilBookingObject.php.
References $row.
Referenced by ilObjBookingPoolGUI\confirmedBookingObject(), ilBookingReservation\getAvailableObject(), and ilBookingReservation\isObjectAvailableNoSchedule().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::getPoolId | ( | ) | 
Get booking pool id.
Definition at line 95 of file class.ilBookingObject.php.
References $pool_id.
Referenced by save().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::getPostFile | ( | ) | 
Get post file.
Definition at line 241 of file class.ilBookingObject.php.
References $post_file.
Referenced by doClone(), and getDBFields().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::getPostFileFullPath | ( | ) | 
Get path to post file.
Definition at line 249 of file class.ilBookingObject.php.
References $path, and initStorage().
Referenced by deletePostFile().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::getPostText | ( | ) | 
Get post text.
Definition at line 223 of file class.ilBookingObject.php.
References $post_text.
Referenced by doClone(), and getDBFields().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::getScheduleId | ( | ) | 
Get booking schedule id.
Definition at line 113 of file class.ilBookingObject.php.
References $schedule_id.
Referenced by doClone(), and getDBFields().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::getTitle | ( | ) | 
Get object title.
Definition at line 59 of file class.ilBookingObject.php.
References $title.
Referenced by doClone(), getDBFields(), and ilObjBookingPoolGUI\rsvConfirmCancelObject().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Init file system storage.
| type | $a_id | |
| type | $a_subdir | 
Definition at line 325 of file class.ilBookingObject.php.
References $path.
Referenced by doClone(), getFileFullPath(), getPostFileFullPath(), uploadFile(), and uploadPostFile().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Get dataset from db.
Definition at line 349 of file class.ilBookingObject.php.
References $row, setDescription(), setFile(), setNrOfItems(), setPoolId(), setPostFile(), setPostText(), setScheduleId(), and setTitle().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::save | ( | ) | 
Create new entry in db.
Definition at line 393 of file class.ilBookingObject.php.
References getDBFields(), and getPoolId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookingObject::setDescription | ( | $a_value | ) | 
Set object description.
| string | $a_value | 
Definition at line 68 of file class.ilBookingObject.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::setFile | ( | $a_value | ) | 
Set info file.
| string | $a_value | 
Definition at line 140 of file class.ilBookingObject.php.
Referenced by deleteFile(), deleteFiles(), read(), and uploadFile().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::setNrOfItems | ( | $a_value | ) | 
Set number of items.
| int | $a_value | 
Definition at line 122 of file class.ilBookingObject.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::setPoolId | ( | $a_pool_id | ) | 
Set booking pool id.
| int | $a_pool_id | 
Definition at line 86 of file class.ilBookingObject.php.
Referenced by read(), and ilBookingObjectGUI\save().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::setPostFile | ( | $a_value | ) | 
Set post file.
| string | $a_value | 
Definition at line 232 of file class.ilBookingObject.php.
Referenced by deleteFiles(), deletePostFile(), read(), and uploadPostFile().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::setPostText | ( | $a_value | ) | 
Set post text.
| string | $a_value | 
Definition at line 214 of file class.ilBookingObject.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::setScheduleId | ( | $a_schedule_id | ) | 
Set booking schedule id.
| int | $a_schedule_id | 
Definition at line 104 of file class.ilBookingObject.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::setTitle | ( | $a_title | ) | 
Set object title.
| string | $a_title | 
Definition at line 50 of file class.ilBookingObject.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilBookingObject::update | ( | ) | 
Update entry in db.
Definition at line 415 of file class.ilBookingObject.php.
References getDBFields().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookingObject::uploadFile | ( | array | $a_upload | ) | 
Upload new info file.
| array | $a_upload | 
Definition at line 172 of file class.ilBookingObject.php.
References $path, deleteFile(), initStorage(), and setFile().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilBookingObject::uploadPostFile | ( | array | $a_upload | ) | 
Upload new post file.
| array | $a_upload | 
Definition at line 264 of file class.ilBookingObject.php.
References $path, deletePostFile(), initStorage(), and setPostFile().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Definition at line 17 of file class.ilBookingObject.php.
Referenced by getDescription().
| 
 | protected | 
Definition at line 14 of file class.ilBookingObject.php.
Referenced by getId().
| 
 | protected | 
Definition at line 20 of file class.ilBookingObject.php.
Referenced by getFile().
| 
 | protected | 
Definition at line 18 of file class.ilBookingObject.php.
Referenced by getNrOfItems().
| 
 | protected | 
Definition at line 15 of file class.ilBookingObject.php.
Referenced by getPoolId().
| 
 | protected | 
Definition at line 22 of file class.ilBookingObject.php.
Referenced by getPostFile().
| 
 | protected | 
Definition at line 21 of file class.ilBookingObject.php.
Referenced by getPostText().
| 
 | protected | 
Definition at line 19 of file class.ilBookingObject.php.
Referenced by doClone(), and getScheduleId().
| 
 | protected | 
Definition at line 16 of file class.ilBookingObject.php.
Referenced by getTitle().