ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
schedule for booking ressource More...
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 | |
$db | |
$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 38 of file class.ilBookingSchedule.php.
ilBookingSchedule::delete | ( | ) |
ilBookingSchedule::doClone | ( | $a_pool_id | ) |
Definition at line 336 of file class.ilBookingSchedule.php.
References getAutoBreak(), getAvailabilityFrom(), getAvailabilityTo(), getDeadline(), getDefinition(), getMaxRental(), getMinRental(), getRaster(), and getTitle().
ilBookingSchedule::getAutoBreak | ( | ) |
Get break time.
Definition at line 150 of file class.ilBookingSchedule.php.
References $auto_break.
Referenced by doClone(), and save().
ilBookingSchedule::getAvailabilityFrom | ( | ) |
Get availability start.
Definition at line 206 of file class.ilBookingSchedule.php.
References $av_from.
Referenced by doClone(), ilBookingReservation\getAvailableObject(), ilBookingReservation\isObjectAvailableInPeriod(), save(), and update().
ilBookingSchedule::getAvailabilityTo | ( | ) |
Get availability end.
Definition at line 226 of file class.ilBookingSchedule.php.
References $av_to.
Referenced by doClone(), ilBookingReservation\isObjectAvailableInPeriod(), save(), and update().
ilBookingSchedule::getDeadline | ( | ) |
Get deadline.
Definition at line 168 of file class.ilBookingSchedule.php.
References $deadline.
Referenced by doClone(), and save().
ilBookingSchedule::getDefinition | ( | ) |
Get definition.
Definition at line 186 of file class.ilBookingSchedule.php.
References $definition.
Referenced by doClone(), getDefinitionBySlots(), ilBookingReservation\isObjectAvailableInPeriod(), and saveDefinition().
ilBookingSchedule::getDefinitionBySlots | ( | ) |
Return definition grouped by slots (not days)
Definition at line 448 of file class.ilBookingSchedule.php.
References $def, $time, and getDefinition().
|
static |
Get list of booking objects for given pool.
int | $a_pool_id |
Definition at line 404 of file class.ilBookingSchedule.php.
References $DIC, $ilDB, $res, and $row.
Referenced by ilObjBookingPool\cloneObject(), ilBookingSchedulesTableGUI\getItems(), ilBookingReservationsTableGUI\initFilter(), ilBookingObjectGUI\initForm(), and ilObjBookingPoolGUI\showNoScheduleMessage().
ilBookingSchedule::getMaxRental | ( | ) |
Get maximum rental time.
Definition at line 132 of file class.ilBookingSchedule.php.
References $rent_max.
Referenced by doClone(), and save().
ilBookingSchedule::getMinRental | ( | ) |
Get minimum rental time.
Definition at line 114 of file class.ilBookingSchedule.php.
References $rent_min.
Referenced by doClone(), and save().
ilBookingSchedule::getPoolId | ( | ) |
Get booking pool id.
Definition at line 78 of file class.ilBookingSchedule.php.
References $pool_id.
Referenced by save().
ilBookingSchedule::getRaster | ( | ) |
Get booking raster.
Definition at line 96 of file class.ilBookingSchedule.php.
References $raster.
Referenced by doClone(), ilObjBookingPoolGUI\renderSlots(), and save().
ilBookingSchedule::getTitle | ( | ) |
Get object title.
Definition at line 60 of file class.ilBookingSchedule.php.
References $title.
Referenced by doClone(), and save().
|
static |
Check if given pool has any defined schedules.
int | $a_pool_id |
Definition at line 387 of file class.ilBookingSchedule.php.
|
protected |
Get dataset from db.
Definition at line 234 of file class.ilBookingSchedule.php.
References $db, $definition, $ilDB, $row, IL_CAL_UNIX, setAutoBreak(), setAvailabilityFrom(), setAvailabilityTo(), setDeadline(), setDefinition(), setMaxRental(), setMinRental(), setRaster(), and setTitle().
Referenced by __construct().
ilBookingSchedule::save | ( | ) |
Create new entry in db.
Definition at line 271 of file class.ilBookingSchedule.php.
References $av_from, $av_to, $db, $id, $ilDB, getAutoBreak(), getAvailabilityFrom(), getAvailabilityTo(), getDeadline(), getMaxRental(), getMinRental(), getPoolId(), getRaster(), getTitle(), IL_CAL_UNIX, and saveDefinition().
|
protected |
Save current definition.
Definition at line 355 of file class.ilBookingSchedule.php.
References $db, $definition, $ilDB, and getDefinition().
Referenced by save(), and update().
ilBookingSchedule::setAutoBreak | ( | $a_break | ) |
Set break time.
int | $a_break |
Definition at line 141 of file class.ilBookingSchedule.php.
Referenced by read().
ilBookingSchedule::setAvailabilityFrom | ( | ilDateTime | $a_date = null | ) |
Set availability start.
ilDateTime | $a_date |
Definition at line 196 of file class.ilBookingSchedule.php.
Referenced by read().
ilBookingSchedule::setAvailabilityTo | ( | ilDateTime | $a_date = null | ) |
Set availability end.
ilDateTime | $a_date |
Definition at line 216 of file class.ilBookingSchedule.php.
Referenced by read().
ilBookingSchedule::setDeadline | ( | $a_deadline | ) |
Set deadline.
int | $a_deadline |
Definition at line 159 of file class.ilBookingSchedule.php.
Referenced by read().
ilBookingSchedule::setDefinition | ( | $a_definition | ) |
Set definition.
array | $a_definition |
Definition at line 177 of file class.ilBookingSchedule.php.
Referenced by read(), and setDefinitionBySlots().
ilBookingSchedule::setDefinitionBySlots | ( | array | $a_def | ) |
Definition at line 464 of file class.ilBookingSchedule.php.
References $time, and setDefinition().
ilBookingSchedule::setMaxRental | ( | $a_max | ) |
Set maximum rental time.
int | $a_max |
Definition at line 123 of file class.ilBookingSchedule.php.
Referenced by read().
ilBookingSchedule::setMinRental | ( | $a_min | ) |
Set minimum rental time.
int | $a_min |
Definition at line 105 of file class.ilBookingSchedule.php.
Referenced by read().
ilBookingSchedule::setPoolId | ( | $a_pool_id | ) |
Set booking pool id (aka parent obj ref id)
int | $a_pool_id |
Definition at line 69 of file class.ilBookingSchedule.php.
ilBookingSchedule::setRaster | ( | $a_raster | ) |
Set booking raster (in minutes)
int | $a_raster |
Definition at line 87 of file class.ilBookingSchedule.php.
Referenced by read().
ilBookingSchedule::setTitle | ( | $a_title | ) |
Set object title.
string | $a_title |
Definition at line 51 of file class.ilBookingSchedule.php.
Referenced by read().
ilBookingSchedule::update | ( | ) |
Update entry in db.
Definition at line 306 of file class.ilBookingSchedule.php.
References $av_from, $av_to, $db, $ilDB, getAvailabilityFrom(), getAvailabilityTo(), IL_CAL_UNIX, and saveDefinition().
|
protected |
Definition at line 25 of file class.ilBookingSchedule.php.
Referenced by getAutoBreak().
|
protected |
Definition at line 28 of file class.ilBookingSchedule.php.
Referenced by getAvailabilityFrom(), save(), and update().
|
protected |
Definition at line 29 of file class.ilBookingSchedule.php.
Referenced by getAvailabilityTo(), save(), and update().
|
protected |
Definition at line 17 of file class.ilBookingSchedule.php.
Referenced by delete(), read(), save(), saveDefinition(), and update().
|
protected |
Definition at line 26 of file class.ilBookingSchedule.php.
Referenced by getDeadline().
|
protected |
Definition at line 27 of file class.ilBookingSchedule.php.
Referenced by getDefinition(), read(), and saveDefinition().
|
protected |
Definition at line 19 of file class.ilBookingSchedule.php.
Referenced by save().
|
protected |
Definition at line 21 of file class.ilBookingSchedule.php.
Referenced by getPoolId().
|
protected |
Definition at line 22 of file class.ilBookingSchedule.php.
Referenced by getRaster().
|
protected |
Definition at line 24 of file class.ilBookingSchedule.php.
Referenced by getMaxRental().
|
protected |
Definition at line 23 of file class.ilBookingSchedule.php.
Referenced by getMinRental().
|
protected |
Definition at line 20 of file class.ilBookingSchedule.php.
Referenced by getTitle().