00001 <?php
00002
00016
00017
00019 define('ROLE_ID_SITE_ADMIN', 0x00000001);
00020 define('ROLE_PATH_SITE_ADMIN', 'admin');
00021
00022 define('ROLE_ID_CONFERENCE_MANAGER', 0x00000010);
00023 define('ROLE_PATH_CONFERENCE_MANAGER', 'manager');
00024
00025 define('ROLE_ID_DIRECTOR', 0x00000040);
00026 define('ROLE_PATH_DIRECTOR', 'director');
00027
00028 define('ROLE_ID_TRACK_DIRECTOR', 0x00000080);
00029 define('ROLE_PATH_TRACK_DIRECTOR', 'trackDirector');
00030
00031 define('ROLE_ID_REVIEWER', 0x00000100);
00032 define('ROLE_PATH_REVIEWER', 'reviewer');
00033
00034 define('ROLE_ID_AUTHOR', 0x00001000);
00035 define('ROLE_PATH_AUTHOR', 'author');
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 define('ROLE_ID_READER', 0x00008000);
00047 define('ROLE_PATH_READER', 'reader');
00048
00049 class Role extends DataObject {
00050
00054 function Role() {
00055 parent::DataObject();
00056 }
00057
00062 function getRoleName() {
00063 return RoleDAO::getRoleName($this->getData('roleId'));
00064 }
00065
00070 function getRolePath() {
00071 return RoleDAO::getRolePath($this->getData('roleId'));
00072 }
00073
00074
00075
00076
00077
00082 function getConferenceId() {
00083 return $this->getData('conferenceId');
00084 }
00085
00090 function setConferenceId($conferenceId) {
00091 return $this->setData('conferenceId', $conferenceId);
00092 }
00093
00098 function getSchedConfId() {
00099 return $this->getData('schedConfId');
00100 }
00101
00106 function setSchedConfId($schedConfId) {
00107 return $this->setData('schedConfId', $schedConfId);
00108 }
00109
00114 function getUserId() {
00115 return $this->getData('userId');
00116 }
00117
00122 function setUserId($userId) {
00123 return $this->setData('userId', $userId);
00124 }
00125
00130 function getRoleId() {
00131 return $this->getData('roleId');
00132 }
00133
00138 function setRoleId($roleId) {
00139 return $this->setData('roleId', $roleId);
00140 }
00141 }
00142
00143 ?>