/*****************************************************************************/
/**
* Handling of the configuration file
- * @todo document
*/
class mod_roomReservationConfig {
* @{
*/
- /**
+ /**
* Add a timeslice. A check is done that the timeslices do not overlap, and
* in this case, an Exception is thrown.
* @param $oTs (mod_roomReservationTimeslice)
throw new SQLException(MOD_ROOM_RESERVATION_ERROR_SQL);
} else {
log_insert(sprintf("Raum „%s“ für Buchungen zur Verfügung gestellt",
- $sRoom));
+ $sRoom));
}
}
}
*/
public function unWhitelistRoom($sRoom) {
$h = db_query("DELETE FROM mod_roomreservation_roomswhitelist WHERE ".
- "rrr_name = $1;", $sRoom);
+ "rrr_name = $1;", $sRoom);
if(!$h) {
throw new SQLException(MOD_ROOM_RESERVATION_ERROR_SQL);
} else {
*/
public function isRoomWhitelisted($sRoom) {
$h = db_query("SELECT * FROM mod_roomreservation_roomswhitelist WHERE ".
- "rrr_name=$1;", $sRoom);
+ "rrr_name=$1;", $sRoom);
if(!$h) {
throw new SQLException(MOD_ROOM_RESERVATION_ERROR_SQL);
}
array_merge($this->asMessages, array($sMessage));
}
- /**
+ /**
* Get all timeslices in chronological order
* @return array of rmTimeslice
*/
/**
* Determine if the current user has admin rights. This function tests
* if the user is in a group which has the privilege of admin rights.
- * @todo test
* @return bool
*/
public function userIsAdmin() {
* Determine if the current user can book rooms. This function tests
* if the user is in a group which has the privilege to book rooms.
* If no group has this privilege, all users can book.
- * @todo test
* @return bool
*/
public function userCanBook() {
* if the user is in a group which has been configured as a group who
* can view bookings. If no groups are configured, any user can view the
* bookings table.
- * @todo test
* @return bool
*/
public function userCanView() {