* @{
*/
- /**
+ /**
* 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
*/