|
ILIAS
Release_5_0_x_branch Revision 61816
|
schedule for booking ressource More...
Collaboration diagram for ilBookingSchedule:Public Member Functions | |
| __construct ($a_id=NULL) | |
| Constructor. | |
| setTitle ($a_title) | |
| Set object title. | |
| getTitle () | |
| Get object title. | |
| setPoolId ($a_pool_id) | |
| Set booking pool id (aka parent obj ref id) | |
| getPoolId () | |
| Get booking pool id. | |
| setRaster ($a_raster) | |
| Set booking raster (in minutes) | |
| getRaster () | |
| Get booking raster. | |
| setMinRental ($a_min) | |
| Set minimum rental time. | |
| getMinRental () | |
| Get minimum rental time. | |
| setMaxRental ($a_max) | |
| Set maximum rental time. | |
| getMaxRental () | |
| Get maximum rental time. | |
| setAutoBreak ($a_break) | |
| Set break time. | |
| getAutoBreak () | |
| Get break time. | |
| setDeadline ($a_deadline) | |
| Set deadline. | |
| getDeadline () | |
| Get deadline. | |
| setDefinition ($a_definition) | |
| Set definition. | |
| getDefinition () | |
| Get definition. | |
| save () | |
| Create new entry in db. | |
| update () | |
| Update entry in db. | |
| doClone ($a_pool_id) | |
| delete () | |
| Delete single entry. | |
| getDefinitionBySlots () | |
| Return definition grouped by slots (not days) | |
| setDefinitionBySlots (array $a_def) | |
Static Public Member Functions | |
| static | hasExistingSchedules ($a_pool_id) |
| Check if given pool has any defined schedules. | |
| static | getList ($a_pool_id) |
| Get list of booking objects for given pool. | |
Protected Member Functions | |
| read () | |
| Get dataset from db. | |
| saveDefinition () | |
| Save current definition. | |
Protected Attributes | |
| $id | |
| $title | |
| $pool_id | |
| $raster | |
| $rent_min | |
| $rent_max | |
| $auto_break | |
| $deadline | |
| $definition | |
schedule for booking ressource
Definition at line 12 of file class.ilBookingSchedule.php.
| ilBookingSchedule::__construct | ( | $a_id = NULL | ) |
Constructor.
if id is given will read dataset from db
| int | $a_id |
Definition at line 31 of file class.ilBookingSchedule.php.
References read().
Here is the call graph for this function:| ilBookingSchedule::delete | ( | ) |
Delete single entry.
Definition at line 372 of file class.ilBookingSchedule.php.
References $ilDB.
| ilBookingSchedule::doClone | ( | $a_pool_id | ) |
Definition at line 272 of file class.ilBookingSchedule.php.
References getAutoBreak(), getDeadline(), getDefinition(), getMaxRental(), getMinRental(), getRaster(), and getTitle().
Here is the call graph for this function:| ilBookingSchedule::getAutoBreak | ( | ) |
Get break time.
Definition at line 140 of file class.ilBookingSchedule.php.
References $auto_break.
Referenced by doClone(), and save().
Here is the caller graph for this function:| ilBookingSchedule::getDeadline | ( | ) |
Get deadline.
Definition at line 158 of file class.ilBookingSchedule.php.
References $deadline.
Referenced by doClone(), and save().
Here is the caller graph for this function:| ilBookingSchedule::getDefinition | ( | ) |
Get definition.
Definition at line 176 of file class.ilBookingSchedule.php.
References $definition.
Referenced by doClone(), getDefinitionBySlots(), and saveDefinition().
Here is the caller graph for this function:| ilBookingSchedule::getDefinitionBySlots | ( | ) |
Return definition grouped by slots (not days)
Definition at line 388 of file class.ilBookingSchedule.php.
References getDefinition().
Here is the call graph for this function:
|
static |
Get list of booking objects for given pool.
| int | $a_pool_id |
Definition at line 341 of file class.ilBookingSchedule.php.
References $ilDB, $res, and $row.
Referenced by ilObjBookingPool\cloneObject(), ilObjBookingPoolGUI\editObject(), ilBookingSchedulesTableGUI\getItems(), ilBookingReservationsTableGUI\initFilter(), and ilBookingObjectGUI\initForm().
Here is the caller graph for this function:| ilBookingSchedule::getMaxRental | ( | ) |
Get maximum rental time.
Definition at line 122 of file class.ilBookingSchedule.php.
References $rent_max.
Referenced by doClone(), and save().
Here is the caller graph for this function:| ilBookingSchedule::getMinRental | ( | ) |
Get minimum rental time.
Definition at line 104 of file class.ilBookingSchedule.php.
References $rent_min.
Referenced by doClone(), and save().
Here is the caller graph for this function:| ilBookingSchedule::getPoolId | ( | ) |
Get booking pool id.
Definition at line 68 of file class.ilBookingSchedule.php.
References $pool_id.
Referenced by save().
Here is the caller graph for this function:| ilBookingSchedule::getRaster | ( | ) |
Get booking raster.
Definition at line 86 of file class.ilBookingSchedule.php.
References $raster.
Referenced by doClone(), ilObjBookingPoolGUI\renderSlots(), and save().
Here is the caller graph for this function:| ilBookingSchedule::getTitle | ( | ) |
Get object title.
Definition at line 50 of file class.ilBookingSchedule.php.
References $title.
Referenced by doClone(), and save().
Here is the caller graph for this function:
|
static |
Check if given pool has any defined schedules.
| int | $a_pool_id |
Definition at line 326 of file class.ilBookingSchedule.php.
References $ilDB.
|
protected |
Get dataset from db.
Definition at line 184 of file class.ilBookingSchedule.php.
References $definition, $ilDB, $row, setAutoBreak(), setDeadline(), setDefinition(), setMaxRental(), setMinRental(), setRaster(), and setTitle().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingSchedule::save | ( | ) |
Create new entry in db.
Definition at line 222 of file class.ilBookingSchedule.php.
References $id, $ilDB, getAutoBreak(), getDeadline(), getMaxRental(), getMinRental(), getPoolId(), getRaster(), getTitle(), and saveDefinition().
Here is the call graph for this function:
|
protected |
Save current definition.
Definition at line 289 of file class.ilBookingSchedule.php.
References $definition, $ilDB, and getDefinition().
Referenced by save(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingSchedule::setAutoBreak | ( | $a_break | ) |
Set break time.
| int | $a_break |
Definition at line 131 of file class.ilBookingSchedule.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingSchedule::setDeadline | ( | $a_deadline | ) |
Set deadline.
| int | $a_deadline |
Definition at line 149 of file class.ilBookingSchedule.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingSchedule::setDefinition | ( | $a_definition | ) |
Set definition.
| array | $a_definition |
Definition at line 167 of file class.ilBookingSchedule.php.
Referenced by read(), and setDefinitionBySlots().
Here is the caller graph for this function:| ilBookingSchedule::setDefinitionBySlots | ( | array | $a_def | ) |
Definition at line 407 of file class.ilBookingSchedule.php.
References setDefinition().
Here is the call graph for this function:| ilBookingSchedule::setMaxRental | ( | $a_max | ) |
Set maximum rental time.
| int | $a_max |
Definition at line 113 of file class.ilBookingSchedule.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingSchedule::setMinRental | ( | $a_min | ) |
Set minimum rental time.
| int | $a_min |
Definition at line 95 of file class.ilBookingSchedule.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingSchedule::setPoolId | ( | $a_pool_id | ) |
Set booking pool id (aka parent obj ref id)
| int | $a_pool_id |
Definition at line 59 of file class.ilBookingSchedule.php.
| ilBookingSchedule::setRaster | ( | $a_raster | ) |
Set booking raster (in minutes)
| int | $a_raster |
Definition at line 77 of file class.ilBookingSchedule.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingSchedule::setTitle | ( | $a_title | ) |
Set object title.
| string | $a_title |
Definition at line 41 of file class.ilBookingSchedule.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingSchedule::update | ( | ) |
Update entry in db.
Definition at line 250 of file class.ilBookingSchedule.php.
References $ilDB, and saveDefinition().
Here is the call graph for this function:
|
protected |
Definition at line 20 of file class.ilBookingSchedule.php.
Referenced by getAutoBreak().
|
protected |
Definition at line 21 of file class.ilBookingSchedule.php.
Referenced by getDeadline().
|
protected |
Definition at line 22 of file class.ilBookingSchedule.php.
Referenced by getDefinition(), read(), and saveDefinition().
|
protected |
Definition at line 14 of file class.ilBookingSchedule.php.
Referenced by save().
|
protected |
Definition at line 16 of file class.ilBookingSchedule.php.
Referenced by getPoolId().
|
protected |
Definition at line 17 of file class.ilBookingSchedule.php.
Referenced by getRaster().
|
protected |
Definition at line 19 of file class.ilBookingSchedule.php.
Referenced by getMaxRental().
|
protected |
Definition at line 18 of file class.ilBookingSchedule.php.
Referenced by getMinRental().
|
protected |
Definition at line 15 of file class.ilBookingSchedule.php.
Referenced by getTitle().