|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
schedule for booking ressource More...
Collaboration diagram for ilBookingSchedule:Public Member Functions | |
| __construct ($a_id=NULL) | |
| Constructor. More... | |
| setTitle ($a_title) | |
| Set object title. More... | |
| getTitle () | |
| Get object title. More... | |
| setPoolId ($a_pool_id) | |
| Set booking pool id (aka parent obj ref id) More... | |
| getPoolId () | |
| Get booking pool id. More... | |
| setRaster ($a_raster) | |
| Set booking raster (in minutes) More... | |
| getRaster () | |
| Get booking raster. More... | |
| setMinRental ($a_min) | |
| Set minimum rental time. More... | |
| getMinRental () | |
| Get minimum rental time. More... | |
| setMaxRental ($a_max) | |
| Set maximum rental time. More... | |
| getMaxRental () | |
| Get maximum rental time. More... | |
| setAutoBreak ($a_break) | |
| Set break time. More... | |
| getAutoBreak () | |
| Get break time. More... | |
| setDeadline ($a_deadline) | |
| Set deadline. More... | |
| getDeadline () | |
| Get deadline. More... | |
| setDefinition ($a_definition) | |
| Set definition. More... | |
| getDefinition () | |
| Get definition. More... | |
| setAvailabilityFrom (ilDateTime $a_date=null) | |
| Set availability start. More... | |
| getAvailabilityFrom () | |
| Get availability start. More... | |
| setAvailabilityTo (ilDateTime $a_date=null) | |
| Set availability end. More... | |
| getAvailabilityTo () | |
| Get availability end. More... | |
| save () | |
| Create new entry in db. More... | |
| update () | |
| Update entry in db. More... | |
| doClone ($a_pool_id) | |
| delete () | |
| Delete single entry. More... | |
| getDefinitionBySlots () | |
| Return definition grouped by slots (not days) More... | |
| setDefinitionBySlots (array $a_def) | |
Static Public Member Functions | |
| static | hasExistingSchedules ($a_pool_id) |
| Check if given pool has any defined schedules. More... | |
| static | getList ($a_pool_id) |
| Get list of booking objects for given pool. More... | |
Protected Member Functions | |
| read () | |
| Get dataset from db. More... | |
| saveDefinition () | |
| Save current definition. More... | |
Protected Attributes | |
| $id | |
| $title | |
| $pool_id | |
| $raster | |
| $rent_min | |
| $rent_max | |
| $auto_break | |
| $deadline | |
| $definition | |
| $av_from | |
| $av_to | |
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 33 of file class.ilBookingSchedule.php.
References read().
Here is the call graph for this function:| ilBookingSchedule::delete | ( | ) |
Delete single entry.
Definition at line 435 of file class.ilBookingSchedule.php.
References $ilDB.
| ilBookingSchedule::doClone | ( | $a_pool_id | ) |
Definition at line 333 of file class.ilBookingSchedule.php.
References getAutoBreak(), getAvailabilityFrom(), getAvailabilityTo(), getDeadline(), getDefinition(), getMaxRental(), getMinRental(), getRaster(), and getTitle().
Here is the call graph for this function:| ilBookingSchedule::getAutoBreak | ( | ) |
Get break time.
Definition at line 142 of file class.ilBookingSchedule.php.
References $auto_break.
Referenced by doClone(), save(), and update().
Here is the caller graph for this function:| ilBookingSchedule::getAvailabilityFrom | ( | ) |
Get availability start.
Definition at line 198 of file class.ilBookingSchedule.php.
References $av_from.
Referenced by doClone(), ilBookingReservation\isObjectAvailableInPeriod(), save(), and update().
Here is the caller graph for this function:| ilBookingSchedule::getAvailabilityTo | ( | ) |
Get availability end.
Definition at line 218 of file class.ilBookingSchedule.php.
References $av_to.
Referenced by doClone(), ilBookingReservation\isObjectAvailableInPeriod(), save(), and update().
Here is the caller graph for this function:| ilBookingSchedule::getDeadline | ( | ) |
| ilBookingSchedule::getDefinition | ( | ) |
Get definition.
Definition at line 178 of file class.ilBookingSchedule.php.
References $definition.
Referenced by doClone(), getDefinitionBySlots(), ilBookingReservation\isObjectAvailableInPeriod(), and saveDefinition().
Here is the caller graph for this function:| ilBookingSchedule::getDefinitionBySlots | ( | ) |
Return definition grouped by slots (not days)
Definition at line 451 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 404 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 | ( | ) |
| ilBookingSchedule::getMinRental | ( | ) |
| ilBookingSchedule::getPoolId | ( | ) |
Get booking pool id.
Definition at line 70 of file class.ilBookingSchedule.php.
References $pool_id.
Referenced by save(), and update().
Here is the caller graph for this function:| ilBookingSchedule::getRaster | ( | ) |
Get booking raster.
Definition at line 88 of file class.ilBookingSchedule.php.
References $raster.
Referenced by doClone(), ilObjBookingPoolGUI\renderSlots(), save(), and update().
Here is the caller graph for this function:| ilBookingSchedule::getTitle | ( | ) |
Get object title.
Definition at line 52 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 389 of file class.ilBookingSchedule.php.
References $ilDB.
|
protected |
Get dataset from db.
Definition at line 226 of file class.ilBookingSchedule.php.
References $definition, $ilDB, $row, IL_CAL_UNIX, setAutoBreak(), setAvailabilityFrom(), setAvailabilityTo(), 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 266 of file class.ilBookingSchedule.php.
References $av_from, $av_to, $id, $ilDB, getAutoBreak(), getAvailabilityFrom(), getAvailabilityTo(), getDeadline(), getMaxRental(), getMinRental(), getPoolId(), getRaster(), getTitle(), IL_CAL_UNIX, and saveDefinition().
Here is the call graph for this function:
|
protected |
Save current definition.
Definition at line 352 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 133 of file class.ilBookingSchedule.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingSchedule::setAvailabilityFrom | ( | ilDateTime | $a_date = null | ) |
Set availability start.
| ilDateTime | $a_date |
Definition at line 188 of file class.ilBookingSchedule.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingSchedule::setAvailabilityTo | ( | ilDateTime | $a_date = null | ) |
Set availability end.
| ilDateTime | $a_date |
Definition at line 208 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 151 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 169 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 470 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 115 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 97 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 61 of file class.ilBookingSchedule.php.
| ilBookingSchedule::setRaster | ( | $a_raster | ) |
Set booking raster (in minutes)
| int | $a_raster |
Definition at line 79 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 43 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 302 of file class.ilBookingSchedule.php.
References $av_from, $av_to, $ilDB, getAutoBreak(), getAvailabilityFrom(), getAvailabilityTo(), getDeadline(), getMaxRental(), getMinRental(), getPoolId(), getRaster(), IL_CAL_UNIX, 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 23 of file class.ilBookingSchedule.php.
Referenced by getAvailabilityFrom(), save(), and update().
|
protected |
Definition at line 24 of file class.ilBookingSchedule.php.
Referenced by getAvailabilityTo(), save(), and update().
|
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().