added mod_roomReservationRoom::__toString()
authorrohieb <devnull@localhost>
Fri, 25 Jul 2008 22:47:37 +0000 (00:47 +0200)
committerrohieb <devnull@localhost>
Fri, 25 Jul 2008 22:47:37 +0000 (00:47 +0200)
includes/mod_roomReservationRoom.inc

index f49aa22..64ed6cb 100644 (file)
@@ -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 */ }
   /**@}*/
 }
 ?>
This page took 0.023772 seconds and 4 git commands to generate.