From: rohieb Date: Fri, 25 Jul 2008 22:47:37 +0000 (+0200) Subject: added mod_roomReservationRoom::__toString() X-Git-Tag: REL_3.0^2~5 X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/commitdiff_plain/ccc09976190cc3d44e8086ef870a32214ca6ae42?ds=inline added mod_roomReservationRoom::__toString() --- 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 */ } /**@}*/ } ?>