X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/c28965b6f095c30c7a9cc886d54c2a5d94304f46..869e4e32c4bb863eb3c237c424e6fee8baaa8973:/includes/mod_roomReservationRoom.inc diff --git a/includes/mod_roomReservationRoom.inc b/includes/mod_roomReservationRoom.inc index f49aa22..64ed6cb 100644 --- a/includes/mod_roomReservationRoom.inc +++ b/includes/mod_roomReservationRoom.inc @@ -133,6 +133,11 @@ class mod_roomReservationRoom { */ public function getLocation() { return $this->strLocation; } + /** + * Conversion to string + * @return string + */ + public function __toString() { return $this->getName(); /* name is key */ } /**@}*/ } ?>