ILIAS
Release_4_2_x_branch Revision 61807
|
a bookable ressource More...
Public Member Functions | |
__construct ($a_id=NULL) | |
Constructor. | |
setTitle ($a_title) | |
Set object title. | |
getTitle () | |
Get object title. | |
setTypeId ($a_type_id) | |
Set booking type id. | |
getTypeId () | |
Get booking type id. | |
setScheduleId ($a_schedule_id) | |
Set booking schedule id. | |
getScheduleId () | |
Get booking schedule id. | |
save () | |
Create new entry in db. | |
update () | |
Update entry in db. | |
delete () | |
Delete single entry. | |
getByPoolId ($a_pool_id) | |
Get all objects for given pool. |
Static Public Member Functions | |
static | getList ($a_type_id) |
Get list of booking objects for given type. | |
static | updateSchedule ($a_type_id, $a_schedule_id=0) |
Remove/Update schedule for objects of given type. |
Protected Member Functions | |
read () | |
Get dataset from db. |
Protected Attributes | |
$id | |
$title | |
$type_id | |
$schedule_id |
ilBookingObject::__construct | ( | $a_id = NULL | ) |
Constructor.
if id is given will read dataset from db
int | $a_id |
Definition at line 26 of file class.ilBookingObject.php.
References read().
ilBookingObject::delete | ( | ) |
Delete single entry.
Definition at line 186 of file class.ilBookingObject.php.
References $ilDB.
ilBookingObject::getByPoolId | ( | $a_pool_id | ) |
Get all objects for given pool.
int | $a_pool_id |
Definition at line 203 of file class.ilBookingObject.php.
Referenced by ilBookingReservationsTableGUI\getItems().
|
static |
Get list of booking objects for given type.
int | $a_type_id |
Definition at line 151 of file class.ilBookingObject.php.
References $ilDB, $res, and $row.
Referenced by ilObjBookingPoolGUI\confirmedBookingObject(), ilBookingObjectsTableGUI\getItems(), and ilObjBookingPoolGUI\renderBookingByType().
ilBookingObject::getScheduleId | ( | ) |
Get booking schedule id.
Definition at line 81 of file class.ilBookingObject.php.
References $schedule_id.
Referenced by save().
ilBookingObject::getTitle | ( | ) |
Get object title.
Definition at line 45 of file class.ilBookingObject.php.
References $title.
Referenced by save().
ilBookingObject::getTypeId | ( | ) |
Get booking type id.
Definition at line 63 of file class.ilBookingObject.php.
References $type_id.
Referenced by save().
|
protected |
Get dataset from db.
Definition at line 89 of file class.ilBookingObject.php.
References $ilDB, $row, setScheduleId(), setTitle(), and setTypeId().
Referenced by __construct().
ilBookingObject::save | ( | ) |
Create new entry in db.
Definition at line 109 of file class.ilBookingObject.php.
References $id, $ilDB, getScheduleId(), getTitle(), and getTypeId().
ilBookingObject::setScheduleId | ( | $a_schedule_id | ) |
Set booking schedule id.
int | $a_schedule_id |
Definition at line 72 of file class.ilBookingObject.php.
Referenced by read().
ilBookingObject::setTitle | ( | $a_title | ) |
Set object title.
string | $a_title |
Definition at line 36 of file class.ilBookingObject.php.
Referenced by read(), and ilBookingObjectGUI\save().
ilBookingObject::setTypeId | ( | $a_type_id | ) |
Set booking type id.
int | $a_type_id |
Definition at line 54 of file class.ilBookingObject.php.
Referenced by read().
ilBookingObject::update | ( | ) |
Update entry in db.
Definition at line 130 of file class.ilBookingObject.php.
References $ilDB.
|
static |
Remove/Update schedule for objects of given type.
int | $a_type_id |
Definition at line 172 of file class.ilBookingObject.php.
References $ilDB.
Referenced by ilBookingType\update().
|
protected |
Definition at line 14 of file class.ilBookingObject.php.
Referenced by save().
|
protected |
Definition at line 17 of file class.ilBookingObject.php.
Referenced by getScheduleId().
|
protected |
Definition at line 15 of file class.ilBookingObject.php.
Referenced by getTitle().
|
protected |
Definition at line 16 of file class.ilBookingObject.php.
Referenced by getTypeId().