00001 <?php
00002
00016
00017
00018 class Room extends DataObject {
00019
00020
00021
00022
00027 function getRoomId() {
00028 if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');
00029 return $this->getId();
00030 }
00031
00036 function setRoomId($roomId) {
00037 if (Config::getVar('debug', 'deprecation_warnings')) trigger_error('Deprecated function.');
00038 return $this->setId($roomId);
00039 }
00040
00045 function getBuildingId() {
00046 return $this->getData('buildingId');
00047 }
00048
00053 function setBuildingId($buildingId) {
00054 return $this->setData('buildingId', $buildingId);
00055 }
00056
00061 function getRoomName() {
00062 return $this->getLocalizedData('name');
00063 }
00064
00070 function getName($locale) {
00071 return $this->getData('name', $locale);
00072 }
00073
00079 function setName($name, $locale) {
00080 return $this->setData('name', $name, $locale);
00081 }
00082
00087 function getRoomAbbrev() {
00088 return $this->getLocalizedData('abbrev');
00089 }
00090
00096 function getAbbrev($locale) {
00097 return $this->getData('abbrev', $locale);
00098 }
00099
00105 function setAbbrev($abbrev, $locale) {
00106 return $this->setData('abbrev', $abbrev, $locale);
00107 }
00108
00113 function getRoomDescription() {
00114 return $this->getLocalizedData('description');
00115 }
00116
00122 function getDescription($locale) {
00123 return $this->getData('description', $locale);
00124 }
00125
00131 function setDescription($description, $locale) {
00132 return $this->setData('description', $description, $locale);
00133 }
00134 }
00135
00136 ?>