From ccc09976190cc3d44e8086ef870a32214ca6ae42 Mon Sep 17 00:00:00 2001 From: rohieb Date: Sat, 26 Jul 2008 00:47:37 +0200 Subject: [PATCH] added mod_roomReservationRoom::__toString() --- includes/mod_roomReservationRoom.inc | 5 +++++ 1 file changed, 5 insertions(+) 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 */ } /**@}*/ } ?> -- 2.20.1