setName($strName); $this->setRoomNo($strRoomNo); $this->setFloor($strFloor); $this->setBuilding($strBuilding); $this->setLocation($strLocation); } /***************************************************************************/ /** * @} * @name Access to attributes * @{ */ /** * Set the name of the room * @param $str (string) * @return void */ public function setName($str) { $this->strName = $str; } /** * Set the room number * @param $str (string) * @return void */ public function setRoomNo($str) { $this->strRoomNo = $str; } /** * Set the floor * @param $str (string) * @return void */ public function setFloor($str) { $this->strFloor = $str; } /** * Set the building * @param $str (string) * @return void */ public function setBuilding($str) { $this->strBuilding = $str; } /** * Set the location * @param $str (string) * @return void */ public function setLocation($str) { $this->strLocation = $str; } /** * Get the name of the room * @return string */ public function getName() { return $this->strName; } /** * Get the room number * @return string */ public function geRoomNo() { return $this->strRoomNo; } /** * Get the floor * @return string */ public function getFloor() { return $this->strFloor; } /** * Get the building * @return string */ public function getBuilding() { return $this->strBuilding; } /** * Get the location * @return string */ public function getLocation() { return $this->strLocation; } /** * Conversion to string * @return string */ public function __toString() { return $this->getName(); /* name is key */ } /**@}*/ } ?>